Closed brainsik closed 10 years ago
Figured it out. The attachments
field needs to be a string with JSON in it:
print slack.chat.post_message('#sandbox', 'text', attachments=json.dumps([{'fallback':'fallback', 'fields':[{'title':'title','value':'value'}]}])).body
Great, thanks.
Hello. I'm trying to post a message with an attachment, but it doesn't seem to work. OR, I'm not using it correctly, in which case, could you please add an example to the README.
This is what I'm trying:
All I end up seeing is the message "text" without anything else.
Thanks!