Telegram Bot API
🌐 Türkçe

getWebhookInfo

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

Webhook bilgilerini döndürür.

Dönüş değeri: Başarılı olduğunda WebhookInfo 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/getWebhookInfo"

Python

import requests

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

JavaScript

const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/getWebhookInfo`);
console.log(await res.json());

Adım adım rehber: Telegram bot webhook kurulumu: URL, secret token, getWebhookInfo ve sorun giderme