MadelineProtoDocs/old_docs/API_docs_v104/constructors/page.md
2019-08-15 20:25:16 +02:00

1.1 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?
v2 Bool Optional V2?
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, '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}}