MadelineProtoDocs/old_docs/API_docs_v102/constructors/page.md

45 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2019-06-24 15:45:02 +02:00
---
title: page
2019-12-27 17:48:04 +01:00
description: [Instant view](https://instantview.telegram.org) page
2019-06-24 15:45:02 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: page
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
[Instant view](https://instantview.telegram.org) page
2019-06-24 15:45:02 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|part|[Bool](../types/Bool.md) | Optional|Indicates that not full page preview is available to the client and it will need to fetch full Instant View from the server using [messages.getWebPagePreview](../methods/messages.getWebPagePreview.md).|
|rtl|[Bool](../types/Bool.md) | Optional|Whether the page contains RTL text|
|v2|[Bool](../types/Bool.md) | Optional|Whether this is an [IV v2](https://instantview.telegram.org/docs#what-39s-new-in-2-0) page|
|url|[string](../types/string.md) | Yes|Original page HTTP URL|
2019-06-24 15:45:02 +02:00
|blocks|Array of [PageBlock](../types/PageBlock.md) | Yes|Blocks|
|photos|Array of [Photo](../types/Photo.md) | Yes|Photos|
|documents|Array of [Document](../types/Document.md) | Yes|Documents|
### Type: [Page](../types/Page.md)
### Example:
```php
$page = ['_' => 'page', 'part' => Bool, 'rtl' => Bool, 'v2' => Bool, 'url' => 'string', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]];
```
Or, if you're into Lua:
```lua
page={_='page', part=Bool, rtl=Bool, v2=Bool, url='string', blocks={PageBlock}, photos={Photo}, documents={Document}}
```