在输入字段中显示一个额外的 (/) 按钮?

Show an additional (/) button in the input field?

你能告诉我如何在输入字段中添加一个 (/) 按钮吗?如此图所示:

https://core.telegram.org/file/811140659/1/RRJyulbtLBY/ea6163411c7eb4f4dc

我已经使用这个库编写了一个机器人:https://github.com/python-telegram-bot/python-telegram-bot

并发现:

“在与机器人的所有聊天中,在输入字段中显示一个额外的 (/) 按钮。点击它键入一个‘/’并显示命令列表。”

在此页面中:https://core.telegram.org/bots#commands

不幸的是我的机器人没有,在我的 iphone.

上使用 Telegram 应用程序

我也尝试过使用 Botfather 提供命令列表,但仍然没有结果。

如果您使用 Botfather 设置了命令,它应该可以工作。或者,您可以使用 setMyCommands method - in python-telegram-bot, that's Bot.set_my_commands.

以编程方式设置命令