deleteStickerFromSetПоддерживается
Use this method to delete a sticker from a set created by the bot. Returns True on success.
Особенности StaticGram
last sticker of a set cannot be removed (STICKERS_EMPTY)
Параметры
File identifier of the sticker
Пример запроса
curl
curl "https://api.staticgram.top/bot$TOKEN/deleteStickerFromSet" \
-H "Content-Type: application/json" \
-d '{
"sticker": "CAACAgIAAxkBAA..."
}'aiogram 3
from aiogram import Bot
from aiogram.client.session.aiohttp import AiohttpSession
from aiogram.client.telegram import TelegramAPIServer
session = AiohttpSession(api=TelegramAPIServer.from_base("https://api.staticgram.top"))
bot = Bot(TOKEN, session=session)
result = await bot.delete_sticker_from_set(sticker="CAACAgIAAxkBAA...")JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/deleteStickerFromSet`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"sticker": "CAACAgIAAxkBAA..."
}),
});
const data = await res.json();Ответ (True)
JSON
{
"ok": true,
"result": true
}