# PollAnswer

> This object represents an answer of a user in a non-anonymous poll

**Category:** Telegram Bot API — Types (A-Z)  
**URL:** https://docs.botlify.cloud/pollanswer  
**Platform:** Botlify Cloud (https://botlify.cloud)  

---

This object represents an answer of a user in a non-anonymous poll.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| poll_id | String | Always | Unique poll identifier |
| voter_chat | Chat | Optional | The chat that changed the answer to the poll, if the voter is anonymous |
| user | User | Optional | The user that changed the answer to the poll, if the voter isn't anonymous |
| option_ids | Array of Integer | Always | 0-based identifiers of chosen answer options. May be empty if the vote was retracted. |
| option_persistent_ids | Array of String | Always | Persistent identifiers of the chosen answer options. May be empty if the vote was retracted. |

> [!TIP]
> **Botlify Cloud Runtime**
> Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.
