setCustomEmojiStickerSetThumbnail
Establece la miniatura de un paquete de emojis personalizados.
Devuelve: Si la llamada tiene éxito, devuelve True.
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
name | String | Sí | Nombre del paquete de stickers |
custom_emoji_id | String | Opcional | ID del emoji personalizado para la miniatura |
Ejemplo de solicitud
curl
curl -s -X POST "https://api.telegram.org/bot$TOKEN/setCustomEmojiStickerSetThumbnail" \
-H "Content-Type: application/json" \
-d '{"name":"example_by_your_bot"}'
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
f"https://api.telegram.org/bot{TOKEN}/setCustomEmojiStickerSetThumbnail",
json={
"name": "example_by_your_bot"
},
timeout=30,
)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/setCustomEmojiStickerSetThumbnail`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"name": "example_by_your_bot"
}),
});
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.setStickerSetTitleEstablece el título de un paquete de stickers.setStickerSetThumbnailEstablece la miniatura de un paquete de stickers.deleteStickerSetElimina un paquete de stickers.setStickerEmojiListCambia la lista de emojis de un sticker.setStickerKeywordsCambia las palabras clave de un sticker.