stickers.changeStickerPosition
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.
func (c *Client) StickersChangeStickerPosition(ctx context.Context, request *StickersChangeStickerPositionRequest) (MessagesStickerSetClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StickersChangeStickerPosition(ctx, &tg.StickersChangeStickerPositionRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesStickerSetClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Sticker | InputDocumentClass | yes | The sticker |
Position | int | yes | The new position of the sticker, zero-based |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKER_INVALID | The provided sticker is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stickers.changeStickerPosition#ffb6d4ca