Longman\TelegramBot\Commands\Command::preExecute PHP Méthode

preExecute() public méthode

Pre-execute command
public preExecute ( ) : ServerResponse
Résultat Longman\TelegramBot\Entities\ServerResponse
    public function preExecute()
    {
        if ($this->need_mysql && !($this->telegram->isDbEnabled() && DB::isDbConnected())) {
            return $this->executeNoDb();
        }
        return $this->execute();
    }