Layer 224
StickersChangeStickerPosition
Changes the absolute position of a sticker in the set to which it belongs. The sticker set must have been created by the current user/bot.
method
Users
Bots
stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet;
Parameters
| Name | Type | Description |
|---|---|---|
| Sticker | InputDocument | The sticker |
| Position | int | The new position of the sticker, zero-based |
Returns
messages.StickerSetGogram Example
// StickersChangeStickerPosition - positional arguments result, err := client.StickersChangeStickerPosition(&tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, 42) if err != nil { // handle error } // result is *tg.MessagesStickerSet
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKER_INVALID | The provided sticker is invalid. |