Skip to main content

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

NameTypeRequiredDescription
StickerInputDocumentClassyesThe sticker
PositionintyesThe new position of the sticker, zero-based

Returns

MessagesStickerSetClass

Possible errors

CodeTypeDescription
400STICKER_INVALIDThe provided sticker is invalid.

References