Skip to content

Commit 5ab1954

Browse files
committed
Update README with attachments example.
1 parent bcf0a5f commit 5ab1954

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ print sc.api_call("api.test")
4343
print sc.api_call("channels.info", channel="1234567890")
4444
print sc.api_call(
4545
"chat.postMessage", channel="#general", text="Hello from Python! :tada:",
46-
username='pybot', icon_emoji=':robot_face:'
46+
username='pybot', icon_emoji=':robot_face:',
47+
attachments=[{'title': 'This is an attachment', 'color': 'good'}]
4748
)
4849
```
4950

0 commit comments

Comments
 (0)