Raw.WebPage

Raw.WebPage

Webpage preview

webPage#e89c45b2 flags:# has_large_media:flags.13?true id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector<WebPageAttribute> = WebPage;
export namespace Raw {
  export class WebPage {
    constructor(params: {
      hasLargeMedia?: boolean;
      id: bigint;
      url: string;
      displayUrl: string;
      hash: number;
      type?: string;
      siteName?: string;
      title?: string;
      description?: string;
      photo?: Raw.TypePhoto;
      embedUrl?: string;
      embedType?: string;
      embedWidth?: number;
      embedHeight?: number;
      duration?: number;
      author?: string;
      document?: Raw.TypeDocument;
      cachedPage?: Raw.TypePage;
      attributes?: Array<Raw.TypeWebPageAttribute>;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 198
Constructor ID: 0xe89c45b2

Property

  • hasLargeMedia : boolean or undefined

    Whether the size of the media in the preview can be changed.

  • id : bigint

    Preview id

  • url : string

    Url of previewed webpage

  • displayUrl : string

    Webpage url to be displayed to the user

  • hash : number

    Hash used for caching, for more info click here

  • type : string or undefined

    Type of the web page. one of the following: - video- gif- photo- document- profile- telegramBackground- telegramTheme- telegramStory- telegramChannel- telegramChannelRequest- telegramMegagroup- telegramChat- telegramMegagroupRequest- telegramChatRequest- telegramAlbum- telegramMessage- telegramBot- telegramVoicechat- telegramLivestream- telegramUser- telegramBotapp- telegramChannelBoost- telegramGroupBoost- telegramGiftcode- telegramStickerset

  • siteName : string or undefined

    Short name of the site (e.g., google docs, app store)

  • title : string or undefined

    Title of the content

  • description : string or undefined

    Content description

  • photo : Raw.TypePhoto or undefined

    Image representing the content

  • embedUrl : string or undefined

    Url to show in the embedded preview

  • embedType : string or undefined

    Mime type of the embedded preview, (e.g., text/html or video/mp4)

  • embedWidth : number or undefined

    Width of the embedded preview

  • embedHeight : number or undefined

    Height of the embedded preview

  • duration : number or undefined

    Duration of the content, in seconds

  • author : string or undefined

    Author of the content

  • document : Raw.TypeDocument or undefined

    Preview of the content as a media file

  • cachedPage : Raw.TypePage or undefined

    Page contents in instant view format

  • attributes : Array of Raw.TypeWebPageAttribute or undefined

    Webpage attributes