Layer 220
MessagesGetWebPage
Get instant view page
method
Users
messages.getWebPage#8d9692a3 url:string hash:int = messages.WebPage;
Parameters
| Name | Type | Description |
|---|---|---|
| Url | string | URL of IV page to fetch |
| Hash | int | Hash used for caching, for more info click here. Note: the usual hash generation algorithm cannot be used in this case, please re-use the web Page. hash field returned by a previous call to the method, or pass 0 if this is the first call or if the previous call did not return a web Page. |
Returns
messages.WebPagePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | WC_CONVERT_URL_INVALID | WC convert URL invalid. |
Gogram Example
// MessagesGetWebPage - positional arguments result, err := client.MessagesGetWebPage("...", 0) if err != nil { // handle error } // result is *tg.MessagesWebPage