cotestatnt / AsyncTelegram2

Powerful, flexible and secure Arduino Telegram BOT library. Hardware independent, it can be used with any MCU capable of handling an SSL connection.
MIT License
83 stars 25 forks source link

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

Open ardumiguel opened 9 months ago

ardumiguel commented 9 months ago

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?