get_web_file()¶
- async Client.get_web_file()¶
Returns content of a web file, by proxying the request through Telegram.
Usable by Users Bots- Parameters:
location (
InputWebFileLocation) – The web file to download.offset (
int, optional) – Number of bytes to be skipped. Defaults to 0.limit (
int, optional) – Number of bytes to be returned. Defaults to 1048576 (1MB).
- Returns:
WebFile– The downloaded web file data.
Example
web_file = await app.get_web_file(location)