Open tiffass opened 1 year ago
Hi @tiffass
This is the same issue as https://github.com/cotestatnt/AsyncTelegram2/issues/81
You need to call getNewMessage() periodically or at least shortly before sending a new message to synchronize the bot with the server (and eventually re-establish the connection)
Hi @cotestatnt Yes, I already saw that I missed this function and then added it, but it did not solve the problem
Im facing the same issue too! Althought with a higher time span, like one day or so.
my code already implements getNewMessage()
:
if (WiFi.status() == WL_CONNECTED) {
if (myBot.getNewMessage(msg)) {
}
}
Hi all! There is an ESP32-cam module and the need to send messages to telegrams at a certain interval. It would seem nothing complicated. Start the timer, send messages when the specified interval is reached and rejoice. But that was not the case... If I set the sending interval>15 minutes, then for some reason the messages do not arrive, while the messages are displayed in the port monitor. If <=15 then everything is OK. Who can tell what is the problem? Is this a feature of this module, library, or am I doing something wrong in the code? Here is a minimal example of my code: