Layer 227
method Users
messages.getUnreadPollVotes#43286cf2 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
Peer InputPeer The chat to fetch unread poll votes from
TopMsgId flags .0? int If the chat is a forum, restrict results to this 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 Only return messages with IDs less than or equal to this value
MinId int Only return messages with IDs greater than or equal to this value

Gogram Example

// MessagesGetUnreadPollVotes - using Params struct
result, err := client.MessagesGetUnreadPollVotes(&tg.MessagesGetUnreadPollVotesParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    TopMsgId: nil,
    OffsetId: 42,
    AddOffset: 42,
    Limit: 42,
    MaxId: 42,
    MinId: 42,
})
if err != nil {
    // handle error
}
// result is *tg.MessagesMessages

Possible Errors

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