Skip to content

Commit

Permalink
Merge pull request #177 from miki131/patch-1
Browse files Browse the repository at this point in the history
Fix null token
  • Loading branch information
sergix44 committed Jul 21, 2022
2 parents 856e101 + 3766ad6 commit 0eb8b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NutgramServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function register()
'cache' => $app->make(Cache::class),
], config('nutgram.config'));

$bot = new Nutgram(config('nutgram.token', 'MISSING-TOKEN'), $config);
$bot = new Nutgram(config('nutgram.token') ?? 'MISSING-TOKEN', $config);

if ($app->runningInConsole()) {
$bot->setRunningMode(Polling::class);
Expand Down

0 comments on commit 0eb8b91

Please sign in to comment.