M
M
Megach2020-05-20 20:38:04
Python
Megach, 2020-05-20 20:38:04

How to use forward_message in pyTelegramBotAPI?

Hello, I want to ask you a question:
How to use forward_message in pyTelegramBotAPI so that the bot forwards messages that are written to it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2020-05-20
@hottabxp

bot.forward_message(to_chat_id, from_chat_id, message_id)

D
Daniil Lebedinsky, 2020-05-20
@StellandYT

id_message = event.message_id
vk_session.method('messages.send', {'user_id': 11111111, 'message': 'Пересланные сообщения', 'forward_messages': id_message, 'random_id': rand})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question