Skip to content

Commit

Permalink
Merge pull request #217 from ashkeel/main
Browse files Browse the repository at this point in the history
fix send chat messages not sending payload correctly
  • Loading branch information
nicklaw5 committed Mar 12, 2024
2 parents 8fb286d + 2dfc78c commit bdd8724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func (c *Client) SendChatMessage(params *SendChatMessageParams) (*ChatMessageRes
return nil, errors.New("error: sender id must be specified")
}

resp, err := c.post("/chat/messages", &ManyChatMessages{}, params)
resp, err := c.postAsJSON("/chat/messages", &ManyChatMessages{}, params)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bdd8724

Please sign in to comment.