telebotpython由于telebot.types.InlineKeyBoardButton

问题描述

import telebot
from telebot import types
insertSubInline = types.InlineKeyBoardMarkup()
join = types.InlineKeyBoardButton(text="Пройти на канал",callback_data = "joinSub",url="https://t.me/namechannel")
insertSubInline.add(join)

@bot.callback_query_handler(func = lambda call: True)
def answer(call):
    pass

据我所知,在使用InlineKeyBoardButton时,callback_data属性不起作用,因为我在InlineKeyBoardButton属性中指定了要转发到另一个频道的地址(url)。它无法正常工作的原因是什么?

重定向到另一个频道时,我需要某种功能来检查/收集数据

InlineKeyBoardButton无关的函数(无url属性)或类似函数将转发到另一个频道。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)