Telegram Bot API
🌐 Español

getWebhookInfo

Categoría: Actualizaciones · Bot API 10.3 · Documentación oficial

Devuelve información del webhook.

Devuelve: Si la llamada tiene éxito, devuelve WebhookInfo.

Parámetros

Este método no tiene parámetros: solo llámalo con el token de tu bot.

Ejemplo de solicitud

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

Guía paso a paso: Webhook de Telegram: cómo configurar setWebhook para tu bot (Python y n8n)