setStickerSetTitle
Establece el título de un paquete de stickers.
Devuelve: Si la llamada tiene éxito, devuelve True.
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
name | String | Sí | Nombre del paquete de stickers |
title | String | Sí | Nuevo título (1-64 caracteres) |
Ejemplo de solicitud
curl
curl -s -X POST "https://api.telegram.org/bot$TOKEN/setStickerSetTitle" \
-H "Content-Type: application/json" \
-d '{"name":"example_by_your_bot","title":"Example"}'
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
f"https://api.telegram.org/bot{TOKEN}/setStickerSetTitle",
json={
"name": "example_by_your_bot",
"title": "Example"
},
timeout=30,
)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/setStickerSetTitle`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"name": "example_by_your_bot",
"title": "Example"
}),
});
console.log(await res.json());
Guía paso a paso: Cómo crear un bot en Telegram paso a paso: de BotFather a tu primer mensaje
Métodos relacionados
getStickerSetDevuelve un paquete de stickers.uploadStickerFileSube un archivo de sticker.createNewStickerSetCrea un nuevo paquete de stickers.addStickerToSetAgrega un sticker a un paquete.replaceStickerInSetReemplaza un sticker en un paquete.setStickerPositionInSetMueve un sticker dentro de un paquete.deleteStickerFromSetElimina un sticker de un paquete.setStickerSetThumbnailEstablece la miniatura de un paquete de stickers.setCustomEmojiStickerSetThumbnailEstablece la miniatura de un paquete de emojis personalizados.deleteStickerSetElimina un paquete de stickers.setStickerEmojiListCambia la lista de emojis de un sticker.setStickerKeywordsCambia las palabras clave de un sticker.