get_discussion_message()

Client.get_discussion_message()

Get the discussion message from the linked discussion group of a channel post.

Reply to the returned message to leave a comment on the linked channel post.

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 = app.get_discussion_message(channel_id, message_id)

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