Skip to content

Commit 010ba0f

Browse files
committed
move telegram credentials to services.php
1 parent 700e047 commit 010ba0f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ FLARE_KEY=
3535
MIX_FLARE_KEY="${FLARE_KEY}"
3636

3737
TELEGRAM_BOT_TOKEN=
38-
TELEGRAM_LARAVELIO_CHANNEL=
38+
TELEGRAM_CHANNEL=

app/Notifications/ArticleSubmitted.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function toTelegram($notifiable)
2929
$url = route('articles.show', $this->article->slug());
3030

3131
return TelegramMessage::create()
32-
->to(env('TELEGRAM_LARAVELIO_CHANNEL'))
32+
->to(config('services.telegram-bot-api.channel'))
3333
->content($this->content())
3434
->button('View article', $url);
3535
}

config/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353

5454
'telegram-bot-api' => [
5555
'token' => env('TELEGRAM_BOT_TOKEN'),
56+
'channel' => env('TELEGRAM_CHANNEL'),
5657
],
5758

5859
];

0 commit comments

Comments
 (0)