method ApiMethods.replaceStickerInSet
ApiMethods.replaceStickerInSet(args: { user_id: number; name: string; old_sticker: string; sticker: InputSticker<F>; }): true

Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet. Returns True on success.

Parameters

args: { user_id: number; name: string; old_sticker: string; sticker: InputSticker<F>; }

Return Type

true

Usage

import { type ApiMethods } from "types";