RemoveStickerFromSetRequest
Only bots can use this request. See code examples.
---functions--- stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet
Returns
messages.StickerSet |
This type can be an instance of either:
StickerSet | StickerSetNotModified |
Parameters
sticker | InputDocument |
Known RPC errors
This request can cause 2 known errors:
BotMissingError | This method can only be run by a bot. |
StickerInvalidError | The provided sticker 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.stickers.RemoveStickerFromSetRequest( sticker=types.InputDocument( id=-12398745604826, access_hash=-12398745604826, file_reference=b'arbitrary\x7f data \xfa here' ) )) print(result.stringify())