Telegram Bot API
🌐 English

getWebhookInfo

Category: Updates · Bot API 10.3 · Official documentation

Returns webhook info.

Returns: On success, returns WebhookInfo.

Parameters

This method has no parameters — just call it with your bot token.

Example request

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());

Step-by-step guide: How to Set Up a Telegram Bot Webhook: setWebhook, Secret Token and Troubleshooting