Corrected the build following a change in the SendMessage function

This commit is contained in:
2023-01-28 14:30:21 +01:00
committed by GitHub
parent 9d6a5045a9
commit ac049dffbc

View File

@@ -93,7 +93,7 @@ func sendMessage(client *whatsmeow.Client, group string, message string, url str
MatchedText: proto.String(url), MatchedText: proto.String(url),
JpegThumbnail: thumbnail, JpegThumbnail: thumbnail,
}} }}
ts, err := client.SendMessage(context.Background(), jid, "", msg) ts, err := client.SendMessage(context.Background(), jid, msg)
if err != nil { if err != nil {
return fmt.Errorf("Error sending message with title '%s': %v", title, err) return fmt.Errorf("Error sending message with title '%s': %v", title, err)
} }