Changed POST API content-type to application/json

Fixed AddMember response parsing
added bot post message example
This commit is contained in:
densestvoid
2020-08-24 22:44:28 -04:00
parent d8cdcf4ef2
commit f900b99dac
4 changed files with 33 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ func (c *Client) AddMembers(groupID ID, members ...*Member) (string, error) {
}
var resp struct {
ResultsID string `json:"result_id"`
ResultsID string `json:"results_id"`
}
err = c.doWithAuthToken(httpReq, &resp)