src/Api.php
protected function request(
        $method,
        $endpoint,
        array $params = []
    ) {
        return new TelegramRequest(
            $this->getAccessToken(),
            $method,
            $endpoint,
            $params,
            $this->isAsyncRequest(),
            $this->getTimeOut(),
            $this->getConnectTimeOut()
        );
    }
protected function request(
        $method,
        $endpoint,
        array $params = []
    ) {
        return new TelegramRequest(
            $this->getAccessToken(),
            $method,
            $endpoint,
            $params,
            $this->isAsyncRequest(),
            $this->getTimeOut(),
            $this->getConnectTimeOut()
        );
    }
protected function request ( $ method , $ endpoint , array $ params = [ ] ) { return new TelegramRequest ( $ this -> getAccessToken ( ) , $ method , $ endpoint , $ params , $ this -> isAsyncRequest ( ) , $ this -> getTimeOut ( ) , $ this -> getConnectTimeOut ( ) ) ; }
Instantiates a new TelegramRequest entity.

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

@return TelegramRequest
Instantiates a new TelegramRequest entity .