src/RealTimeClient.php
public function getBotById($id)
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }

        if (!isset($this->bots[$id])) {
            return Promise\reject(new ApiException("No bot exists for ID '$id'."));
        }

        return Promise\resolve($this->bots[$id]);
    }
public function getBotById($id)
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }

        if (!isset($this->bots[$id])) {
            return Promise\reject(new ApiException("No bot exists for ID '$id'."));
        }

        return Promise\resolve($this->bots[$id]);
    }
public function getBotById ( $ id ) { if ( ! $ this -> connected ) { return Promise \ reject ( new ConnectionException ( 'Client not connected. Did you forget to call `connect()`?' ) ) ; } if ( ! isset ( $ this -> bots [ $ id ] ) ) { return Promise \ reject ( new ApiException ( "No bot exists for ID '$id'." ) ) ; } return Promise \ resolve ( $ this -> bots [ $ id ] ) ; }
Gets a bot by its ID.

@param string $id A bot ID.

@return \React\Promise\PromiseInterface A promise for a bot object.
Gets a bot by its ID .