|
2 | 2 |
|
3 | 3 | return [ |
4 | 4 | 'app' => [ |
5 | | - 'name' => env('TGN_APP_NAME', 'Laravel Telegram Git Notify'), |
| 5 | + 'name' => env('TGN_APP_NAME', 'Laravel Telegram Git Notifier'), |
| 6 | + |
| 7 | + // Required for the bot to work properly |
6 | 8 | 'url' => env('TGN_APP_URL', 'http://localhost:8000'), |
7 | 9 | 'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'), |
8 | 10 | ], |
9 | 11 |
|
10 | 12 | 'bot' => [ |
11 | 13 | 'token' => env('TELEGRAM_BOT_TOKEN', ''), |
12 | 14 | 'chat_id' => env('TELEGRAM_BOT_CHAT_ID', ''), |
| 15 | + |
| 16 | + /** |
| 17 | + * Set the chat IDs that will receive notifications |
| 18 | + * You can add the owner bot ID, group ID, ... |
| 19 | + * ------------------------------------------------------- |
| 20 | + * Note: |
| 21 | + * Please use semicolon ";" to separate chat ids |
| 22 | + * And use a colon ":" to separate chat ID and thread ID |
| 23 | + * And use comma "," if you want to add multiple thread IDs |
| 24 | + * ------------------------------------------------------- |
| 25 | + * The environment variable is expected to be in the format: |
| 26 | + * "chat_id1;chat_id2:thread_id2;chat_id3:thread_id3_1,thread_id3_2;..." |
| 27 | + */ |
13 | 28 | 'notify_chat_ids' => env('TELEGRAM_NOTIFY_CHAT_IDS', ''), |
14 | 29 | ], |
15 | 30 |
|
16 | 31 | 'author' => [ |
17 | 32 | 'discussion' => env( |
18 | 33 | 'TGN_AUTHOR_DISCUSSION', |
19 | | - 'https://github.com/lbiltech/telegram-git-notifier/discussions' |
| 34 | + 'https://github.com/lbiltech/laravel-telegram-git-notifier/discussions' |
20 | 35 | ), |
21 | 36 | 'source_code' => env( |
22 | 37 | 'TGN_AUTHOR_SOURCE_CODE', |
23 | 38 | 'https://github.com/lbiltech/laravel-telegram-git-notifier' |
24 | 39 | ), |
25 | 40 | ], |
26 | 41 |
|
| 42 | + /** Set the path to the data file */ |
27 | 43 | 'data_file' => [ |
28 | 44 | 'setting' => env( |
29 | 45 | 'TGN_PATH_SETTING', |
30 | | - storage_path('/app/tgn-json/tgn-settings.json') |
| 46 | + storage_path('/app/json/tgn/tgn-settings.json') |
31 | 47 | ), |
32 | 48 |
|
33 | 49 | 'platform' => [ |
34 | 50 | 'gitlab' => env( |
35 | 51 | 'TGN_PATH_PLATFORM_GITLAB', |
36 | | - storage_path('/app/tgn-json/gitlab-events.json') |
| 52 | + storage_path('/app/json/tgn/gitlab-events.json') |
37 | 53 | ), |
38 | 54 | 'github' => env( |
39 | 55 | 'TGN_PATH_PLATFORM_GITHUB', |
40 | | - storage_path('/app/tgn-json/github-events.json') |
| 56 | + storage_path('/app/json/tgn/github-events.json') |
41 | 57 | ), |
42 | 58 | ], |
43 | 59 | ], |
44 | 60 |
|
| 61 | + /** Set the path to the view file */ |
45 | 62 | 'view' => [ |
46 | 63 | 'default' => env( |
47 | 64 | 'TGN_VIEW_DEFAULT', |
48 | | - base_path('resources/views/vendor/laravel-telegram-git-notify') |
| 65 | + base_path('resources/views/vendor/telegram-git-notifier') |
49 | 66 | ), |
50 | 67 |
|
51 | | - 'path' => env('TGN_VIEW_PATH', 'resources/views'), |
52 | | - |
53 | 68 | 'event' => [ |
54 | 69 | 'default' => env('TGN_VIEW_EVENT_DEFAULT', 'default'), |
55 | 70 | ], |
|
0 commit comments