E
E
Emin7772020-09-09 13:32:58
Python
Emin777, 2020-09-09 13:32:58

How to forward user messages?

Hello.
Help a newbie. It is necessary that exactly after the notification bot.answer_callback_query(callback_query_id=call.id, show_alert=True,
text="Before entering the nickname, make sure it is correct.") the
nickname that the user writes was redirected to the telegram group.

if call.data == "1":
keyboard = types.InlineKeyboardMarkup()
backbutton = types.InlineKeyboardButton(text="back", callback_data="a")
keyboard.add(backbutton)
bot.edit_message_text(chat_id=call.message .chat.id, message_id=call.message.message_id,
text="Enter nickname",

bot.answer_callback_query(callback_query_id=call.id, show_alert=True,
text="Please make sure your nickname is correct before entering it.")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-09-09
@SoreMix

tb.forward_message(to_chat_id, from_chat_id, message_id)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question