mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.6 KiB
1.6 KiB
title | description | nav_exclude | image |
---|---|---|---|
page | Instant view page | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: page
Instant view page
Attributes:
Name | Type | Required | Description |
---|---|---|---|
part | Bool | 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. |
rtl | Bool | Optional | Whether the page contains RTL text |
v2 | Bool | Optional | Whether this is an IV v2 page |
url | string | Yes | Original page HTTP URL |
blocks | Array of PageBlock | Yes | Page elements (like with HTML elements, only as TL constructors) |
photos | Array of Photo | Yes | Photos in page |
documents | Array of Document | Yes | Media in page |
views | int | Optional | View count |
Type: Page
Example:
$page = ['_' => 'page', 'part' => Bool, 'rtl' => Bool, 'v2' => Bool, 'url' => 'string', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document], 'views' => int];