Telegram bot: How do I hide inline keyboard ? PHP

只愿长相守 提交于 2020-01-13 09:36:09

问题


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:


回答1:


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)




回答2:


Try updating the message with editMessageText method and empty markup.




回答3:


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



来源:https://stackoverflow.com/questions/37898132/telegram-bot-how-do-i-hide-inline-keyboard-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!