Airgram

Guides
/
/
Methods

api.setStickerPositionInSet()

Changes the position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot

Parameters SetStickerPositionInSetParams:

NameTypeDescription
sticker Sticker
positionnumber New position of the sticker in the set, zero-based
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setStickerPositionInSet' | 'error'
  airgram: Airgram
  request: {
    method: 'setStickerPositionInSet'
    params: SetStickerPositionInSetParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}