Closed XoXoJI closed 4 years ago
can you please provide full version of the script? are you using webhook or polling?
I have the same issue right now. The handlers of commands not called. When turn off multi-threading it works. On local machine I can't reproduce the bug. It's reproduced on two hostings: Microsoft Azure (Windows server) and PythonAnywhere (Linux).
pyTelegramBotAPI==3.6.3 telebot==0.0.3
Does anybody founded a solution?
Have the same problem; with threading the message handlers don't work. Without threading they work but the bot goes to "sleep" after a while and sometimes takes minutes to respond (and sometimes doesn't restart at all".
Is there still no fix for this?
I have the same problem
when I host on pythonanywhere(linux) and use multi-threading, the message handler doesn't work
the temporary solution right now is to disable multi-threading with
bot = telebot.TeleBot(API_TOKEN, threaded=False)
Please answer these questions before submitting your issue. Thanks!
When I push my bot on server, he didn't cath my commands. Then I set threaded = False and he has began to work.
bot = telebot.TeleBot(API_TOKEN, threaded=False)
But I have problem with process_new_updates. Bot doesn't transfer to a command which I specified or he do it on second or more my answer to him
How fix it?