PollMedia
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
| Field | Type | Required | Description |
|---|---|---|---|
animation | Animation | Optional | Media is an animation, information about the animation |
audio | Audio | Optional | Media is an audio file, information about the file; currently, can't be received in a poll option |
document | Document | Optional | Media is a general file, information about the file; currently, can't be received in a poll option |
link | Link | Optional | The HTTP link attached to the poll option |
live_photo | LivePhoto | Optional | Media is a live photo, information about the live photo |
location | Location | Optional | Media is a shared location, information about the location |
photo | Array of PhotoSize | Optional | Media is a photo, available sizes of the photo |
sticker | Sticker | Optional | Media is a sticker, information about the sticker; currently, for poll options only |
venue | Venue | Optional | Media is a venue, information about the venue |
video | Video | Optional | Media is a video, information about the video |
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.