29 lines
943 B
PHP
29 lines
943 B
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' => [],
|
|
|
|
// 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'),
|
|
];
|