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: 185
Constructor ID: 0xe89c45b2
Property
hasLargeMedia
: boolean or undefinedWhether the size of the media in the preview can be changed.
id
: bigintPreview id
url
: stringUrl of previewed webpage
displayUrl
: stringWebpage url to be displayed to the user
hash
: numberHash used for caching, for more info click here
type
: string or undefinedType of the web page. can be: article, photo, audio, video, document, profile, app, or something else, see here for a full list.
siteName
: string or undefinedShort name of the site (e.g., google docs, app store)
title
: string or undefinedTitle of the content
description
: string or undefinedContent description
photo
: Raw.TypePhoto or undefinedImage representing the content
embedUrl
: string or undefinedUrl to show in the embedded preview
embedType
: string or undefinedMime type of the embedded preview, (e.g., text/html or video/mp4)
embedWidth
: number or undefinedWidth of the embedded preview
embedHeight
: number or undefinedHeight of the embedded preview
duration
: number or undefinedDuration of the content, in seconds
author
: string or undefinedAuthor of the content
document
: Raw.TypeDocument or undefinedPreview of the content as a media file
cachedPage
: Raw.TypePage or undefinedPage contents in instant view format
attributes
: Array of Raw.TypeWebPageAttribute or undefinedWebpage attributes