option('timeout'); $this->info("Starting long polling with a timeout of $timeout seconds... Press Ctrl+C to stop."); try { $botManager->startLongPolling($timeout); // @codeCoverageIgnoreStart // This part is unreachable as startLongPolling is an infinite loop return self::SUCCESS; // @codeCoverageIgnoreEnd } catch (Throwable $e) { Log::error("Long polling failed to start or crashed: {$e->getMessage()}", [ 'exception' => $e, ]); $this->error("❌ Long polling failed: {$e->getMessage()}"); return self::FAILURE; } } }