mirror of
https://github.com/nikoksr/notify.git
synced 2025-02-13 13:18:35 +02:00
Merge branch 'main' into build/add-basic-ci
This commit is contained in:
commit
8da6b18f0d
@ -69,13 +69,11 @@ func (t *Twitter) AddReceivers(twitterIDs ...string) {
|
||||
// Send takes a message subject and a message body and sends them to all previously set twitterIDs as a DM.
|
||||
// See https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/new-event
|
||||
func (t Twitter) Send(subject, message string) error {
|
||||
|
||||
directMessageData := &twitter.DirectMessageData{
|
||||
Text: subject + "\n" + message,
|
||||
}
|
||||
|
||||
for _, twitterID := range t.twitterIDs {
|
||||
|
||||
directMessageTarget := &twitter.DirectMessageTarget{
|
||||
RecipientID: twitterID,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user