feat: Add Response#Raw with raw json string
This commit is contained in:
parent
4973770c80
commit
bd47ce3567
|
@ -46,6 +46,7 @@ func (c *Client) GetUpdates() (Response, error) {
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
res.Raw = string(body)
|
||||||
err = json.Unmarshal(body, &res)
|
err = json.Unmarshal(body, &res)
|
||||||
|
|
||||||
if len(res.Result) > 0 {
|
if len(res.Result) > 0 {
|
||||||
|
|
Loading…
Reference in a new issue