get_poll_stats()

Client.get_poll_stats()

Get statistics for a poll message.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • message_id (int) – Identifier of the poll message.

  • dark (bool, optional) – Pass True to get graphs optimized for dark theme. Defaults to False.

Returns:

PollStats – The poll statistics.

Example

stats = await app.get_poll_stats(chat_id, message_id)