LivePhoto¶
- class telegram.LivePhoto(file_id, file_unique_id, width, height, duration, photo=None, mime_type=None, file_size=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis object represents a live photo.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
file_unique_idis equal.Available In
Added in version 22.8.
- Parameters:
file_id (
str) – Identifier for the video file which can be used to download or reuse the file.file_unique_id (
str) – Unique identifier for this file, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.duration (
int|datetime.timedelta) – Duration of the video in seconds as defined by the sender.photo (Sequence[
telegram.PhotoSize], optional) – Available sizes of the corresponding static photo.mime_type (
str, optional) – MIME type of a file as defined by the sender.
- file_id[source]¶
Identifier for the video file which can be used to download or reuse the file.
- Type:
- file_unique_id[source]¶
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
- Type:
- photo[source]¶
Optional. Available sizes of the corresponding static photo.
- Type:
tuple[
telegram.PhotoSize]