I am writing an application of RobotChat to be 24hours customer-service for
answering the questions of the buyers/customers.
I use Python, TelegramAPI, dan Flask.
My program of this-application can work properly if I run it on
local-computer (linux-box of SlackWare). And it also works properly if I run my
program through HEROKU-CLI:
$ heroku login
$ heroku run bash --app=robotresto
Running bash on ⬢ robotresto... up, run.6958 (Free)
~ $ Python webbasicchatbot.py
Either run my program(webbasicchatbot.py) through local-computer or run my
program($ Python3 webbasicchatbot.py) through Heroku-CLI. The function of
"telegram_polling()" and "@message_handler" works properly. My
RobotChat(webbasicchatbot.py) can answer each question of the buyers/customers
as I expect.
But my problem is:
"
After I deployed my program on 'herokuapp.com', but my program can not give
response to any questions. My RobotChat does not answer any question.
"
What is the difference between running "webbasicchatbot.py" through
local-computer and Heroku-CLI to running my program (webbasicchatbot.py)
through gunicorn? It lookslike my "telegram_polling()" and "@message_handler"
does not work under gunicorn.
Anybody experienced the same-problem? Would you do me a favor helping me to
solve this problem? I am newbie on HEROKU.
You can see it here: https://robotresto.herokuapp.com , my chatbot shows-up but
does not respond/answer any single-message of its customers.