def echo_forward_handler(update, context):
text = 'Expect an answer'
context.bot.send_message(chat_id=update.effective_chat.id,
text=text)
forwarded = update.message.forward(chat_id=TELEGRAM_SUPPORT_CHAT_ID)
if not forwarded.forward_from:
context.bot.send_message(
chat_id=TELEGRAM_SUPPORT_CHAT_ID,
reply_to_message_id=forwarded.message_id,
text=f'{update.message.from_user.id}\n{REPLY_TO_THIS_MESSAGE}'
)
В конце также был сформирован необходимый диспетчер:
def setup_dispatcher(dp):
dp.add_handler(MessageHandler(Filters.text & (~Filters.command) & Filters.chat_type.private, echo_forward_handler))
return dp