Information about a web page preview in a message

Constructors

Properties

Accessors

Constructors

Properties

type: "webpage" = ...

Accessors

  • get displaySize(): "small" | "default" | "large"
  • Size in which the client should display whatever contained in the webpage

    • small: small square thumbnail on the right
    • large: large thumbnail below the webpage content
    • default: default behaviour (depending on the og tags)

    Returns "small" | "default" | "large"

  • get inputMedia(): TypeInputMedia
  • Input media TL object generated from this object, to be used inside InputMediaLike and TelegramClient.sendMedia.

    WebPage can't provide an input media, since some can only be auto-generated from a link. This getter is only provided to allow using msg.media.inputMedia

    Returns TypeInputMedia

  • get manual(): boolean
  • Whether the webpage was manually set, and the link might not be present at all in the actual message

    Returns boolean

  • get preview(): WebPage
  • Web page preview

    Returns WebPage

  • get safe(): boolean
  • Whether it's safe to open the URL without the user confirmation

    Returns boolean