【问题标题】:Telegram bot: Show full text as ReplyKeyboardMarkup button电报机器人:将全文显示为回复键盘标记按钮
【发布时间】:2016-03-22 23:07:15
【问题描述】:

我正在开发一个类似投票的 Bot,我想将选项显示为按钮。 有些选项包含 10 个或更多单词。 当我将该文本作为按钮输入时,中间的单词转换为点。 IE: “我们有能力接收来自星星的信息和夜风的歌声。”

当我把它作为一个按钮时,它会显示如下: “我们有能力......夜风”。

有什么解决办法吗?

【问题讨论】:

    标签: php button telegram-bot


    【解决方案1】:

    我建议你;使用命令代替回复键盘。 您可以轻松地在选择的开头添加斜杠和数字,以便用户单击它:

    /1 We have the capacity to receive messages from the stars and the songs of the night winds.
    /2 We have not the capacity to receive messages from the stars and the songs of the night winds.
    /3 test test test
    /4 example example example
    

    /1/2/3/4 将转换为链接并转换为可点击的文本。

    【讨论】:

    • 是的,这也是我的选择。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-04-28
    • 2018-03-23
    • 2022-01-14
    • 2022-10-19
    • 2016-03-22
    • 1970-01-01
    • 2020-10-08
    相关资源
    最近更新 更多