messages.GetWebPage

class pyrogram.raw.functions.messages.GetWebPage

Get instant view page

Details:
  • Layer: 223

  • ID: 8D9692A3

Parameters:
  • url (str) – URL of IV page to fetch

  • hash (int 32-bit) – 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:

messages.WebPage

TL Schema

messages.getWebPage#8d9692a3
url:string
hash:int

= messages.WebPage

Parameter Tree

GetWebPage
├── urlstring
└── hashint

Example

await app.invoke(
    GetWebPage(
        url="https://google.com",
        hash=0,
    )
)