You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,15 @@ return (new TwitterStatusUpdate('Laravel notifications are awesome!'))->withImag
120
120
public_path('mohamed.png')
121
121
]);
122
122
````
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.
123
132
### Send a direct message
124
133
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.
0 commit comments