PollMedia
At most one of the optional fields can be present in any given object.
fields
| field | type | required | description |
|---|---|---|---|
animation | Animation | optional | Optional. Media is an animation, information about the animation |
audio | Audio | optional | Optional. Media is an audio file, information about the file; currently, can't be received in a poll option |
document | Document | optional | Optional. Media is a general file, information about the file; currently, can't be received in a poll option |
link | Link | optional | Optional. The HTTP link attached to the poll option |
live_photo | LivePhoto | optional | Optional. Media is a live photo, information about the live photo |
location | Location | optional | Optional. Media is a shared location, information about the location |
photo | PhotoSize[] | optional | Optional. Media is a photo, available sizes of the photo |
sticker | Sticker | optional | Optional. Media is a sticker, information about the sticker; currently, for poll options only |
venue | Venue | optional | Optional. Media is a venue, information about the venue |
video | Video | optional | Optional. Media is a video, information about the video |
import
import type { PollMedia } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#pollmedia