Closed Dcmwrnd closed 2 years ago
In order to handle properly reboot from Telegram command, you have to wait that message is fully handled before doing restart otherwise the bot read again the last message (restart command) and reboot again and so on in an endless loop.
Check this lines in this example
Thank you Sir, it is working perfectly now after inserting the noNewMessage()
Hi Owner,
I added a “reboot” message at line 155 to restart the EPS32 when necessary. But after the first reboot message send, the ESP32 keep on rebooting in a loop. Every ESP32 restart, Telegram will sent out the last message again & the ESP32 keeps rebooting.
Can I clear the last message send to Telegram?
Compile with: Arduino IDE: v1.8.19 ArduinoJson: v6.19.3 Board Manager: v1.0.6 AsyncTelegram2: v2.1.0