Telegram Bot API
🌐 Türkçe

close

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

Botu başka bir sunucuya taşımadan önce kapatır.

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

Parametreler

Bu metodun parametresi yok — bot token'ınızla doğrudan çağırmanız yeterli.

Örnek istek

curl

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

Python

import requests

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

JavaScript

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