private function getBotId()
    {
        if (is_null($this->botId)) {
            $response = $this->http->get(self::API_ENDPOINT.'people/me', [], $this->getHeaders());
            $bot = json_decode($response->getContent());
            $this->botId = $bot->id;
        }

        return $this->botId;
    }
private function getBotId()
    {
        if (is_null($this->botId)) {
            $response = $this->http->get(self::API_ENDPOINT.'people/me', [], $this->getHeaders());
            $bot = json_decode($response->getContent());
            $this->botId = $bot->id;
        }

        return $this->botId;
    }
private function getBotId ( ) { if ( is_null ( $ this -> botId ) ) { $ response = $ this -> http -> get ( self :: API_ENDPOINT . 'people/me' , [ ] , $ this -> getHeaders ( ) ) ; $ bot = json_decode ( $ response -> getContent ( ) ) ; $ this -> botId = $ bot -> id ; } return $ this -> botId ; }
Returns the chatbot ID.
@return string
Returns the chatbot ID .