1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-13 03:27:19 +01:00
MadelineProto/old_docs/API_docs_v41/constructors/webPage.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

2.1 KiB

title description
webPage webPage attributes, type and example

Constructor: webPage

Back to constructors index

Attributes:

Name Type Required
id long Yes
url string Yes
display_url string Yes
type string Optional
site_name string Optional
title string Optional
description string Optional
photo Photo Optional
embed_url string Optional
embed_type string Optional
embed_width int Optional
embed_height int Optional
duration int Optional
author string Optional
document Document Optional

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];

PWRTelegram json-encoded version:

{"_": "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}