src/Api.php
protected function get($endpoint, $params = [])
    {
        if (array_key_exists('reply_markup', $params)) {
            $params['reply_markup'] = (string)$params['reply_markup'];
        }

        return $this->sendRequest(
            'GET',
            $endpoint,
            $params
        );
    }
protected function get($endpoint, $params = [])
    {
        if (array_key_exists('reply_markup', $params)) {
            $params['reply_markup'] = (string)$params['reply_markup'];
        }

        return $this->sendRequest(
            'GET',
            $endpoint,
            $params
        );
    }
protected function get ( $ endpoint , $ params = [ ] ) { if ( array_key_exists ( 'reply_markup' , $ params ) ) { $ params [ 'reply_markup' ] = ( string ) $ params [ 'reply_markup' ] ; } return $ this -> sendRequest ( 'GET' , $ endpoint , $ params ) ; }
Sends a GET request to Telegram Bot API and returns the result.

@param string $endpoint
@param array  $params

@throws TelegramSDKException

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