CTBot
CTBot copied to clipboard
One Time Inline Keyboard
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
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