MadelineProtoDocs/old_docs/API_docs_v51/constructors/webPage.md

1.9 KiB

title description image
webPage Web page https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: webPage

Back to constructors index

Web page

Attributes:

Name Type Required Description
id long Yes ID
url string Yes URL
display_url string Yes Display URL
type string Optional Type
site_name string Optional Site name
title string Optional Title
description string Optional Description
photo Photo Optional Photo
embed_url string Optional Embed URL
embed_type string Optional Embed type
embed_width int Optional Embed width
embed_height int Optional Embed height
duration int Optional Duration
author string Optional Author
document Document Optional Document

Type: WebPage

Example:

$webPage = ['_' => 'webPage', 'id' => long, 'url' => 'string', 'display_url' => 'string', 'type' => 'string', 'site_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'embed_url' => 'string', 'embed_type' => 'string', 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => 'string', 'document' => Document];

Or, if you're into Lua:

webPage={_='webPage', id=long, url='string', display_url='string', type='string', site_name='string', title='string', description='string', photo=Photo, embed_url='string', embed_type='string', embed_width=int, embed_height=int, duration=int, author='string', document=Document}