stats.GetPollStats

class pyrogram.raw.functions.stats.GetPollStats

Telegram API function.

Details:
  • Layer: 225

  • 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
├── darktrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── msg_idint

Example

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