PaidMediaLivePhoto

class telegram.PaidMediaLivePhoto(live_photo, *, api_kwargs=None)[source]

Bases: telegram.PaidMedia

The paid media is a live photo.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their live_photo are equal.

Added in version 22.8.

Parameters:
type[source]

Type of the paid media, always 'live_photo'

Type:

str

live_photo[source]

The photo.

Type:

telegram.LivePhoto

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

Converts JSON data to the appropriate PaidMedia object, i.e. takes care of selecting the correct subclass.

Parameters:
  • data (dict[str, …]) – The JSON data.

  • bot (telegram.Bot, optional) – The bot associated with this object.

Returns:

The Telegram object.