Answer the question
In order to leave comments, you need to log in
Do I get an error when creating a Button through a telebot?
@bot.callback_query_handlers(func=lambda call: True)
def callback(call):
if call.message:
if call.data == "news":
bot.send_message(call.message.chat.id, newss)
Lists in program no, but PyCharm complains about list
@bot.callback_query_handlers(lambda call: True)
TypeError: 'list' object is not callable
Namely on the first line
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question