skip to Main Content

I can't make second msg handler after keyboard button in telegram bot on python telebot

@bot.message_handler(content_types=['text']) def get_text_messages(message): if message.text == "/start": begin = types.InlineKeyboardMarkup() namebutton = types.InlineKeyboardButton(text="Name urself", callback_data="nm") begin.add(namebuttonl) @bot.callback_query_handler(func=lambda call: True) def beginning(call): ```@bot.message_handler(content_types=['text']) def get_name(message): if call.data == "nm": bot.send_message(message.from_user.id, "Introduce urself") global name name = message.text bot.send_message(message.from_user.id, name) bot.polling(none_stop=True, interval=0)```…

VIEW QUESTION
Back To Top
Search