HubSpot / slack-client

An asynchronous HTTP client for Slack's web API
Apache License 2.0
115 stars 53 forks source link

add blocks to attachments #314

Closed ykaliukh closed 1 year ago

ykaliukh commented 1 year ago

For my fix, I need to add the field "blocks" to the field "attachment" according to this Slack doc. For some reason, Slack API does not process requests as expected if an attachment has the field "blocks" and other fields. In order to solve this problem, a custom serializer has been added.