Layer 220
MessagesReadReactions
Mark message reactions as read
method
Users
messages.readReactions#9ec44f93 flags:# peer:InputPeer top_msg_id:flags.0?int saved_peer_id:flags.1?InputPeer = messages.AffectedHistory;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Peer | InputPeer | Peer |
| TopMsgId | flags.0?int | Mark as read only reactions to messages within the specified forum topic |
| SavedPeerId | flags.1?InputPeer | If set, must be equal to the ID of a monoforum topic: will affect that topic in the monoforum passed in peer. |
Returns
messages.AffectedHistoryPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// MessagesReadReactions - using Params struct result, err := client.MessagesReadReactions(&tg.MessagesReadReactionsParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, // Optional fields: // TopMsgId: 0, // SavedPeerId: &tg.InputPeerUser{UserID: int64(123456789)}, }) if err != nil { // handle error } // result is *tg.MessagesAffectedHistory