peyk.platforms.telegram.types.paid_media_preview

Classes

PaidMediaPreview([type, width, height, duration])

The paid media isn't available before the payment.

class peyk.platforms.telegram.types.paid_media_preview.PaidMediaPreview(type: str = 'preview', width: int | None = None, height: int | None = None, duration: int | None = None)[source]

Bases: object

The paid media isn’t available before the payment.

Variables:
  • type (str) – Type of the paid media, always ‘preview’

  • width (int | None) – Media width as defined by the sender

  • height (int | None) – Media height as defined by the sender

  • duration (int | None) – Duration of the media in seconds as defined by the sender

type: str = 'preview'
width: int | None = None
height: int | None = None
duration: int | None = None
classmethod from_dict(data: dict | None) PaidMediaPreview | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.