Files
coruna-lab/config/nutgram.php
T
2026-08-30 04:59:57 +08:00

32 lines
1.1 KiB
PHP

<?php
return [
// Prefer TELEGRAM_BOT_TOKEN (shared with Coruna notifier); TELEGRAM_TOKEN as fallback.
'token' => env('TELEGRAM_BOT_TOKEN', env('TELEGRAM_TOKEN')),
// Nutgram LaravelWebhook secret check (md5(APP_KEY) when true via package default).
// Keep false — TelegramWebhookController validates TELEGRAM_WEBHOOK_SECRET instead.
// Production + true + no matching secret_token = updates silently dropped (no reply).
'safe_mode' => (bool) env('NUTGRAM_SAFE_MODE', false),
// Extra or specific configurations
'config' => [
// Baota PHP curl is often built without nghttp2; Guzzle HTTP/2 then fatals.
'enable_http2' => (bool) env('NUTGRAM_ENABLE_HTTP2', false),
],
// Set if the service provider should automatically load
// handlers from /routes/telegram.php
'routes' => true,
// Enable or disable Nutgram mixins
'mixins' => false,
// Path to save files generated by nutgram:make command
'namespace' => app_path('Telegram'),
// Set log channel
'log_channel' => env('TELEGRAM_LOG_CHANNEL', 'null'),
];