messages.GetPollVotes
- class pyrogram.raw.functions.messages.GetPollVotes
Get poll results for non-anonymous polls
- Details:
Layer:
223ID:
B86E380E
- Parameters:
peer (
InputPeer) – Chat where the poll was sentid (
int32-bit) – Message IDlimit (
int32-bit) – Number of results to returnoption (
bytes, optional) – Get only results for the specified poll optionoffset (
str, optional) – Offset for results, taken from the next_offset field of messages.votesList, initially an empty string. Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in messages.votesList if it is empty, to avoid an infinite loop.
- Returns:
TL Schema
messages.getPollVotes#b86e380e
flags:#
peer:InputPeer
id:int
option:flags.0?bytes
offset:flags.1?string
limit:int
= messages.VotesList
Parameter Tree
GetPollVotes
├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── 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├── id →
int├── option →
bytes (optional)├── offset →
string (optional)└── limit →
intExample
await app.invoke(
GetPollVotes(
peer=await app.resolve_peer(chat_id),
id=0,
option=b"data",
offset="text",
limit=0,
)
)