Answer the question
In order to leave comments, you need to log in
Why does a telebot bot using webhooks ignore messages after a while?
Good day
There is a bot that uses pyTelegramBotAPI. Initially I used polling, but it did not suit me and I had to use web hooks.
In general, it works more or less stably. But if you don’t use it for a while (I definitely didn’t measure it, but something about 30 minutes + -), it doesn’t respond to the first messages (from one to 3-4). Then it works stable again. I run everything through docker. In the web logs (where, obviously, requests come) I seem to see these first messages after a pause, but there is no reaction to them.
Answer the question
In order to leave comments, you need to log in
bot.polling(none_stop=True)
you can also put pm2 on the server, restarts the script automatically when it goes offline from idle.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question