src/Api.php
protected function sendRequest(
        $method,
        $endpoint,
        array $params = []
    ) {
        $request = $this->request($method, $endpoint, $params);

        return $this->lastResponse = $this->client->sendRequest($request);
    }
protected function sendRequest(
        $method,
        $endpoint,
        array $params = []
    ) {
        $request = $this->request($method, $endpoint, $params);

        return $this->lastResponse = $this->client->sendRequest($request);
    }
protected function sendRequest ( $ method , $ endpoint , array $ params = [ ] ) { $ request = $ this -> request ( $ method , $ endpoint , $ params ) ; return $ this -> lastResponse = $ this -> client -> sendRequest ( $ request ) ; }
Sends a request to Telegram Bot API and returns the result.

@param string $method
@param string $endpoint
@param array  $params

@throws TelegramSDKException

@return TelegramResponse
Sends a request to Telegram Bot API and returns the result .