【问题标题】:Is there any way to detect the user clicked my provided URL?有什么方法可以检测到用户点击了我提供的 URL?
【发布时间】:2019-01-25 09:58:01
【问题描述】:

我使用了 python-telegram-bot 模块并使用了 InlineKeyboardButton 与 (text, url, callback_data) 来检测点击事件,但是 使用 url 参数,它们只是重定向到链接而不发送 callback_data 进行查询。

select_list.append(InlineKeyboardButton('myText',url=url,callback_data='identifer'))

【问题讨论】:

    标签: python-2.7 python-telegram-bot


    【解决方案1】:

    这是不可能的,参数是互斥的,您只能传递url=callback_data=。它们不会同时工作。

    你可以阅读更多关于 InlineKeyboardButtons here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-09
      • 1970-01-01
      • 2019-01-18
      • 1970-01-01
      相关资源
      最近更新 更多