PollAnswerVoters

class pyrogram.raw.types.PollAnswerVoters

A poll answer, and how users voted on it

Constructor of PollAnswerVoters.

Details:
  • Layer: 224

  • ID: 3645230A

Parameters:
  • option (bytes) – The param that has to be passed to messages.sendVote.

  • chosen (bool, optional) – Whether we have chosen this answer

  • correct (bool, optional) – For quizzes, whether the option we have chosen is correct

  • voters (int 32-bit, optional) – How many users voted for this option

  • recent_voters (List of Peer, optional) – N/A

TL Schema

pollAnswerVoters#3645230a
flags:#
chosen:flags.0?true
correct:flags.1?true
option:bytes
voters:flags.2?int
recent_voters:flags.2?Vector<Peer>

= PollAnswerVoters

Parameter Tree

PollAnswerVoters
├── chosentrue (optional)
├── correcttrue (optional)
├── optionbytes
├── votersint (optional)
└── recent_votersVector < Peer > (optional)
├── PeerUser
│ └── user_idlong
├── PeerChat
│ └── chat_idlong
└── PeerChannel
└── channel_idlong

Example

PollAnswerVoters(
    option=b"data",
)