Messages

Get replies thread for a channel post

Returns the discussion thread for a channel post. Use the next_page/prev_page cursors from the response to paginate. 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}/replies

Request

  • Base URL: https://telegram155.p.rapidapi.com
  • URL: https://telegram155.p.rapidapi.com/v1/peers/{peer_id}/messages/{msg_id}/replies
  • 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.

Query parameters

limitinteger

Maximum items to return. Defaults to 20 when omitted; values above 100 are clamped to 100.

cursorstring

Opaque pagination cursor obtained from next_page or prev_page in a previous response. Overrides offset_id and limit when supplied. Fails with 400 if tampered with.

offset_idinteger

See /history.

add_offsetinteger

See /history.

max_idinteger

See /history.

min_idinteger

See /history.

hashinteger

See /history.

Response

Reply thread messages.

countinteger

Total number of messages matching the query (may exceed the returned page).

flagsinteger

Bitfield of optional Telegram fields.

inexactboolean

True if count is an estimate.

next_pagestring

Opaque cursor for the next (older) page. Pass back as ?cursor=. Absent when no further page exists.

offset_id_offsetinteger

Absolute position of messages[0] in the full result set.

prev_pagestring

Opaque cursor for the previous (newer) page. Pass back as ?cursor=. Absent when already on the first page.

ptsinteger

State-update counter; opaque to callers.

topicsobject[] nullable

Forum topics referenced by the messages, if the chat is a forum.

Changes

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