Messages

Resolve a channel post to its discussion thread root

Returns the root message of a channel post's linked discussion thread. Fails with 404 if the post has no discussion thread.

Precondition. Only posts with comments enabled have a thread. In GET /v1/peers/{peer_id}/history each message carries replies.comments: true means this call returns the thread, false means 404 NOT_FOUND. A channel without a linked discussion group (full_chat.linked_chat_id = 0) never has one.

get/v1/peers/{peer_id}/messages/{msg_id}/discussion

Request

  • Base URL: https://telegram155.p.rapidapi.com
  • URL: https://telegram155.p.rapidapi.com/v1/peers/{peer_id}/messages/{msg_id}/discussion
  • Auth: none declared

Path parameters

peer_idinteger required

Numeric Telegram peer id (channel or user). Obtain from /v1/usernames/{username}, /v1/phones/{phone}, /v1/contacts/search, or any prior response's peer.user_id / peer.channel_id field.

msg_idinteger required

Numeric message id within the given peer. Obtain from a prior /v1/peers/{peer_id}/history response.

Response

Discussion-thread root with related chats/users.

flagsinteger

Bitfield of optional Telegram fields.

max_idinteger

Latest reply message id in the thread.

read_inbox_max_idinteger

Latest incoming reply read by the viewer.

read_outbox_max_idinteger

Latest outgoing reply read by the viewer.

unread_countinteger

Unread reply count.

Changes

No recorded changes to this operation across all 1 revision of this API.