Handle incoming document captions from whatsapp (#1935)

pull/1936/head
ilmaisin 1 year ago committed by GitHub
parent 0a6d64ab48
commit 91353d0a4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -335,7 +335,7 @@ func (b *Bwhatsapp) handleDocumentMessage(msg *events.Message) {
}
// Move file to bridge storage
helper.HandleDownloadData(b.Log, &rmsg, filename, "document", "", &data, b.General)
helper.HandleDownloadData(b.Log, &rmsg, filename, imsg.GetCaption(), "", &data, b.General)
b.Log.Debugf("<= Sending message from %s on %s to gateway", senderJID, b.Account)
b.Log.Debugf("<= Message is %#v", rmsg)

Loading…
Cancel
Save