AsyncTelegram2 icon indicating copy to clipboard operation
AsyncTelegram2 copied to clipboard

Bot stops receiving or sending messages if no interactin happened in last 24 hours

Open ardumiguel opened this issue 2 years ago • 0 comments

The problem is that the bot stops working after that period of time if no messages are sent from user to bot or sent from bot to user.

I found this was happening to others and calling following function periodically was suggested:

myBot.getNewMessage(msg);

But in my case, that was already implements that in the following way

if (WiFi.status() == WL_CONNECTED) {
    if (myBot.getNewMessage(msg)) {
 }
}

Any ideas?

ardumiguel avatar Sep 27 '23 20:09 ardumiguel