File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 88
99class ListenCommand extends Command
1010{
11- protected $ signature = 'nutgram:listen {--pollingTimeout=1 } ' ;
11+ protected $ signature = 'nutgram:listen {--pollingTimeout=5 } ' ;
1212
1313 protected $ description = 'Start the bot for development and reloads after every update. ' ;
1414
1515 public function handle (): void
1616 {
1717 $ this ->warn ('This running mode is very inefficient and only suitable for development purposes. DO NOT USE IN PRODUCTION! ' );
1818 $ this ->info ('Listening... ' );
19-
20- $ pollingTimeout = $ this ->option ('pollingTimeout ' ) ?: 1 ;
21- config ()?->set('nutgram.config.polling.timeout ' , $ pollingTimeout );
19+ config ()?->set('nutgram.config.polling.timeout ' , $ this ->option ('pollingTimeout ' ));
2220 while (true ) {
2321 if (function_exists ('opcache_reset ' )) {
2422 opcache_reset ();
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ public function register()
8282 });
8383
8484 $ this ->app ->alias (Nutgram::class, 'nutgram ' );
85+ $ this ->app ->alias (Nutgram::class, 'telegram ' );
8586 $ this ->app ->alias (Nutgram::class, FakeNutgram::class);
86- $ this ->app ->singleton ('telegram ' , fn (Application $ app ) => $ app ->get (Nutgram::class));
8787
8888 if (config ('nutgram.mixins ' , false )) {
8989 Nutgram::mixin (new Mixins \NutgramMixin ());
You can’t perform that action at this time.
0 commit comments