Seyfi
Seyfi

Reputation: 1980

Telegram bot: How do I hide inline keyboard ? PHP

I made a telegram bot with an inline keyboard.(via InlineKeyboardMarkup) I like to hide (or make it one-time) keyboard after user response. How can I do that in PHP?

Here is a view of my bot:

Upvotes: 12

Views: 17689

Answers (3)

Mohsen K
Mohsen K

Reputation: 287

actually by getting the message ID and using deleteMessage you can make the keyboard disappear.

here is the description >> Telegram Bot ApI i hope this help you

Upvotes: 2

Dmitry
Dmitry

Reputation: 2087

There is method editMessageReplyMarkup. You can transfer empty inline_keyboard param. But it's may not working on some devices (i have problem with iphone, for problem devieces you can edit markup to "thanks" button, and after remomeve it)

Upvotes: 19

ariaby
ariaby

Reputation: 902

Try updating the message with editMessageText method and empty markup.

Upvotes: 7

Related Questions