Longman\TelegramBot\Commands\Command::preExecute PHP Метод

preExecute() публичный Метод

Pre-execute command
public preExecute ( ) : ServerResponse
Результат Longman\TelegramBot\Entities\ServerResponse
    public function preExecute()
    {
        if ($this->need_mysql && !($this->telegram->isDbEnabled() && DB::isDbConnected())) {
            return $this->executeNoDb();
        }
        return $this->execute();
    }