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();
    }