PollOption

Raw MD
This object contains information about one answer option in a poll

This object contains information about one answer option in a poll.

Fields

FieldTypeRequiredDescription
persistent_idStringAlwaysUnique identifier of the option, persistent on option addition and deletion
textStringAlwaysOption text, 1-100 characters
text_entitiesArray of MessageEntityOptionalSpecial entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts
mediaPollMediaOptionalMedia added to the poll option
voter_countIntegerAlwaysNumber of users who voted for this option; may be 0 if unknown
added_by_userUserOptionalUser who added the option; omitted if the option wasn't added by a user after poll creation
added_by_chatChatOptionalChat that added the option; omitted if the option wasn't added by a chat after poll creation
addition_dateIntegerOptionalPoint 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 .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.