Skip to content

Commit f0b702a

Browse files
author
Amir
committed
Add docs
1 parent 8d65280 commit f0b702a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ return (new TwitterStatusUpdate('Laravel notifications are awesome!'))->withImag
120120
public_path('mohamed.png')
121121
]);
122122
````
123+
### Publish Twitter status update in reply to another tweet
124+
Additionally, you can publish a status update in reply to another tweet. That is possible using the method `inReplyTo`.
125+
````php
126+
public function toTwitter(mixed $notifiable): TwitterMessage
127+
{
128+
return (new TwitterStatusUpdate('@christophrumpel Laravel notifications are awesome!'))->inReplyTo(123);
129+
}
130+
````
131+
> Note that the reply status id will be ignored if you omit the author of the original tweet, according to Twitter docs.
123132
### Send a direct message
124133
To send a Twitter direct message to a specific user, you will need the `TwitterDirectMessage` class. Provide the Twitter user handler as the first parameter and the message as the second one.
125134
````php

0 commit comments

Comments
 (0)