getCustomEmojiStickers
Özel emoji çıkartmalarının bilgilerini döndürür.
Dönüş değeri: Başarılı olduğunda Array of Sticker döndürür.
Parametreler
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
custom_emoji_ids | Array of String | Evet | Özel emoji ID'lerinin JSON dizisi |
Örnek istek
curl
curl -s -X POST "https://api.telegram.org/bot$TOKEN/getCustomEmojiStickers" \
-H "Content-Type: application/json" \
-d '{"custom_emoji_ids":["5368324170671202286"]}'
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
f"https://api.telegram.org/bot{TOKEN}/getCustomEmojiStickers",
json={
"custom_emoji_ids": [
"5368324170671202286"
]
},
timeout=30,
)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/getCustomEmojiStickers`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"custom_emoji_ids": [
"5368324170671202286"
]
}),
});
console.log(await res.json());
Adım adım rehber: Telegram bot nasıl yapılır? BotFather ile adım adım bot oluşturma
İlgili metotlar
getUserChatBoostsKullanıcının sohbet takviyelerini döndürür.getBusinessConnectionİşletme bağlantısı bilgilerini alır.savePreparedInlineMessageHazırlanmış satır içi mesajı kaydeder.verifyUserBir kuruluş adına kullanıcıyı doğrular.verifyChatBir kuruluş adına sohbeti doğrular.removeUserVerificationKullanıcı doğrulamasını kaldırır.removeChatVerificationSohbet doğrulamasını kaldırır.setUserEmojiStatusKullanıcının emoji durumunu ayarlar.savePreparedKeyboardButtonMini App'ler için klavye düğmesini kaydeder.setPassportDataErrorsKullanıcıyı Telegram Passport hataları hakkında bilgilendirir.