UpdateMessagePoll
- class pyrogram.raw.types.UpdateMessagePoll
The results of a poll have changed
Constructor of
Update.- Details:
Layer:
223ID:
ACA1657B
- Parameters:
poll_id (
int64-bit) – Poll IDresults (
PollResults) – New poll resultspoll (
Poll, optional) – If the server knows the client hasn’t cached this poll yet, the poll itself
TL Schema
updateMessagePoll#aca1657b
flags:#
poll_id:long
poll:flags.0?Poll
results:PollResults
= Update
Parameter Tree
UpdateMessagePoll
├── poll_id →
long├── poll →
Poll (optional)│ └──
Poll│ ├── id →
long│ ├── closed →
true (optional)│ ├── public_voters →
true (optional)│ ├── multiple_choice →
true (optional)│ ├── quiz →
true (optional)│ ├── question →
TextWithEntities│ │ └──
TextWithEntities│ │ ├── text →
string│ │ └── entities →
Vector < MessageEntity >│ │ ├──
MessageEntityUnknown│ │ ├──
MessageEntityMention│ │ ├──
MessageEntityHashtag│ │ ├──
MessageEntityBotCommand│ │ ├──
MessageEntityUrl│ │ ├──
MessageEntityEmail│ │ ├──
MessageEntityBold│ │ ├──
MessageEntityItalic│ │ ├──
MessageEntityCode│ │ ├──
MessageEntityPre│ │ ├──
MessageEntityTextUrl│ │ ├──
MessageEntityMentionName│ │ ├──
InputMessageEntityMentionName│ │ ├──
MessageEntityPhone│ │ ├──
MessageEntityCashtag│ │ ├──
MessageEntityUnderline│ │ ├──
MessageEntityStrike│ │ ├──
MessageEntityBankCard│ │ ├──
MessageEntitySpoiler│ │ ├──
MessageEntityCustomEmoji│ │ ├──
MessageEntityBlockquote│ │ └──
MessageEntityFormattedDate│ ├── answers →
Vector < PollAnswer >│ │ └──
PollAnswer│ │ ├── text →
TextWithEntities│ │ │ └──
TextWithEntities│ │ └── option →
bytes│ ├── close_period →
int (optional)│ └── close_date →
int (optional)└── results →
PollResults└──
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
UpdateMessagePoll(
poll_id=0,
results=PollResults(),
)