summaryrefslogtreecommitdiffstats
path: root/bridge/whatsappmulti
diff options
context:
space:
mode:
authorilmaisin <iiro.laiho@iki.fi>2023-03-10 23:30:48 +0200
committerGitHub <noreply@github.com>2023-03-10 22:30:48 +0100
commit544cd5cd9ee8fc48b4056a10316f79d6a96c63bb (patch)
tree5b8cd88a13af10c1f3b627fd1df02302e7c075ac /bridge/whatsappmulti
parent53b63adc71938b020e5003ed29382a14166de1db (diff)
downloadmatterbridge-msglm-544cd5cd9ee8fc48b4056a10316f79d6a96c63bb.tar.gz
matterbridge-msglm-544cd5cd9ee8fc48b4056a10316f79d6a96c63bb.tar.bz2
matterbridge-msglm-544cd5cd9ee8fc48b4056a10316f79d6a96c63bb.zip
Fix Android media download problem (whatsapp) (#2010)
Diffstat (limited to 'bridge/whatsappmulti')
-rw-r--r--bridge/whatsappmulti/whatsapp.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/whatsappmulti/whatsapp.go b/bridge/whatsappmulti/whatsapp.go
index e943fc86..99e56446 100644
--- a/bridge/whatsappmulti/whatsapp.go
+++ b/bridge/whatsappmulti/whatsapp.go
@@ -243,6 +243,7 @@ func (b *Bwhatsapp) PostDocumentMessage(msg config.Message, filetype string) (st
FileSha256: resp.FileSHA256,
FileLength: goproto.Uint64(resp.FileLength),
Url: &resp.URL,
+ DirectPath: &resp.DirectPath,
ContextInfo: ctx,
}
@@ -280,6 +281,7 @@ func (b *Bwhatsapp) PostImageMessage(msg config.Message, filetype string) (strin
FileSha256: resp.FileSHA256,
FileLength: goproto.Uint64(resp.FileLength),
Url: &resp.URL,
+ DirectPath: &resp.DirectPath,
ContextInfo: ctx,
}
@@ -313,6 +315,7 @@ func (b *Bwhatsapp) PostVideoMessage(msg config.Message, filetype string) (strin
FileSha256: resp.FileSHA256,
FileLength: goproto.Uint64(resp.FileLength),
Url: &resp.URL,
+ DirectPath: &resp.DirectPath,
ContextInfo: ctx,
}
@@ -345,6 +348,7 @@ func (b *Bwhatsapp) PostAudioMessage(msg config.Message, filetype string) (strin
FileSha256: resp.FileSHA256,
FileLength: goproto.Uint64(resp.FileLength),
Url: &resp.URL,
+ DirectPath: &resp.DirectPath,
ContextInfo: ctx,
}