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

pyTelegramBotAPI message handlers can't see photo – Telegram API

I need my telegram bot to forward messages from the private chat to the customer care staff group. I run this code: @bot.message_handler(func=lambda message: message.chat.type=='private') def forwarder(message): bot.forward_message(group, message.chat.id, message.id) bot.send_message(group, '#id'+str(message.chat.id)) It works smoothly with text messages, but does…

VIEW QUESTION
Back To Top
Search