deleteWebhook
Webhook'u siler.
Dönüş değeri: Başarılı olduğunda True döndürür.
Parametreler
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
drop_pending_updates | Boolean | İsteğe bağlı | Bekleyen güncellemeleri sil |
Örnek istek
curl
curl -s "https://api.telegram.org/bot$TOKEN/deleteWebhook"
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.get(f"https://api.telegram.org/bot{TOKEN}/deleteWebhook", timeout=30)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/deleteWebhook`);
console.log(await res.json());
Adım adım rehber: Telegram bot webhook kurulumu: URL, secret token, getWebhookInfo ve sorun giderme
İlgili metotlar
getWebhookInfoWebhook bilgilerini döndürür.setWebhookWebhook ayarlar.getUpdatesGüncellemeleri alır. 'Başlat' düğmesini long polling için kullanın.