Telegram Bot API
🌐 Türkçe

getStickerSet

Kategori: Çıkartmalar · Bot API 10.3 · Resmi dokümantasyon

Çıkartma paketini döndürür.

Dönüş değeri: Başarılı olduğunda StickerSet döndürür.

Parametreler

ParametreTürZorunluAçıklama
nameStringEvetÇıkartma paketi adı

Parametre açıklamaları kısa özetlerdir; tam metin için resmi dokümantasyona bakın.

Örnek istek

curl

curl -s -X POST "https://api.telegram.org/bot$TOKEN/getStickerSet" \
  -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}/getStickerSet",
    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}/getStickerSet`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "name": "example_by_your_bot"
  }),
});
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