2.3 KiB
2.3 KiB
title | description | image |
---|---|---|
webPage | webPage attributes, type and example | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: webPage
Attributes:
Name | Type | Required |
---|---|---|
id | long | Yes |
url | string | Yes |
display_url | string | Yes |
hash | int | 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 |
cached_page | Page | Optional |
Type: WebPage
Example:
$webPage = ['_' => 'webPage', 'id' => long, 'url' => 'string', 'display_url' => 'string', 'hash' => int, '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, 'cached_page' => Page];
PWRTelegram json-encoded version:
{"_": "webPage", "id": long, "url": "string", "display_url": "string", "hash": int, "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, "cached_page": Page}
Or, if you're into Lua:
webPage={_='webPage', id=long, url='string', display_url='string', hash=int, 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, cached_page=Page}