@bot.message_handler(content_types=["text"])
def repeat_all_messages(message):
callbacks(message.text)
@bot.callback_query_handler(func=lambda call: True)
def callbacks(call, cards):
if call.data == "statTop":
bot.edit_message_text(chat_id=call.message.chat.id, message_id=call.message.message_id,
text=f"Спасибо, <code>{call.message.chat.username}</code>, за оценку!",
parse_mode='html')
print(cards)