src/TelegramClient.php
public function prepareRequest(TelegramRequest $request)
    {
        $url = $this->getBaseBotUrl().$request->getAccessToken().'/'.$request->getEndpoint();

        return [
            $url,
            $request->getMethod(),
            $request->getHeaders(),
            $request->isAsyncRequest(),
        ];
    }
public function prepareRequest(TelegramRequest $request)
    {
        $url = $this->getBaseBotUrl().$request->getAccessToken().'/'.$request->getEndpoint();

        return [
            $url,
            $request->getMethod(),
            $request->getHeaders(),
            $request->isAsyncRequest(),
        ];
    }
public function prepareRequest ( TelegramRequest $ request ) { $ url = $ this -> getBaseBotUrl ( ) . $ request -> getAccessToken ( ) . '/' . $ request -> getEndpoint ( ) ; return [ $ url , $ request -> getMethod ( ) , $ request -> getHeaders ( ) , $ request -> isAsyncRequest ( ) , ] ; }
Prepares the API request for sending to the client handler.

@param TelegramRequest $request

@return array
Prepares the API request for sending to the client handler .