Skip to main content

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

NameTypeRequiredDescription
URLstringyesURL of IV page to fetch
HashintyesHash 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

*MessagesWebPage

Possible errors

CodeTypeDescription
400WC_CONVERT_URL_INVALIDWC convert URL invalid.

References