telegram api method · layer 229 · #8d9692a3

messages.getWebPage

usable by users

Get instant view page

definition

messages.getWebPage#8d9692a3 url:string hash:int = messages.WebPage;

parameters

nametypedescription
urlstringURL of IV page to fetch
hashintHash 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

messages.WebPage

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
400WC_CONVERT_URL_INVALIDWC convert URL invalid.
401AUTH_KEY_UNREGISTEREDThe 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×

idlayers
#32ca8f9162–164
#8d9692a3165–229