telegramx.js

PaidMediaPreview

interface

The paid media isn't available before the payment.

Declaration

interface PaidMediaPreview 

Properties

durationproperty#
duration?: number;

Optional. Duration of the media in seconds as defined by the sender

heightproperty#
height?: number;

Optional. Media height as defined by the sender

typeproperty#
type: 'preview';

Type of the paid media, always "preview"

widthproperty#
width?: number;

Optional. Media width as defined by the sender