messages.getSavedHistory
Fetch saved messages » forwarded from a specific peer, or fetch messages from a monoforum topic ».
Fetch [saved messages »](https://core.telegram.org/api/saved-messages.md) forwarded from a specific peer, or fetch messages from a [monoforum topic »](https://core.telegram.org/api/monoforum.md).
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
parent_peer | 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](https://core.telegram.org/api/offsets.md) |
الردود
messages.Messages
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 400 · PARENT_PEER_INVALID — The specified parent_peer is invalid.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.