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