public function fillRawData(string $rawData): TelegramResponse
    {
        $this->rawData = $rawData;
        $this->decodedData = json_decode($this->rawData, true);

        if ($this->decodedData['ok'] === false) {
            $exception = new ClientException();
            $exception->setError(new UnsuccessfulRequest($this->decodedData));
            throw $exception;
        }

        return $this;
    }
public function fillRawData(string $rawData): TelegramResponse
    {
        $this->rawData = $rawData;
        $this->decodedData = json_decode($this->rawData, true);

        if ($this->decodedData['ok'] === false) {
            $exception = new ClientException();
            $exception->setError(new UnsuccessfulRequest($this->decodedData));
            throw $exception;
        }

        return $this;
    }
public function fillRawData ( string $ rawData ) : TelegramResponse { $ this -> rawData = $ rawData ; $ this -> decodedData = json_decode ( $ this -> rawData , true ) ; if ( $ this -> decodedData [ 'ok' ] === false ) { $ exception = new ClientException ( ) ; $ exception -> setError ( new UnsuccessfulRequest ( $ this -> decodedData ) ) ; throw $ exception ; } return $ this ; }
Fills in the raw data

@param string $rawData
@return TelegramResponse
@throws \unreal4u\TelegramAPI\Exceptions\ClientException
Fills in the raw data