Constructors

Properties

Accessors

Constructors

Properties

type: "paid" = ...

Accessors

  • get isPaid(): boolean
  • Whether this media was paid for

    Returns boolean

  • get medias(): MessageMedia[]
  • Get the available full media.

    If the media is not paid for, this will return an empty array.

    Returns MessageMedia[]

  • get previews(): ExtendedMediaPreview[]
  • Get the available media previews.

    If the media is already paid for, this will return an empty array.

    Returns ExtendedMediaPreview[]

  • get price(): Long
  • Price of the media (in Telegram Stars)

    Returns Long