Layer 220
method Users
messages.readSavedHistory#ba4a3b5b parent_peer:InputPeer peer:InputPeer max_id:int = Bool;

Parameters

Name Type Description
ParentPeer InputPeer ID of the monoforum group.
Peer InputPeer ID of the topic.
MaxId int If a positive value is passed, only messages with identifiers less or equal than the given one will be read.

Returns

Bool

Possible Errors

Code Type Description
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.

Gogram Example

// MessagesReadSavedHistory - positional arguments
result, err := client.MessagesReadSavedHistory(&tg.InputPeerUser{UserID: int64(123456789)}, &tg.InputPeerUser{UserID: int64(123456789)}, 0)
if err != nil {
    // handle error
}
// result is *tg.Bool