SaveRecentStickerRequest
Only users can use this request. See code examples.
---functions--- messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool
Returns
Bool |
This type has no instances available.
Parameters
id | InputDocument | |
unsave | Bool | |
attached | flag | This argument defaults to None and can be omitted. |
Known RPC errors
This request can cause 1 known error:
StickerIdInvalidError | The provided sticker 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.SaveRecentStickerRequest( id=types.InputDocument( id=-12398745604826, access_hash=-12398745604826, file_reference=b'arbitrary\x7f data \xfa here' ), unsave=False, attached=True )) print(result)