Commit 5f6e525
committed
Add support for nested structure, e.g. attachments.
> The optional attachments argument should contain a JSON-encoded array of
> attachments.
>
> https://api.slack.com/methods/chat.postMessage
This enables simpler calls like this:
sc.api_call('chat.postMessage', {'attachments': [{'title': 'hello'}]})1 parent 4fc299f commit 5f6e525
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments