PollAnswerVoters

class pyrogram.raw.base.PollAnswerVoters

How users voted on a certain poll answer

Constructors:

This base type has 1 constructor available.

PollAnswerVoters

A poll answer, and how users voted on it

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(
    chosen=None,
    correct=None,
    option=b"data",
    voters=0,
    recent_voters=[
            PeerUser(user_id=0)
        ],
)