InputMediaLivePhoto

class telegram.InputMediaLivePhoto(media, photo, caption=None, parse_mode=None, caption_entities=None, show_caption_above_media=None, has_spoiler=None, *, api_kwargs=None)[source]

Bases: telegram.InputMedia

Represents a live photo to be sent.

Added in version 22.8.

Parameters:
type[source]

'live_photo'.

Type:

str

media[source]

Video of the live photo to send.

Type:

str | telegram.InputFile

photo[source]

The static photo to send.

Type:

str | telegram.InputFile

caption[source]

Optional. Caption of the live photo to be sent, 0-1024 characters after entities parsing.

Type:

str

parse_mode[source]

Optional. Mode for parsing entities. See telegram.constants.ParseMode and formatting options for more details.

Type:

str

caption_entities[source]

Optional. Tuple of special entities that appear in the caption, which can be specified instead of parse_mode.

Type:

tuple[telegram.MessageEntity]

show_caption_above_media[source]

Optional. True, if the caption must be shown above the message media.

Type:

bool

has_spoiler[source]

Optional. True, if the video is covered with a spoiler animation.

Type:

bool