Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>WebPage_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class WebPage_
extends _WebPage_
import { WebPage_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Webpage preview

Constructors

new
WebPage_(params: { has_large_media?: true; id: bigint; url: string; display_url: string; hash: number; type?: string; site_name?: string; title?: string; description?: string; photo?: enums.Photo; embed_url?: string; embed_type?: string; embed_width?: number; embed_height?: number; duration?: number; author?: string; document?: enums.Document; cached_page?: enums.Page; attributes?: Array<enums.WebPageAttribute>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
attributes: Array<enums.WebPageAttribute>

Webpage attributes

optional
author: string

Author of the content

optional
cached_page: enums.Page

Page contents in instant view format

optional
description: string

Content description

display_url: string

Webpage URL to be displayed to the user

optional
document: enums.Document

Preview of the content as a media file

optional
duration: number

Duration of the content, in seconds

optional
embed_height: number

Height of the embedded preview

optional
embed_type: string

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

optional
embed_url: string

URL to show in the embedded preview

optional
embed_width: number

Width of the embedded preview

optional
has_large_media: true

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

id: bigint

Preview ID

optional
photo: enums.Photo

Image representing the content

optional
site_name: string

Short name of the site (e.g., Google Docs, App Store)

optional
title: string

Title of the content

optional
type: string

Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else

url: string

URL of previewed webpage

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc