ReplaceStickerRequest
Both users and bots may be able to use this request. See code examples.
---functions--- stickers.replaceSticker#4696459a sticker:InputDocument new_sticker:InputStickerSetItem = messages.StickerSet
Returns
messages.StickerSet |
This type can be an instance of either:
StickerSet | StickerSetNotModified |
Parameters
sticker | InputDocument | |
new_sticker | InputStickerSetItem |
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient from telethon import functions, types with TelegramClient(name, api_id, api_hash) as client: result = client(functions.stickers.ReplaceStickerRequest( sticker=types.InputDocument( id=-12398745604826, access_hash=-12398745604826, file_reference=b'arbitrary\x7f data \xfa here' ), new_sticker=types.InputStickerSetItem( document=types.InputDocument( id=-12398745604826, access_hash=-12398745604826, file_reference=b'arbitrary\x7f data \xfa here' ), emoji='some string here', mask_coords=types.MaskCoords( n=42, x=7.13, y=7.13, zoom=7.13 ), keywords='some string here' ) )) print(result.stringify())