Skip to content

Commit 7f21fef

Browse files
committed
Add docs for attachments with authors
1 parent 123c682 commit 7f21fef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,18 @@ $client->to('#operations')->attach([
200200
])->send('New alert from the monitoring system');
201201
```
202202

203+
#### Send an attachment with an author
204+
205+
```php
206+
$client->to('@regan')->attach([
207+
'fallback' => 'Things are looking good',
208+
'text' => 'Things are looking good',
209+
'author_name' => 'Bobby Tables',
210+
'author_link' => 'http://flickr.com/bobby/',
211+
'author_url' => 'http://flickr.com/icons/bobby.jpg'
212+
])->send('New alert from the monitoring system');
213+
```
214+
203215
## Advanced usage
204216

205217
### Explicit message creation

0 commit comments

Comments
 (0)