$httpCode, 'response' => json_decode($response, true) ]; } // Test 2: getUpdates - Obtener actualizaciones recientes function testGetUpdates($token) { $ch = curl_init("https://api.telegram.org/bot{$token}/getUpdates?limit=5"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return [ 'http_code' => $httpCode, 'response' => json_decode($response, true) ]; } $testGetMe = testGetMe($botToken); $testUpdates = testGetUpdates($botToken); ?> Test Conexión Telegram

Test de Conexión Telegram

← Volver

1. Información del Bot (getMe)

Nombre:

Username: @

ID:

Permite inline:

Ver respuesta completa

2. Actualizaciones Recientes (getUpdates)

Mensajes recientes:

Ver actualizaciones

3. Configuración Actual

Token:

Si todos los tests pasan, tu bot está correctamente configurado y listo para usarse.

4. Gestión de Webhook

El bot puede funcionar con webhook (HTTP) o polling (daemon). Actualmente usamos polling con Supervisor. Si prefieres usar webhook, configúralo aquí:

URL del Webhook: