SaveGifRequest
Only users can use this request. See code examples.
---functions--- messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool
Returns
Bool |
This type has no instances available.
Parameters
id | InputDocument | |
unsave | Bool |
Known RPC errors
This request can cause 1 known error:
GifIdInvalidError | The provided GIF ID is 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.SaveGifRequest( id=types.InputDocument( id=-12398745604826, access_hash=-12398745604826, file_reference=b'arbitrary\x7f data \xfa here' ), unsave=False )) print(result)