nutgram/laravel

View on GitHub
src/Console/RunCommand.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Nutgram\Laravel\Console;

use Illuminate\Console\Command;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use SergiX44\Nutgram\Nutgram;

class RunCommand extends Command
{
    protected $signature = 'nutgram:run';

    protected $description = 'Start the bot in long polling mode';

    /**
     * @throws ContainerExceptionInterface
     * @throws NotFoundExceptionInterface
     */
    public function handle(Nutgram $bot): void
    {
        $bot->run();
    }
}