Interface PaidMediaPreview

The paid media isn't available before the payment.

interface PaidMediaPreview {
    duration?: number;
    height?: number;
    type: "preview";
    width?: number;
}

Properties

duration?: number

Duration of the media in seconds as defined by the sender

height?: number

Media height as defined by the sender

type: "preview"

Type of the paid media, always “preview”

width?: number

Media width as defined by the sender