Use this method to get current webhook status
Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty.
POST
/getWebhookInfo
curl \
-X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getWebhookInfo
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
Response examples (200)
{
"ok": true,
"result": {
"url": "string",
"has_custom_certificate": true,
"pending_update_count": 42,
"ip_address": "string",
"last_error_date": 42,
"last_error_message": "string",
"max_connections": 42,
"allowed_updates": [
"string"
]
}
}
Response examples (200)
{
"ok": true,
"result": {
"url": "string",
"has_custom_certificate": true,
"pending_update_count": 42,
"ip_address": "string",
"last_error_date": 42,
"last_error_message": "string",
"max_connections": 42,
"allowed_updates": [
"string"
]
}
}