Raw.messages.GetPollVotes

Raw.messages.GetPollVotes

Get poll results for non-anonymous polls

messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList;
export namespace Raw {
  export namespace messages {
    export class GetPollVotes {
      constructor(params: {
        peer: Raw.TypeInputPeer;
        id: number;
        option?: Buffer;
        offset?: string;
        limit: number;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xb86e380e

Property

  • peer : Raw.TypeInputPeer

    Chat where the poll was sent

  • id : number

    Message id

  • option : Buffer or undefined

    Get only results for the specified poll option

  • offset : string or undefined

    Offset for results, taken from the nextOffset field of messages.voteslist, initially an empty string. note: if no more results are available, the method call will return an empty nextOffset; thus, avoid providing the nextOffset returned in messages.voteslist if it is empty, to avoid an infinite loop.

  • limit : number

    Number of results to return

Results

Raw.messages.TypeVotesList