shurillu / CTBot

A simple (and easy to use) Arduino Telegram BOT Library for ESP8266/ESP32
MIT License
150 stars 34 forks source link

One Time Inline Keyboard #64

Open midicraft opened 4 years ago

midicraft commented 4 years ago

Hi Stefano,

i have a feature request for this library. I am currently using Inline Keyboards as a way of creating simple menus in chat. Do you think it would be possible to include a function where the inline keyboard destroys itself after being used?

I noticed chat get's pretty crowded with all those keyboards. I have read in the API Developers Guide that it's possible but i am lacking the knowledge to include it myself.

Maybe it would be useful.

Best regards Alex

shurillu commented 4 years ago

Hi Alex, thank you for the suggestion. Actually I merged a pull request that enable the message editing - you can find it in the master branch. With message editing, you can edit your inline keyboard, even deleting it by editing the message with no keyboard. I modified the sendMessage too in order to return the messageID of the sent message. You can use it to modify the sent message. Cheers,

Stefano