UNPKG

tgsnake

Version:

Telegram MTProto framework for nodejs.

52 lines (51 loc) 1.6 kB
import { Raw } from '../../../platform.node.js'; import { TLObject } from '../../TL.js'; import { Audio } from './Audio.js'; import { Document } from './Document.js'; import { Photo } from './Photo.js'; import { Animation } from './Animated.js'; import { Video } from './Video.js'; import type { Snake } from '../../../Client/index.js'; export declare class WebPage extends TLObject { id: bigint; url: string; displayUrl: string; type?: string; siteName?: string; title?: string; description?: string; audio?: Audio; document?: Document; photo?: Photo; animation?: Animation; video?: Video; embedUrl?: string; embedType?: string; embedWidth?: number; embedHeight?: number; duration?: number; author?: string; isLargeMedia?: boolean; constructor({ id, url, displayUrl, type, siteName, title, description, audio, document, photo, animation, video, embedUrl, embedType, embedWidth, embedHeight, duration, author, isLargeMedia, }: { id: bigint; url: string; displayUrl: string; type?: string; siteName?: string; title?: string; description?: string; audio?: Audio; document?: Document; photo?: Photo; animation?: Animation; video?: Video; embedUrl?: string; embedType?: string; embedWidth?: number; embedHeight?: number; duration?: number; author?: string; isLargeMedia?: boolean; }, client: Snake); static parse(client: Snake, webpage: Raw.WebPage): WebPage; }