Telegram bot:如何隐藏内联键盘?PHP [英] Telegram bot: How do I hide inline keyboard ? PHP

查看:49
本文介绍了Telegram bot:如何隐藏内联键盘?PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用内联键盘制作了一个电报机器人.(通过 InlineKeyboardMarkup)我喜欢在用户响应后隐藏(或使其一次性)键盘.我怎样才能在 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:

推荐答案

有方法 editMessageReplyMarkup.您可以传输空的 inline_keyboard 参数.但它可能不适用于某些设备(我的 iphone 有问题,对于有问题的设备,您可以将标记编辑为感谢"按钮,然后删除它)

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)

这篇关于Telegram bot:如何隐藏内联键盘?PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆