ChangeStickerRequest

Both users and bots may be able to use this request. See code examples.

---functions---
stickers.changeSticker#f5537ebc flags:# sticker:InputDocument emoji:flags.0?string mask_coords:flags.1?MaskCoords keywords:flags.2?string = messages.StickerSet

Returns

messages.StickerSet

This type can be an instance of either:

StickerSetStickerSetNotModified

Parameters

stickerInputDocument
emojistringThis argument defaults to None and can be omitted.
mask_coordsMaskCoordsThis argument defaults to None and can be omitted.
keywordsstringThis argument defaults to None and can be omitted.

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.ChangeStickerRequest(
        sticker=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())