File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
7
7
use Illuminate \Console \Command ;
8
+ use Illuminate \Support \Str ;
8
9
use Longman \TelegramBot \Entities \Update ;
9
10
use Longman \TelegramBot \Exception \TelegramException ;
10
11
use Longman \TelegramBot \Telegram ;
@@ -35,7 +36,7 @@ public function handle(Telegram $bot)
35
36
if ($ this ->option ('all-update-types ' )) {
36
37
$ options ['allowed_updates ' ] = Update::getUpdateTypes ();
37
38
} elseif ($ allowedUpdates = $ this ->option ('allowed-updates ' )) {
38
- $ options ['allowed_updates ' ] = str ($ allowedUpdates )->explode (', ' );
39
+ $ options ['allowed_updates ' ] = Str:: of ($ allowedUpdates )->explode (', ' );
39
40
}
40
41
41
42
$ this ->info ("Start fetching updates... \n<comment>(Exit with Ctrl + C.)</comment> " );
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function handle(Telegram $bot)
44
44
if ($ this ->option ('all-update-types ' )) {
45
45
$ options ['allowed_updates ' ] = Update::getUpdateTypes ();
46
46
} elseif ($ allowedUpdates = $ this ->option ('allowed-updates ' )) {
47
- $ options ['allowed_updates ' ] = str ($ allowedUpdates )->explode (', ' );
47
+ $ options ['allowed_updates ' ] = Str:: of ($ allowedUpdates )->explode (', ' );
48
48
}
49
49
50
50
$ response = $ bot ->setWebhook ($ url , $ options );
You can’t perform that action at this time.
0 commit comments