delete_poll_answer()¶
- Client.delete_poll_answer()
Delete a dynamically added answer option from a poll.
This feature is part of Bot API 9.6 poll revolution — only works on polls where
open_answersis True and only the user who added the option can remove it.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 message containing the poll.option (
int|bytes) – The poll option to delete — either its 0-based index (int) or raw option bytes.
- Returns:
Message– On success, the updated poll message is returned.
Example
await app.delete_poll_answer(chat_id, message_id, 3)