Telegram Bot API
🌐 Türkçe

deleteWebhook

Kategori: Güncellemeler · Bot API 10.3 · Resmi dokümantasyon

Webhook'u siler.

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

Parametreler

ParametreTürZorunluAçıklama
drop_pending_updatesBooleanİsteğe bağlıBekleyen güncellemeleri sil

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/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