Layer 227
PageObj
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 |
|---|---|---|
| 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 PageObj constructor obj := &tg.PageObj{ Part: nil, Rtl: nil, V2: nil, Url: "Hello, World!", Blocks: &tg.VectorPageBlock{}, Photos: &tg.VectorPhoto{}, // ... more required fields }