Layer 220
method Users
messages.getUnreadMentions#f107e790 flags:# peer:InputPeer top_msg_id:flags.0?int 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 where to look for mentions
TopMsgId flags.0?int If set, considers only messages within the specified forum topic
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 Maximum message ID to return, see pagination
MinId int Minimum message ID to return, see pagination

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
400 MSG_ID_INVALID Invalid message ID provided.
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

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

    // Optional fields:
    // TopMsgId: 0,
})
if err != nil {
    // handle error
}
// result is *tg.MessagesMessages