Skip to content

Commit

Permalink
fix send chat messages not sending payload correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkeel committed Mar 12, 2024
1 parent 8fb286d commit 2dfc78c
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 2dfc78c

Please sign in to comment.