@extends('layouts.app') @section('title', __('Telegram Integration')) @section('header')

{{ __('Telegram Integration') }}

@endsection @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

{{ __('Configure Your Bot') }}

{{ __('Set up your own Telegram bot to receive insights.') }}

{{ __('How to create your bot:') }}

  1. {{ __('Open Telegram and search for') }} @BotFather
  2. {{ __('Send') }} /newbot {{ __('and follow the instructions') }}
  3. {{ __('Copy the HTTP API token provided by BotFather') }}
  4. {{ __('Start a chat with your new bot and send') }} /start
  5. {{ __('Get your Chat ID (use @userinfobot or similar)') }}
  6. {{ __('Fill in the fields below and click Connect') }}
@csrf

{{ __('Connection Status') }}

{{ __('Your bot configuration status.') }}

@if($telegramUser && $telegramUser->isFullyConfigured())
{{ __('Bot Configured') }}
@if($telegramUser->bot_username)

{{ __('Bot: :username', ['username' => '@' . ltrim($telegramUser->bot_username, '@')]) }}

@endif

{{ __('Chat ID: :id', ['id' => $telegramUser->chat_id]) }}

{{ __('Connected since: :date', ['date' => $telegramUser->created_at->format('d/m/Y H:i')]) }}

@csrf
@csrf
@else
{{ __('Not Configured') }}

{{ __('Create your own Telegram bot and configure it here to receive insights.') }}

@endif

{{ __('Why use your own bot?') }}

  • ✓ {{ __('Full control over your notifications') }}
  • ✓ {{ __('No shared bots - completely private') }}
  • ✓ {{ __('Receive insights in real-time') }}
  • ✓ {{ __('Works with your existing bot configuration') }}
@endsection