ChangeStickerPositionRequest

Only bots can use this request. See code examples.

---functions---
stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet

Returns

messages.StickerSet

This type can be an instance of either:

StickerSetStickerSetNotModified

Parameters

stickerInputDocument
positionint

Known RPC errors

This request can cause 2 known errors:

BotMissingErrorThis method can only be run by a bot.
StickerInvalidErrorThe 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.ChangeStickerPositionRequest(
        sticker=types.InputDocument(
            id=-12398745604826,
            access_hash=-12398745604826,
            file_reference=b'arbitrary\x7f data \xfa here'
        ),
        position=42
    ))
    print(result.stringify())