UpdateMessagePollVote

class pyrogram.raw.types.UpdateMessagePollVote

A specific peer has voted in a poll

Constructor of Update.

Details:
  • Layer: 227

  • 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_id → long
├── peer → Peer
│ ├── PeerUser
│ │ └── user_id → long
│ ├── PeerChat
│ │ └── chat_id → long
│ └── PeerChannel
│ └── channel_id → long
├── options → Vector < bytes >
├── positions → Vector < int >
└── qts → int

Example

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