Link Search Menu Expand Document

Constructor: page

Back to constructors index

Instant view page

Attributes:

NameTypeRequiredDescription
partBoolOptionalIndicates 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.
rtlBoolOptionalWhether the page contains RTL text
v2BoolOptionalWhether this is an IV v2 page
urlstringYesOriginal page HTTP URL
blocksArray of PageBlockYesPage elements (like with HTML elements, only as TL constructors)
photosArray of PhotoYesPhotos in page
documentsArray of DocumentYesMedia in page
viewsintOptionalView 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];