Updated to the new version of the WhatsApp library

This commit is contained in:
2024-05-24 23:19:01 +02:00
parent a51e2e9cce
commit 1666327364
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:alpine AS builder FROM golang:1.21-alpine AS builder
WORKDIR $GOPATH/src/napnap75/piwigo-souvenirs/ WORKDIR $GOPATH/src/napnap75/piwigo-souvenirs/
COPY piwigo-souvenirs.go . COPY piwigo-souvenirs.go .

View File

@@ -89,9 +89,9 @@ func sendMessage(client *whatsmeow.Client, group string, message string, url str
Text: proto.String(message), Text: proto.String(message),
Title: proto.String(title), Title: proto.String(title),
Description: proto.String(title), Description: proto.String(title),
CanonicalUrl: proto.String(url), CanonicalURL: proto.String(url),
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 {