witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.09k stars 302 forks source link

just don't look at the message sent to the bot #320

Closed musarac closed 1 year ago

musarac commented 1 year ago

Hello friends. thank you to everyone who has contributed to this library. my problem, how can I do if I just look at the bot message and want to make it read after checking for security purposes. i want to use this bot on many esp clients. and so the relevant client will read the esp message. in this way, the relevant client will perform the esp task. I would be very glad if you could help me how to do this.

witnessmenow commented 1 year ago

if you never request a newer number than the current it will not delete the message from the server.

bot.getUpdates(bot.last_message_received + 1); //remove the +1

But this is super messy for lots of reasons, this is a Telegram Bot limitation/design choice, nothing to do with this library