deleteStickerSetПоддерживается
Use this method to delete a sticker set that was created by the bot. Returns True on success.
Параметры
Sticker set name
Пример запроса
curl
curl "https://api.staticgram.top/bot$TOKEN/deleteStickerSet" \
-H "Content-Type: application/json" \
-d '{
"name": "my_set_by_mybot"
}'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_set(name="my_set_by_mybot")JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/deleteStickerSet`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"name": "my_set_by_mybot"
}),
});
const data = await res.json();Ответ (True)
JSON
{
"ok": true,
"result": true
}