Layer 220
method Users
messages.readDiscussion#f731a9f4 peer:InputPeer msg_id:int read_max_id:int = Bool;

Parameters

Name Type Description
Peer InputPeer Group ID
MsgId int ID of message that started the thread
ReadMaxId int ID up to which thread messages were read

Returns

Bool

Possible Errors

Code Type Description
400 CHAT_ID_INVALID The provided chat id is invalid.
400 MSG_ID_INVALID Invalid message ID provided.
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

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