UpdateMessagePoll

class pyrogram.raw.types.UpdateMessagePoll

The results of a poll have changed

Constructor of Update.

Details:
  • Layer: 223

  • ID: ACA1657B

Parameters:
  • poll_id (int 64-bit) – Poll ID

  • results (PollResults) – New poll results

  • poll (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_idlong
├── pollPoll (optional)
│ └── Poll
│ ├── idlong
│ ├── closedtrue (optional)
│ ├── public_voterstrue (optional)
│ ├── multiple_choicetrue (optional)
│ ├── quiztrue (optional)
│ ├── questionTextWithEntities
│ │ └── TextWithEntities
│ │ ├── textstring
│ │ └── entitiesVector < MessageEntity >
│ │ ├── MessageEntityUnknown
│ │ ├── MessageEntityMention
│ │ ├── MessageEntityHashtag
│ │ ├── MessageEntityBotCommand
│ │ ├── MessageEntityUrl
│ │ ├── MessageEntityEmail
│ │ ├── MessageEntityBold
│ │ ├── MessageEntityItalic
│ │ ├── MessageEntityCode
│ │ ├── MessageEntityPre
│ │ ├── MessageEntityTextUrl
│ │ ├── MessageEntityMentionName
│ │ ├── MessageEntityPhone
│ │ ├── MessageEntityCashtag
│ │ ├── MessageEntityUnderline
│ │ ├── MessageEntityStrike
│ │ ├── MessageEntityBankCard
│ │ ├── MessageEntitySpoiler
│ │ ├── MessageEntityCustomEmoji
│ │ ├── MessageEntityBlockquote
│ │ └── MessageEntityFormattedDate
│ ├── answersVector < PollAnswer >
│ │ └── PollAnswer
│ │ ├── textTextWithEntities
│ │ │ └── TextWithEntities
│ │ └── optionbytes
│ ├── close_periodint (optional)
│ └── close_dateint (optional)
└── resultsPollResults
└── PollResults
├── mintrue (optional)
├── resultsVector < PollAnswerVoters > (optional)
│ └── PollAnswerVoters
│ ├── chosentrue (optional)
│ ├── correcttrue (optional)
│ ├── optionbytes
│ └── votersint
├── total_votersint (optional)
├── recent_votersVector < Peer > (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── solutionstring (optional)
└── solution_entitiesVector < MessageEntity > (optional)
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── languagestring
│ ├── offsetint
│ ├── lengthint
│ └── urlstring
│ ├── offsetint
│ ├── lengthint
│ └── user_idlong
│ ├── offsetint
│ ├── lengthint
│ └── user_idInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── document_idlong
│ ├── collapsedtrue (optional)
│ ├── offsetint
│ └── lengthint
├── relativetrue (optional)
├── short_timetrue (optional)
├── long_timetrue (optional)
├── short_datetrue (optional)
├── long_datetrue (optional)
├── day_of_weektrue (optional)
├── offsetint
├── lengthint
└── dateint

Example

UpdateMessagePoll(
    poll_id=0,
    results=PollResults(),
)