messages.getSavedHistory

Fetch saved messages » forwarded from a specific peer, or fetch messages from a monoforum topic ».

 Method schema is available as of layer 204. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
parent_peer flags.0?InputPeer If set, fetches messages from the specified monoforum, otherwise fetches from saved messages.
peer InputPeer Target peer (or topic)
offset_id int Only return messages starting from the specified message ID
offset_date int Only return messages sent before the specified date
add_offset int Number of list elements to be skipped, negative values are also accepted.
limit int Number of results to return
max_id int If a positive value was transferred, the method will return only messages with IDs less than max_id
min_id int If a positive value was transferred, the method will return only messages with IDs more than min_id
hash long Result hash

Result

messages.Messages

Only users can use this method

Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

Pagination in the API

How to fetch results from large lists of objects.

Saved messages

The Saved Messages chat allows users to bookmark messages and media: it's a personal cloud storage for any messages or media you may want to send or forward there.

Monoforum

Telegram supports direct messages to channels, which can also be used to suggest (even paid) channel posts.