MadelineProtoDocs/old_docs/API_docs_v89/constructors/page.md

1.0 KiB

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

Constructor: page

Back to constructors index

Page

Attributes:

Name Type Required Description
part Bool Optional Part?
rtl Bool Optional Rtl?
url string Yes 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, 'url' => 'string', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]];

Or, if you're into Lua:

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