【问题标题】:Share an Inline Message link with User Conversation via Telegram Bot通过 Telegram Bot 与用户对话共享内联消息链接
【发布时间】:2017-11-15 06:45:54
【问题描述】:

我正在使用node-telegram-bot-api 并且我有一个内嵌键盘,当用户单击该内嵌链接时,如何共享链接? 我需要选择一个对话和 之后将此链接粘贴到该对话中:

(telegram.me/my_bot?start)

    const iopts = {
        reply_markup: {
            inline_keyboard: [
                [{
                    text: `Share This Bot to Your Friends`,
                    url: `telegram.me/my_bot?start`
                }]
            ]
        }
    };

【问题讨论】:

    标签: javascript node.js telegram-bot


    【解决方案1】:

    您可以使用switch_inline_query 代替url,请参见以下示例:

    【讨论】:

      猜你喜欢
      • 2018-03-31
      • 2016-05-09
      • 2017-06-18
      • 2018-09-02
      • 1970-01-01
      • 2019-11-19
      • 2018-02-13
      • 1970-01-01
      • 2020-01-05
      相关资源
      最近更新 更多