Get message history
Returns paginated message history for a peer. Use the next_page/prev_page cursors from the response, or pass offset_id directly.
Request
- Base URL: https://telegram155.p.rapidapi.com
- URL: https://telegram155.p.rapidapi.com/v1/peers/{peer_id}/history
- Auth: none declared
Path parameters
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.
Query parameters
Maximum items to return. Defaults to 20 when omitted; values above 100 are clamped to 100.
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.
Return messages with id < offset_id. Ignored when cursor is supplied.
Return messages strictly older than this Unix timestamp.
Items to skip relative to offset_id. Negative values shift toward newer messages.
Return messages with id < max_id.
Return messages with id > min_id.
Cache-busting hash; leave 0 unless you are reusing a prior result.
Response
Paginated message history.
Changes
No recorded changes to this operation across all 1 revision of this API.