如何使用pytelegrambotapi创建嵌套菜单?
我正在使用pytelegrambotapi
创建自己的电报机器人。我想知道如何使用内联按钮创建嵌套菜单。这是我要创建的好示例,这是botfather
,bot,它使您可以为机器人创建令牌。如您所见,您仅在一个“消息”中工作,因为这是菜单。
那么,您能为我提供该菜单的最小工作示例吗?提前致谢!
I am creating my own telegram bot with pyTelegramBotAPI
. And I wonder how to create nested menu with inline buttons. Here is good example of what I want to create, this is BotFather
, bot, that allows you to create tokes for your bots. As you can see, you work in only one "message", because this is menu.
So, could you please provide me a minimal working example of that menu? Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以使用
edit_message_text
方法来完成。这是示例:It could be done with
edit_message_text
method. Here is example: