Skip to content

Commit 57cabc9

Browse files
authored
Merge pull request #10 from pxthinh/feature/webhook_1
#9: update config for laravel
2 parents e6c6b9f + 05ff08d commit 57cabc9

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

config/telegram-git-notifier.php

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
return [
44
'app' => [
5-
'name' => env('APP_NAME', 'Laravel Telegram Git Notify'),
5+
'name' => env('APP_NAME', 'Laravel Telegram Git Notify'),
66
'url' => env('APP_URL', 'http://localhost:8000'),
77
'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'),
88
],
99

10-
'telegram-bot' => [
10+
'bot' => [
1111
'token' => env('TELEGRAM_BOT_TOKEN', ''),
1212
'chat_id' => env('TELEGRAM_BOT_CHAT_ID', ''),
1313
'notify_chat_ids' => explode(
@@ -17,17 +17,40 @@
1717
],
1818

1919
'author' => [
20-
'contact' => env('TGN_AUTHOR_CONTACT', 'https://t.me/tannp27'),
21-
'source_code' => env('TGN_AUTHOR_SOURCE_CODE', 'https://github.com/lbiltech/telegram-git-notifier'),
20+
'discussion' => env('TGN_AUTHOR_CONTACT', 'https://t.me/tannp27'),
21+
'source_code' => env(
22+
'TGN_AUTHOR_SOURCE_CODE',
23+
'https://github.com/lbiltech/laravel-telegram-git-notifier'
24+
),
2225
],
2326

2427
'view' => [
25-
'path' => env('TGN_VIEW_PATH', 'resources/views/telegram-git-notifier'),
26-
'event' => [
28+
'event' => [
2729
'default' => env('TGN_VIEW_EVENT_DEFAULT', 'default'),
2830
],
2931
'globals' => [
30-
'access_denied' => env('TGN_VIEW_GLOBALS_ACCESS_DENIED', 'globals.access_denied'),
32+
'access_denied' => env(
33+
'TGN_VIEW_GLOBALS_ACCESS_DENIED',
34+
'globals.access_denied'
35+
),
36+
],
37+
'tools' => [
38+
'settings' => env(
39+
'TGN_VIEW_TOOL_SETTING',
40+
'tools.settings'
41+
),
42+
'custom_event_action' => env(
43+
'TGN_VIEW_TOOL_CUSTOM_EVENT_ACTION',
44+
'tools.custom_event_action'
45+
),
46+
'custom_event' => env(
47+
'TGN_VIEW_TOOL_CUSTOM_EVENT',
48+
'tools.custom_event'
49+
),
50+
'set_menu_cmd' => env(
51+
'TGN_VIEW_TOOL_SET_MENU_COMMAND',
52+
'tools.set_menu_cmd'
53+
),
3154
],
3255
],
3356
];

src/Http/Actions/WebhookAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class WebhookAction
1313
public function __construct(WebhookService $webhookService)
1414
{
1515
$this->webhookService = $webhookService;
16-
$this->webhookService->setToken(config('telegram-git-notifier.telegram-bot.token'));
16+
$this->webhookService->setToken(config('telegram-git-notifier.bot.token'));
1717
$this->webhookService->setUrl(config('telegram-git-notifier.app.url'));
1818
}
1919

0 commit comments

Comments
 (0)