messages.getWebPage
Get instant view page
func (c *Client) MessagesGetWebPage(ctx context.Context, request *MessagesGetWebPageRequest) (*MessagesWebPage, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetWebPage(ctx, &tg.MessagesGetWebPageRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *MessagesWebPage
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
URL | string | yes | URL of IV page to fetch |
Hash | int | yes | 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 webPage.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 webPage. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | WC_CONVERT_URL_INVALID | WC convert URL invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getWebPage#8d9692a3