stats.GetPollStats

class pyrogram.raw.functions.stats.GetPollStats

Telegram API function.

Details:
  • Layer: 227

  • ID: C27DFA68

Parameters:
  • peer (InputPeer) – N/A

  • msg_id (int 32-bit) – N/A

  • dark (bool, optional) – N/A

Returns:

stats.PollStats

TL Schema

stats.getPollStats#c27dfa68
flags:#
dark:flags.0?true
peer:InputPeer
msg_id:int

= stats.PollStats

Parameter Tree

GetPollStats
├── dark → true (optional)
├── 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

Example

await app.invoke(
    GetPollStats(
        dark=None,
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
    )
)