Class PaidMedia

Hierarchy (view full)

Constructors

Properties

duration?: number

Duration of the media in seconds as defined by the sender

height?: number

Media height as defined by the sender

photo?: Photo[]

The photo

video?: Video

The video

width?: number

Media width as defined by the sender

Accessors

Methods

  • Protected

    Updates the current instance with new data and returns a clone of the updated instance

    Parameters

    • data: Record<string, any>

      The data to update the instance with

    Returns Base

    A clone of the updated instance

  • Returns this is PaidMedia & {
        photo?: undefined;
        video?: undefined;
    }