@extends('layouts.app') @section('title', 'Settings') @section('content') @include('partials.admin-nav')
@csrf @method('PUT') @foreach($groups as $group => $fields)

{{ $titles[$group] ?? ucfirst($group) }}

@foreach($fields as $key => $f) @php $name = str_replace('.', '__', $key); @endphp
@if($f['type'] === 'bool') @elseif($f['type'] === 'secret') @isset($f['help'])

{{ $f['help'] }}

@endisset @else @isset($f['help'])

{{ $f['help'] }}

@endisset @endif
@endforeach
@endforeach Saving the Telegram section registers the webhook automatically.

Telegram connection

Webhook URL
{{ $webhookUrl }}
Telegram says
@if($webhook === null)No token saved. @elseif(! $webhook['ok']){{ $webhook['description'] ?? 'error' }} @else @php $r = $webhook['result']; @endphp @if(($r['url'] ?? '') === '')No webhook registered @elseif($r['url'] === $webhookUrl)Registered · pending updates: {{ $r['pending_update_count'] ?? 0 }} @elsePoints elsewhere {{ $r['url'] }}@endif @if(! empty($r['last_error_message']))
Last delivery error: {{ $r['last_error_message'] }}
@endif @endif
@csrf
@csrf
@csrf @method('DELETE')
  1. Create a bot with @BotFather → /newbot, and paste the token above.
  2. Open your new bot in Telegram and press Start (bots can't message you first).
  3. Get your chat ID by messaging @userinfobot, paste it as the Admin chat ID. For a group, add the bot and use the group's (negative) ID.
  4. Tick "Telegram notifications enabled" and save. Telegram needs an https URL.
@endsection