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.TelegramObject

At 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[source]

Optional. Media is an animation, information about the animation

Type:

telegram.Animation

audio[source]

Optional. Media is an audio file, information about the file; currently, can’t be received in a poll option

Type:

telegram.Audio

document[source]

Optional. Media is a general file, information about the file; currently, can’t be received in a poll option

Type:

telegram.Document

live_photo[source]

Media is a live photo, information about the live photo

Type:

telegram.LivePhoto, optional

location[source]

Optional. Media is a shared location, information about the location

Type:

telegram.Location

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:

telegram.Sticker

venue[source]

Optional. Media is a venue, information about the venue

Type:

telegram.Venue

video[source]

Optional. Media is a video, information about the video

Type:

telegram.Video

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().