FaveStickerRequest
Only users can use this request. See code examples.
---functions--- messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool
Returns
Bool |
This type has no instances available.
Parameters
id | InputDocument | |
unfave | Bool |
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.FaveStickerRequest( id=types.InputDocument( id=-12398745604826, access_hash=-12398745604826, file_reference=b'arbitrary\x7f data \xfa here' ), unfave=False )) print(result)