|
1 | 1 | <?php |
2 | 2 |
|
3 | 3 | return [ |
4 | | - 'log_errors' => env('TELEGRAM_LOG_ERRORS', '500,502,503,504'), |
| 4 | + |
| 5 | + /* |
| 6 | + |-------------------------------------------------------------------------- |
| 7 | + | Telegram Bot Token |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | |
| 10 | + | This option defines the Telegram Bot Token that gets used when sending |
| 11 | + | messages to the Telegram Bot API. You can get your Bot Token from |
| 12 | + | the BotFather on Telegram. |
| 13 | + | |
| 14 | + */ |
| 15 | + |
| 16 | + 'token' => env('TELEGRAM_BOT_TOKEN', ''), |
| 17 | + |
| 18 | + /* |
| 19 | + |-------------------------------------------------------------------------- |
| 20 | + | Telegram Chat ID |
| 21 | + |-------------------------------------------------------------------------- |
| 22 | + | |
| 23 | + | This option defines the Telegram Chat ID that gets used when sending |
| 24 | + | messages to the Telegram Bot API. You can get your Chat ID by |
| 25 | + | sending a message to the bot and then visiting the following URL: |
| 26 | + | https://api.telegram.org/bot<YourBOTToken>/getUpdates |
| 27 | + | |
| 28 | + */ |
5 | 29 |
|
6 | 30 | 'chat_id' => env('TELEGRAM_CHAT_ID', '1234567'), |
7 | 31 |
|
8 | | - 'token' => env('TELEGRAM_BOT_TOKEN', '') |
| 32 | + /* |
| 33 | + |-------------------------------------------------------------------------- |
| 34 | + | Telegram Bot Parse Mode |
| 35 | + |-------------------------------------------------------------------------- |
| 36 | + | |
| 37 | + | This option defines the default parse mode that gets used when sending |
| 38 | + | messages to the Telegram Bot API. The parse mode can be either "html" |
| 39 | + | or "markdown". The default value is "html". |
| 40 | + | |
| 41 | + */ |
| 42 | + |
| 43 | + 'parse_mode' => 'html', |
| 44 | + |
| 45 | + /* |
| 46 | + |-------------------------------------------------------------------------- |
| 47 | + | Default Log Type |
| 48 | + |-------------------------------------------------------------------------- |
| 49 | + | |
| 50 | + | This option defines the default log type that gets used when sending |
| 51 | + | messages to the Telegram Bot API. The default value is "error". |
| 52 | + | can be either "info", "alert" or "error". |
| 53 | + | |
| 54 | + */ |
| 55 | + |
| 56 | + 'default_logger_type' => 'error', |
| 57 | + |
| 58 | + /* |
| 59 | + |-------------------------------------------------------------------------- |
| 60 | + | Errors to log |
| 61 | + |-------------------------------------------------------------------------- |
| 62 | + | |
| 63 | + | This option defines the errors that should be logged to the Telegram Bot |
| 64 | + | API. The default value is "500". You can add more error codes to the |
| 65 | + | array to log more errors. |
| 66 | + | |
| 67 | + */ |
| 68 | + |
| 69 | + 'log_errors' => [ |
| 70 | + '500' |
| 71 | + ], |
9 | 72 | ]; |
0 commit comments