Raw.PollAnswerVoters

Raw.PollAnswerVoters

A poll answer, and how users voted on it

pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;
export namespace Raw {
  export class PollAnswerVoters {
    constructor(params: { chosen?: boolean; correct?: boolean; option: Buffer; voters: number }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x3b6ddad2

Property

  • chosen : boolean or undefined

    Whether we have chosen this answer

  • correct : boolean or undefined

    For quizzes, whether the option we have chosen is correct

  • option : Buffer

    The param that has to be passed to messages.sendvote.

  • voters : number

    How many users voted for this option