问题描述
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 (将#修改为@)