K
K
kodbiprog2021-04-15 13:36:38
Bots
kodbiprog, 2021-04-15 13:36:38

Telegram Bot Python Message Forwarding?

Task, there is a telegram chat with access to one profile
. A bot is needed - the bot will receive messages from different tg profiles and send messages (pictures.videos) to the specified tg profile, and when a response is received from the specified tg profile, the bot will send the answer to the first profile that created the request
also the answers will contain pictures and videos Hide.
Please help how to implement.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton27, 2022-04-22
@Anton27

Hi I hope this helps you

@bot.message_handler(content_types=['text'])
def all_messages(message):
    bot.forward_message(TO_CHAT_ID, message.chat.id, message.message_id)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question