telebot(python)。由于telebot.types.InlineKeyBoardButton中的url属性,未调用回调_数据属性

telebot(python)。由于telebot.types.InlineKeyBoardButton中的url属性,未调用回调_数据属性,python,callback,telegram,telegram-bot,python-telegram-bot,Python,Callback,Telegram,Telegram Bot,Python Telegram Bot,在使用InlineKeyBoardButton时,据我所知,callback\u data属性不起作用,因为我在InlineKeyBoardButton属性中指定了转发到另一个频道的地址(url)。它不能正常工作的原因是什么 当重定向到另一个频道时,我需要一个特定的功能来检查/收集数据 或 与InlineKeyBoardButton(不带url属性)或类似功能分离的功能,将转发到另一个频道 import telebot from telebot import types insertSubInl

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

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

InlineKeyBoardButton
(不带
url
属性)或类似功能分离的功能,将转发到另一个频道

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