@extends('layouts.app') @section('content')
My bots

{{ $bot->internal_name }}

{{ $bot->telegram_username ? '@'.$bot->telegram_username : $bot->telegram_first_name }} ยท {{ $bot->template->name }}

Connection health

Webhook is {{ $bot->webhook_status === 'verified' ? 'verified' : 'waiting' }}.

{{ $bot->webhook_status === 'verified' ? 'Healthy' : 'Review' }}

Telegram identity

{{ $bot->telegram_username ? '@'.$bot->telegram_username : $bot->telegram_first_name }}

Secure token

{{ $bot->maskedToken() }}

Last update

{{ $bot->last_update_at?->diffForHumans() ?? 'Waiting' }}

Connected

{{ $bot->created_at->format('M j, Y') }}

@csrf @method('PATCH')
@csrf
@if($bot->last_error_message)
Needs attention: {{ $bot->last_error_message }}
@endif

Module settings

{{ $bot->template->name }}

Change the settings exposed by this trusted module.

@csrf @method('PUT')@foreach($schema as $key => $field)
@if(($field['type'] ?? 'text') === 'boolean')@else@if(!empty($field['description']))

{{ $field['description'] }}

@endif @endif
@endforeach

Recent updates

@forelse($bot->updates as $update)

{{ str_replace('_', ' ', $update->update_type) }}

{{ $update->created_at->diffForHumans() }}

@empty
No Telegram updates yet.
@endforelse

Remove this bot?

The webhook will be deleted before the connection is removed.

@csrf @method('DELETE')
@endsection