mirror of
https://github.com/nikoksr/notify.git
synced 2024-11-24 08:22:18 +02:00
Update service/twitter/twitter.go
Co-authored-by: Niko Köser <koeserniko@gmail.com>
This commit is contained in:
parent
3421834a08
commit
80e5053c96
@ -91,7 +91,8 @@ func (t Twitter) Send(subject, message string) error {
|
||||
Event: directMessageEvent,
|
||||
}
|
||||
|
||||
if _, _, err := t.client.DirectMessages.EventsNew(directMessageParams); err != nil {
|
||||
_, _, err := t.client.DirectMessages.EventsNew(directMessageParams)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "failed to send direct message to twitter ID '%d'", twitterID)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user