PollResults
- class pyrogram.raw.base.PollResults
Results of poll
- Constructors:
This base type has 1 constructor available.
Results of poll
TL Schema
pollResults#7adf2420
flags:#
min:flags.0?true
results:flags.1?Vector<PollAnswerVoters>
total_voters:flags.2?int
recent_voters:flags.3?Vector<Peer>
solution:flags.4?string
solution_entities:flags.4?Vector<MessageEntity>
= PollResults
Parameter Tree
PollResults
├── min →
true (optional)├── results →
Vector < PollAnswerVoters > (optional)│ └──
PollAnswerVoters│ ├── chosen →
true (optional)│ ├── correct →
true (optional)│ ├── option →
bytes│ └── voters →
int├── total_voters →
int (optional)├── recent_voters →
Vector < Peer > (optional)│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long├── solution →
string (optional)└── solution_entities →
Vector < MessageEntity > (optional)│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int├──
MessageEntityUrl│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int├──
MessageEntityPre│ ├── offset →
int│ ├── length →
int│ └── language →
string│ ├── offset →
int│ ├── length →
int│ └── url →
string│ ├── offset →
int│ ├── length →
int│ └── user_id →
long│ ├── offset →
int│ ├── length →
int│ └── user_id →
InputUser│ ├──
InputUserEmpty│ ├──
InputUserSelf│ ├──
InputUser│ └──
InputUserFromMessage│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ ├── length →
int│ └── document_id →
long│ ├── collapsed →
true (optional)│ ├── offset →
int│ └── length →
int├── relative →
true (optional)├── short_time →
true (optional)├── long_time →
true (optional)├── short_date →
true (optional)├── long_date →
true (optional)├── day_of_week →
true (optional)├── offset →
int├── length →
int└── date →
intExample
PollResults(
min=None,
results=[
PollAnswerVoters(
chosen=None,
correct=None,
option=b"data",
voters=0
)
],
total_voters=0,
recent_voters=[
PeerUser(user_id=0)
],
solution="text",
solution_entities=[
MessageEntityUnknown(
offset=0,
length=0
)
],
)