Telegram Bot API
🌐 한국어

getCustomEmojiStickers

카테고리: 기타 · Bot API 10.3 · 공식 문서

커스텀 이모지 스티커 정보를 반환합니다.

반환값: 성공 시 반환값: Array of Sticker.

매개변수

매개변수타입필수설명
custom_emoji_idsArray of String예커스텀 이모지 ID JSON 배열

매개변수 설명은 핵심만 간추린 요약입니다. 전체 설명은 공식 문서에서 확인할 수 있습니다.

요청 예제

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());

단계별 가이드: 텔레그램 봇 만들기: @BotFather로 생성하고 첫 메시지 보내기