MadelineProtoDocs/old_docs/API_docs_v53/constructors/webPage.md

53 lines
1.9 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: webPage
2018-12-26 02:56:50 +01:00
description: Web page
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: webPage
2018-04-01 13:19:25 +02:00
[Back to constructors index](index.md)
2018-12-26 02:56:50 +01:00
Web page
2018-04-01 13:19:25 +02:00
### Attributes:
2018-12-26 02:56:50 +01:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|ID|
|url|[string](../types/string.md) | Yes|URL|
|display\_url|[string](../types/string.md) | Yes|Display URL|
|type|[string](../types/string.md) | Optional|Type|
|site\_name|[string](../types/string.md) | Optional|Site name|
|title|[string](../types/string.md) | Optional|Title|
|description|[string](../types/string.md) | Optional|Description|
|photo|[Photo](../types/Photo.md) | Optional|Photo|
|embed\_url|[string](../types/string.md) | Optional|Embed URL|
|embed\_type|[string](../types/string.md) | Optional|Embed type|
|embed\_width|[int](../types/int.md) | Optional|Embed width|
|embed\_height|[int](../types/int.md) | Optional|Embed height|
|duration|[int](../types/int.md) | Optional|Duration|
|author|[string](../types/string.md) | Optional|Author|
|document|[Document](../types/Document.md) | Optional|Document|
2018-04-01 13:19:25 +02:00
### Type: [WebPage](../types/WebPage.md)
### Example:
```php
2018-04-01 13:24:46 +02:00
$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];
2018-04-01 13:19:25 +02:00
```
Or, if you're into Lua:
2018-04-01 13:19:25 +02:00
```lua
2018-04-01 13:24:46 +02:00
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}
2018-04-01 13:19:25 +02:00
```