PollMedia

Raw MD
At most one of the optional fields can be present in any given object

At most one of the optional fields can be present in any given object.

Fields

FieldTypeRequiredDescription
animationAnimationOptionalMedia is an animation, information about the animation
audioAudioOptionalMedia is an audio file, information about the file; currently, can't be received in a poll option
documentDocumentOptionalMedia is a general file, information about the file; currently, can't be received in a poll option
linkLinkOptionalThe HTTP link attached to the poll option
live_photoLivePhotoOptionalMedia is a live photo, information about the live photo
locationLocationOptionalMedia is a shared location, information about the location
photoArray of PhotoSizeOptionalMedia is a photo, available sizes of the photo
stickerStickerOptionalMedia is a sticker, information about the sticker; currently, for poll options only
venueVenueOptionalMedia is a venue, information about the venue
videoVideoOptionalMedia is a video, information about the video
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.