'Can you give an example of comment channel message?

I don't understand how to comment on channels in Pyrogram I hope you can give me an example of the comment channel. Thank you very much



Solution 1:[1]

Commenting on channels is the same as sending message because comments are basically replies to the auto-forwarded message (every channel message is auto forwarded to the linked group). The only difference is users can reply to the message without really being in the group.

If you already have the message (the group message):

await message.reply("See my comment")

Or you can get the message using id of the message in linked group. Look at the documentation of get_discussion_message for further.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Stark Programmer