Layer 220
Page
Instant view page
constructor
page#98657f0d flags:# part:flags.0?true rtl:flags.1?true v2:flags.2?true url:string blocks:Vector<PageBlock> photos:Vector<Photo> documents:Vector<Document> views:flags.3?int = Page;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Part | flags.0?true | 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. get Web Page Preview. |
| Rtl | flags.1?true | Whether the page contains RTL text |
| V2 | flags.2?true | Whether this is an IV v 2 page |
| Url | string | Original page HTTP URL |
| Blocks | Vector<PageBlock> | Page elements (like with HTML elements, only as TL constructors) |
| Photos | Vector<Photo> | Photos in page |
| Documents | Vector<Document> | Media in page |
| Views | flags.3?int | View count |
Returns
PageGogram Example
// Creating Page constructor obj := &tg.Page{ Url: "...", Blocks: []tg.PageBlock{&tg.PageBlock{}}, Photos: []tg.Photo{&tg.Photo{}}, Documents: []tg.Document{&tg.Document{}}, // Optional fields: // Part: true, // Rtl: true, // V2: true, // Views: 0, }