Answer the question
In order to leave comments, you need to log in
Telegram bot freezes, how to solve?
Wrote a bot for the group. But sometimes the bot hangs there, but it will work fine on a personal or other chat. How can this be fixed? Or how to automatically restart the bot? By the way, I think the lags are due to the long waiting time for PHP code processing, as it usually freezes when I write commands for which you have to wait a bit for an answer.
Library: https://github.com/TelegramBot/Api
I apologize if there are errors in the text, since I'm not Russian :)
Answer the question
In order to leave comments, you need to log in
The solution was to set a cron task for every minute, and reset pending_updates
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question