get_discussion_message()#

Client.get_discussion_message()#

Get the first discussion message of a channel post or a discussion thread in a group.

Reply to the returned message to leave a comment on the linked channel post or to continue the discussion thread.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • message_id (int) – Message id.

Example

# Get the discussion message
m = await app.get_discussion_message(channel_id, message_id)

# Comment to the post by replying
await m.reply("comment")