Telegram Bot API
🌐 Türkçe

getMyDescription

Kategori: Bot bilgisi · Bot API 10.3 · Resmi dokümantasyon

Botun açıklamasını döndürür.

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

Parametreler

ParametreTürZorunluAçıklama
language_codeStringİsteğe bağlıDil kodu (IETF etiketi)

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

Örnek istek

curl

curl -s "https://api.telegram.org/bot$TOKEN/getMyDescription"

Python

import requests

TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.get(f"https://api.telegram.org/bot{TOKEN}/getMyDescription", timeout=30)
print(resp.json())

JavaScript

const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/getMyDescription`);
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