MadelineProtoDocs/old_docs/API_docs_v102/constructors/page.md
2019-12-27 17:48:04 +01:00

1.5 KiB

title: page description: Instant view page image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: page

Back to constructors index

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 Blocks
photos Array of Photo Yes Photos
documents Array of Document Yes Documents

Type: Page

Example:

$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:

page={_='page', part=Bool, rtl=Bool, v2=Bool, url='string', blocks={PageBlock}, photos={Photo}, documents={Document}}