Raw.messages.VotesList

Raw.messages.VotesList

How users voted in a poll

messages.votesList#4899484e flags:# count:int votes:Vector<MessagePeerVote> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.VotesList;
export namespace Raw {
  export namespace messages {
    export class VotesList {
      constructor(params: {
        count: number;
        votes: Array<Raw.TypeMessagePeerVote>;
        chats: Array<Raw.TypeChat>;
        users: Array<Raw.TypeUser>;
        nextOffset?: string;
      }) {}
    }
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x4899484e

Property

  • count : number

    Total number of votes for all options (or only for the chosen option, if provided to messages.getpollvotes)

  • votes : Array of Raw.TypeMessagePeerVote

    Vote info for each user

  • chats : Array of Raw.TypeChat

    Mentioned chats

  • users : Array of Raw.TypeUser

    Info about users that voted in the poll

  • nextOffset : string or undefined

    Offset to use with the next messages.getpollvotes request, empty string if no more results are available.