Layer 227
StatsGetPollStats
Get statistics for a poll sent in a message.
method
Users
stats.getPollStats#c27dfa68 flags:# dark:flags.0?true peer:InputPeer msg_id:int = stats.PollStats;
Parameters
| Name | Type | Description |
|---|---|---|
| Dark | flags .0? true | Whether to enable dark theme for graph colors |
| Peer | InputPeer | The peer where the poll was sent |
| MsgId | int | ID of the message containing the poll |
Returns
stats.PollStatsGogram Example
// StatsGetPollStats - positional arguments result, err := client.StatsGetPollStats(nil, &tg.InputPeerUser{UserID: int64(777000)}, 42) if err != nil { // handle error } // result is *tg.StatsPollStats
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |