@extends('layouts.app') @section('title', 'Vincular Telegram') @section('content')

Vincular Cuenta de Telegram

@if($telegramAccount->is_verified)
Cuenta Verificada

Tu cuenta de Telegram está vinculada correctamente.

Chat ID: {{ $telegramAccount->chat_id }}
@csrf
@else
Vinculación de Telegram

Sigue estos pasos para vincular tu cuenta de Telegram:

  1. Abre Telegram y busca el bot de Nómina Pegaso
  2. Envía el código de verificación que aparece abajo
  3. Recibirás una confirmación cuando esté vinculado
Tu Código de Verificación

{{ $telegramAccount->verification_code }}

Este código expira cuando se genera uno nuevo
@csrf
@endif
Información

Al vincular tu cuenta de Telegram podrás:

  • Recibir notificaciones de tus ventas
  • Consultar tu estado de comisiones
  • Recibir recordatorios de registro
Gestión Webhook
@if(isset($webhookInfo['ok']) && $webhookInfo['ok']) @php $info = $webhookInfo['result']; @endphp
@if(!empty($info['url'])) Configurado @else No configurado @endif
@if(!empty($info['url']))
{{ $info['url'] }}
{{ $info['pending_update_count'] ?? 0 }} mensajes
@endif
@csrf
@if(!empty($info['url']))
@csrf
@endif
@else
Error al conectar con Telegram API. @if(isset($webhookInfo['description']))
{{ $webhookInfo['description'] }} @endif
@endif
@endsection