AsyncTelegram2
AsyncTelegram2 copied to clipboard
Bot stops receiving or sending messages if no interactin happened in last 24 hours
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?