GetWebPageRequest

Only users can use this request. See code examples.

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

Returns

messages.WebPage

This type can only be an instance of:

WebPage

Parameters

urlstring
hashint

Known RPC errors

This request can cause 1 known error:

WcConvertUrlInvalidErrorWC convert URL invalid.

You can import these from telethon.errors.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.messages.GetWebPageRequest(
        url='some string here',
        hash=0
    ))
    print(result.stringify())