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

        return $this->bot($name);
    }
public function reconnect($name = null)
    {
        $name = $name ?: $this->getDefaultBot();
        $this->disconnect($name);

        return $this->bot($name);
    }
public function reconnect ( $ name = null ) { $ name = $ name ? : $ this -> getDefaultBot ( ) ; $ this -> disconnect ( $ name ) ; return $ this -> bot ( $ name ) ; }
Reconnect to the given bot.

@param string $name

@return Api
Reconnect to the given bot .