Layer 220
method Users
messages.getUnreadReactions#bd7f90ac flags:# peer:InputPeer top_msg_id:flags.0?int saved_peer_id:flags.1?InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Peer InputPeer Peer
TopMsgId flags.0?int If set, considers 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.
OffsetId int Offsets for pagination, for more info click here
AddOffset int Offsets for pagination, for more info click here
Limit int Maximum number of results to return, see pagination
MaxId int Only return reactions for messages up until this message ID
MinId int Only return reactions for messages starting from this message ID

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// MessagesGetUnreadReactions - using Params struct
result, err := client.MessagesGetUnreadReactions(&tg.MessagesGetUnreadReactionsParams{
    Peer: &tg.InputPeerUser{UserID: int64(123456789)},
    OffsetId: 0,
    AddOffset: 0,
    Limit: 0,
    MaxId: 0,
    MinId: 0,

    // Optional fields:
    // TopMsgId: 0,
    // SavedPeerId: &tg.InputPeerUser{UserID: int64(123456789)},
})
if err != nil {
    // handle error
}
// result is *tg.MessagesMessages