src/TelegramResponse.php
public function decodeBody()
    {
        $this->decodedBody = json_decode($this->body, true);

        if ($this->decodedBody === null) {
            $this->decodedBody = [];
            parse_str($this->body, $this->decodedBody);
        }

        if (!is_array($this->decodedBody)) {
            $this->decodedBody = [];
        }

        if ($this->isError()) {
            $this->makeException();
        }
    }
public function decodeBody()
    {
        $this->decodedBody = json_decode($this->body, true);

        if ($this->decodedBody === null) {
            $this->decodedBody = [];
            parse_str($this->body, $this->decodedBody);
        }

        if (!is_array($this->decodedBody)) {
            $this->decodedBody = [];
        }

        if ($this->isError()) {
            $this->makeException();
        }
    }
public function decodeBody ( ) { $ this -> decodedBody = json_decode ( $ this -> body , true ) ; if ( $ this -> decodedBody === null ) { $ this -> decodedBody = [ ] ; parse_str ( $ this -> body , $ this -> decodedBody ) ; } if ( ! is_array ( $ this -> decodedBody ) ) { $ this -> decodedBody = [ ] ; } if ( $ this -> isError ( ) ) { $ this -> makeException ( ) ; } }
Converts raw API response to proper decoded response.
Converts raw API response to proper decoded response .