GetWallPaperRequest
Only users can use this request. See code examples.
---functions--- account.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper
Returns
WallPaper |
This type can be an instance of either:
WallPaper | WallPaperNoFile |
Parameters
wallpaper | InputWallPaper |
Known RPC errors
This request can cause 1 known error:
WallpaperInvalidError | The input wallpaper was not valid. |
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.account.GetWallPaperRequest( wallpaper=types.InputWallPaper( id=-12398745604826, access_hash=-12398745604826 ) )) print(result.stringify())