telegram api method · layer 229 · #8d9692a3
messages.getWebPage
Get instant view page
definition
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 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
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | WC_CONVERT_URL_INVALID | WC convert URL invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 62–229 · constructor id changed 1×
| id | layers |
|---|---|
| #32ca8f91 | 62–164 |
| #8d9692a3 | 165–229 |