PollMedia¶
- class telegram.PollMedia(animation=None, audio=None, document=None, live_photo=None, location=None, photo=None, sticker=None, venue=None, video=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectAt most one of the optional fields can be present in any given object.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if all of their attributes are equal.
Added in version 22.8.
- Parameters:
animation (
telegram.Animation, optional) – Media is an animation, information about the animationaudio (
telegram.Audio, optional) – Media is an audio file, information about the file; currently, can’t be received in a poll optiondocument (
telegram.Document, optional) – Media is a general file, information about the file; currently, can’t be received in a poll optionlive_photo (
telegram.LivePhoto, optional) – Media is a live photo, information about the live photolocation (
telegram.Location, optional) – Media is a shared location, information about the locationphoto (Sequence[
telegram.PhotoSize], optional) – Media is a photo, available sizes of the photosticker (
telegram.Sticker, optional) – Media is a sticker, information about the sticker; currently, for poll options onlyvenue (
telegram.Venue, optional) – Media is a venue, information about the venuevideo (
telegram.Video, optional) – Media is a video, information about the video
- audio[source]¶
Optional. Media is an audio file, information about the file; currently, can’t be received in a poll option
- Type:
- document[source]¶
Optional. Media is a general file, information about the file; currently, can’t be received in a poll option
- Type:
- live_photo[source]¶
Media is a live photo, information about the live photo
- Type:
telegram.LivePhoto, optional
- photo[source]¶
Optional. Media is a photo, available sizes of the photo
- Type:
tuple[
telegram.PhotoSize]
- sticker[source]¶
Optional. Media is a sticker, information about the sticker; currently, for poll options only
- Type: