Is it possible to send an inlineKeyboard automatically whenever the microcontroller is restarted?
Is it possible to send an inlineKeyboard automatically whenever the microcontroller is restarted? Nearly the entire interface for my project is through an inlineKeyboard, which is updated every minute using editMessage(), but, if the micro is restarted, and the user is unaware of the restart (perhaps a power outage?) the following error happens at every update attempt(every minute). (Because there is no chat yet, until the user interacts with the bot) [.pio/libdeps/esp32dev/AsyncTelegram2/src/AsyncTelegram2.cpp:216 getUpdates()] {"ok":false,"error_code":400,"description":"Bad Request: chat not found"}
I could easily enough just check if a user has interacted with the bot, then start sending updates, but, What would be ideal is if there was a way in code to make it appear to the bot that a user had indeed pressed an inlineKeyboard button.
What is happening is, whenever I send a message to the bot (without using the inlineKeyboard) the messageID changes. I have tried logging the keyboard messageID, and switching back to that messageID (so the keyboard message can be updated every minute), but that does not seem to work.
Is it possible to make this work?