src/BotsManager.php
public function bot($name = null)
    {
        $name = $name ?: $this->getDefaultBot();

        if (!isset($this->bots[$name])) {
            $this->bots[$name] = $this->makeBot($name);
        }

        return $this->bots[$name];
    }
public function bot($name = null)
    {
        $name = $name ?: $this->getDefaultBot();

        if (!isset($this->bots[$name])) {
            $this->bots[$name] = $this->makeBot($name);
        }

        return $this->bots[$name];
    }
public function bot ( $ name = null ) { $ name = $ name ? : $ this -> getDefaultBot ( ) ; if ( ! isset ( $ this -> bots [ $ name ] ) ) { $ this -> bots [ $ name ] = $ this -> makeBot ( $ name ) ; } return $ this -> bots [ $ name ] ; }
Get a bot instance.

@param string $name

@return Api
Get a bot instance .