Skip to content

Commit 8924aca

Browse files
authored
fix: change config file
1 parent 3b27695 commit 8924aca

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

config/telegram-git-notifier.php

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,69 @@
22

33
return [
44
'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
68
'url' => env('TGN_APP_URL', 'http://localhost:8000'),
79
'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'),
810
],
911

1012
'bot' => [
1113
'token' => env('TELEGRAM_BOT_TOKEN', ''),
1214
'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+
*/
1328
'notify_chat_ids' => env('TELEGRAM_NOTIFY_CHAT_IDS', ''),
1429
],
1530

1631
'author' => [
1732
'discussion' => env(
1833
'TGN_AUTHOR_DISCUSSION',
19-
'https://github.com/lbiltech/telegram-git-notifier/discussions'
34+
'https://github.com/lbiltech/laravel-telegram-git-notifier/discussions'
2035
),
2136
'source_code' => env(
2237
'TGN_AUTHOR_SOURCE_CODE',
2338
'https://github.com/lbiltech/laravel-telegram-git-notifier'
2439
),
2540
],
2641

42+
/** Set the path to the data file */
2743
'data_file' => [
2844
'setting' => env(
2945
'TGN_PATH_SETTING',
30-
storage_path('/app/tgn-json/tgn-settings.json')
46+
storage_path('/app/json/tgn/tgn-settings.json')
3147
),
3248

3349
'platform' => [
3450
'gitlab' => env(
3551
'TGN_PATH_PLATFORM_GITLAB',
36-
storage_path('/app/tgn-json/gitlab-events.json')
52+
storage_path('/app/json/tgn/gitlab-events.json')
3753
),
3854
'github' => env(
3955
'TGN_PATH_PLATFORM_GITHUB',
40-
storage_path('/app/tgn-json/github-events.json')
56+
storage_path('/app/json/tgn/github-events.json')
4157
),
4258
],
4359
],
4460

61+
/** Set the path to the view file */
4562
'view' => [
4663
'default' => env(
4764
'TGN_VIEW_DEFAULT',
48-
base_path('resources/views/vendor/laravel-telegram-git-notify')
65+
base_path('resources/views/vendor/telegram-git-notifier')
4966
),
5067

51-
'path' => env('TGN_VIEW_PATH', 'resources/views'),
52-
5368
'event' => [
5469
'default' => env('TGN_VIEW_EVENT_DEFAULT', 'default'),
5570
],

0 commit comments

Comments
 (0)