PollAnswerVoters

class pyrogram.raw.types.PollAnswerVoters

A poll answer, and how users voted on it

Constructor of PollAnswerVoters.

Details:
  • Layer: 227

  • 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
├── chosen → true (optional)
├── correct → true (optional)
├── option → bytes
├── voters → int (optional)
└── recent_voters → Vector < Peer > (optional)
├── PeerUser
│ └── user_id → long
├── PeerChat
│ └── chat_id → long
└── PeerChannel
└── channel_id → long

Example

PollAnswerVoters(
    option=b"data",
)