PollOption
This object contains information about one answer option in a poll
This object contains information about one answer option in a poll.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
persistent_id | String | Always | Unique identifier of the option, persistent on option addition and deletion |
text | String | Always | Option text, 1-100 characters |
text_entities | Array of MessageEntity | Optional | Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts |
media | PollMedia | Optional | Media added to the poll option |
voter_count | Integer | Always | Number of users who voted for this option; may be 0 if unknown |
added_by_user | User | Optional | User who added the option; omitted if the option wasn't added by a user after poll creation |
added_by_chat | Chat | Optional | Chat that added the option; omitted if the option wasn't added by a chat after poll creation |
addition_date | Integer | Optional | Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll |
Botlify Cloud Runtime
Credentials are auto-injected in
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.