M
M
marshadow2020-12-27 14:41:47
Python
marshadow, 2020-12-27 14:41:47

How to write comments on a telegram post using API(pyrogram)?

channel = client.get_chat(message.sender_chat.id)
linked_chat = channel.linked_chat
message_id = message.message_id
client.send_message(linked_chat.id, 'lol', reply_to_message_id=message_id)

I think that you need to get the linked_chat telegram of the channel, and respond to the message (post) of the channel there, but there is a problem, the message_id of the post in the chat is different from the message_id in the channel, how to convert the message_id in the channel to the message_id in the chat?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question