PollAnswerVoters
- class pyrogram.raw.types.PollAnswerVoters
A poll answer, and how users voted on it
Constructor of
PollAnswerVoters.- Details:
Layer:
224ID:
3645230A
- Parameters:
option (
bytes) – The param that has to be passed to messages.sendVote.chosen (
bool, optional) – Whether we have chosen this answercorrect (
bool, optional) – For quizzes, whether the option we have chosen is correctvoters (
int32-bit, optional) – How many users voted for this optionrecent_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 →
longExample
PollAnswerVoters(
option=b"data",
)