get_unread_poll_votes()

async Client.get_unread_poll_votes()

Get unread poll votes in a chat.

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

  • offset_id (int, optional) – Only return messages starting from the specified id.

  • add_offset (int, optional) – Number of list elements to skip.

  • limit (int, optional) – Number of results to return. Defaults to 100.

  • max_id (int, optional) – If positive, only messages with IDs less than max_id will be returned.

  • min_id (int, optional) – If positive, only messages with IDs bigger than min_id will be returned.

  • top_msg_id (int, optional) – Thread/topic message ID.

Returns:

Messages – The messages with unread poll votes.

Example

msgs = await app.get_unread_poll_votes(chat_id)