Skip to content

Commit 05ff08d

Browse files
committed
#9: change config name
1 parent 4d5979b commit 05ff08d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/telegram-git-notifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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,7 +17,7 @@
1717
],
1818

1919
'author' => [
20-
'contact' => env('TGN_AUTHOR_CONTACT', 'https://t.me/tannp27'),
20+
'discussion' => env('TGN_AUTHOR_CONTACT', 'https://t.me/tannp27'),
2121
'source_code' => env(
2222
'TGN_AUTHOR_SOURCE_CODE',
2323
'https://github.com/lbiltech/laravel-telegram-git-notifier'

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)