Available methods

deleteChatStickerSet()

Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.

parameters

parametertyperequireddescription
chat_idnumber | stringrequiredUnique identifier for the target chat or username of the target supergroup in the format @username

returns

boolean

usage in yaebal

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

bot.ts
import type { DeleteChatStickerSetParams } from "@yaebal/types";

await bot.api.call<boolean>("deleteChatStickerSet", {
  chat_id: 123456789,
} satisfies DeleteChatStickerSetParams);

context shortcut

also available as ctx.deleteChatStickerSet() on 16 context types — see @yaebal/contexts.

context shortcut
/** Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field *can\_set\_sticker\_set* optionally returned in [getChat](https://core.telegram.org/bots/api/#getchat) requests to check if the bot can use this method. Returns *True* on success. */
ctx.deleteChatStickerSet(params?: Omit<DeleteChatStickerSetParams, "chat_id">)