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 55
66
77use Illuminate \Console \Command ;
8+ use Illuminate \Support \Str ;
89use Longman \TelegramBot \Entities \Update ;
910use Longman \TelegramBot \Exception \TelegramException ;
1011use Longman \TelegramBot \Telegram ;
@@ -35,7 +36,7 @@ public function handle(Telegram $bot)
3536 if ($ this ->option ('all-update-types ' )) {
3637 $ options ['allowed_updates ' ] = Update::getUpdateTypes ();
3738 } elseif ($ allowedUpdates = $ this ->option ('allowed-updates ' )) {
38- $ options ['allowed_updates ' ] = str ($ allowedUpdates )->explode (', ' );
39+ $ options ['allowed_updates ' ] = Str:: of ($ allowedUpdates )->explode (', ' );
3940 }
4041
4142 $ 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)
4444 if ($ this ->option ('all-update-types ' )) {
4545 $ options ['allowed_updates ' ] = Update::getUpdateTypes ();
4646 } elseif ($ allowedUpdates = $ this ->option ('allowed-updates ' )) {
47- $ options ['allowed_updates ' ] = str ($ allowedUpdates )->explode (', ' );
47+ $ options ['allowed_updates ' ] = Str:: of ($ allowedUpdates )->explode (', ' );
4848 }
4949
5050 $ response = $ bot ->setWebhook ($ url , $ options );
You can’t perform that action at this time.
0 commit comments