【发布时间】:2022-07-05 01:02:53
【问题描述】:
我想计算有多少用户点击了一个按钮,我使用了 callback_data :
for n in list2 :
buttons.append([InlineKeyboardButton(n[0], callback_data=f"click on { n[0] }" , url = "https://t.me/test")])
context.bot.send_message(chat_id=update.effective_chat.id, reply_markup=InlineKeyboardMarkup(buttons), text="List of my channals")
该按钮确实打开了 URL,但它没有发出回调请求,当我删除 url 参数时,回调按预期工作......有没有办法同时使用这两个参数?
【问题讨论】:
标签: python telegram telegram-bot