Closed RobinJayaswal closed 5 years ago
Thanks!
Looks like a simple enough change to me.
I'd be interested to know which adapter you're using that supports objects as messages. Also, it'd probably be nice for other users to document that in the README, too. Perhaps under "Usage" with an example of how you post an attachment.
Closing this, as it's been two years without response.
@RobinJayaswal Thank you for the PR, and feel free to open a new one, of course!
Thanks for this library, super helpful. One problem is that you cannot send messages with attachments with it since you only send if its a string or an array. This quick fix makes it so you can send structured messages.
ps. right now it is actually possible, you simply have to create your structured message, then wrap it in an array before sending it in a POST request.