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).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
parent_peer | InputPeer | Nein | If set, fetches messages from the specified monoforum, otherwise fetches from saved messages. |
peer | InputPeer | Ja | Target peer (or topic) |
offset_id | int | Ja | Only return messages starting from the specified message ID |
offset_date | int | Ja | Only return messages sent before the specified date |
add_offset | int | Ja | Number of list elements to be skipped, negative values are also accepted. |
limit | int | Ja | Number of results to return |
max_id | int | Ja | If a positive value was transferred, the method will return only messages with IDs less than **max_id** |
min_id | int | Ja | If a positive value was transferred, the method will return only messages with IDs more than **min_id** |
hash | long | Ja | [Result hash](https://core.telegram.org/api/offsets.md) |
Antworten
messages.Messages
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — Um dies zu tun, müssen Sie in diesem Chat Administrator sein.
- 400 · PARENT_PEER_INVALID – Die angegebene parent_peer ist ungültig.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.