getCustomEmojiStickers
Returns custom emoji stickers info.
Returns: On success, returns Array of Sticker.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
custom_emoji_ids | Array of String | Yes | JSON array of custom emoji IDs |
Example request
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());
Step-by-step guide: How to Create a Telegram Bot: Step by Step with BotFather and Python
Related methods
getUserChatBoostsReturns user's chat boosts.getBusinessConnectionGets business connection info.savePreparedInlineMessageSaves a prepared inline message.verifyUserVerifies a user on behalf of an organization.verifyChatVerifies a chat on behalf of an organization.removeUserVerificationRemoves user verification.removeChatVerificationRemoves chat verification.setUserEmojiStatusSets a user's emoji status.savePreparedKeyboardButtonSaves a keyboard button for Mini Apps.setPassportDataErrorsInforms the user about Telegram Passport errors.