PollAnswer

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

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

Fields

FieldTypeRequiredDescription
poll_idStringAlwaysUnique poll identifier
voter_chatChatOptionalThe chat that changed the answer to the poll, if the voter is anonymous
userUserOptionalThe user that changed the answer to the poll, if the voter isn't anonymous
option_idsArray of IntegerAlways0-based identifiers of chosen answer options. May be empty if the vote was retracted.
option_persistent_idsArray of StringAlwaysPersistent identifiers of the chosen answer options. May be empty if the vote was retracted.
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.