messages.SendVote

class pyrogram.raw.functions.messages.SendVote

Vote in a poll

Details:
  • Layer: 227

  • ID: 10EA6184

Parameters:
  • peer (InputPeer) – The chat where the poll was sent

  • msg_id (int 32-bit) – The message ID of the poll

  • options (List of bytes) – The options that were chosen

Returns:

Updates

TL Schema

messages.sendVote#10ea6184
peer:InputPeer
msg_id:int
options:Vector<bytes>

= Updates

Parameter Tree

SendVote
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── msg_id → int
└── options → Vector < bytes >

Example

await app.invoke(
    SendVote(
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        options=[b"data"],
    )
)