I wanted to be able to send messages using the chat.postMessage API, but didn't want it to be too unwieldy to do so. This piggybacks off of most of the existing adapter code, pattern matching on the shape of the response sent via send/2 or reply/2 to dispatch to the chat.Postmessage endpoint if the response is a map including either attachments or blocks keys.
I wanted to be able to send messages using the
chat.postMessage
API, but didn't want it to be too unwieldy to do so. This piggybacks off of most of the existing adapter code, pattern matching on the shape of the response sent viasend/2
orreply/2
to dispatch to thechat.Postmessage
endpoint if the response is a map including eitherattachments
orblocks
keys.