UpdateMessagePollVote

class pyrogram.raw.types.UpdateMessagePollVote

A specific peer has voted in a poll

Constructor of Update.

Details:
  • Layer: 224

  • ID: 7699F014

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

  • peer (Peer) – The peer that voted in the poll

  • options (List of bytes) – Chosen option(s)

  • positions (List of int 32-bit) – N/A

  • qts (int 32-bit) – New qts value, see updates » for more info.

TL Schema

updateMessagePollVote#7699f014
poll_id:long
peer:Peer
options:Vector<bytes>
positions:Vector<int>
qts:int

= Update

Parameter Tree

UpdateMessagePollVote
├── poll_idlong
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── optionsVector < bytes >
├── positionsVector < int >
└── qtsint

Example

UpdateMessagePollVote(
    poll_id=0,
    peer=PeerUser(user_id=0),
    options=[b"data"],
    positions=[0],
    qts=0,
)