mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-24 11:01:36 +00:00
Fix Android media download problem (whatsapp) (#2010)
This commit is contained in:
parent
53b63adc71
commit
544cd5cd9e
@ -243,6 +243,7 @@ func (b *Bwhatsapp) PostDocumentMessage(msg config.Message, filetype string) (st
|
|||||||
FileSha256: resp.FileSHA256,
|
FileSha256: resp.FileSHA256,
|
||||||
FileLength: goproto.Uint64(resp.FileLength),
|
FileLength: goproto.Uint64(resp.FileLength),
|
||||||
Url: &resp.URL,
|
Url: &resp.URL,
|
||||||
|
DirectPath: &resp.DirectPath,
|
||||||
ContextInfo: ctx,
|
ContextInfo: ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,6 +281,7 @@ func (b *Bwhatsapp) PostImageMessage(msg config.Message, filetype string) (strin
|
|||||||
FileSha256: resp.FileSHA256,
|
FileSha256: resp.FileSHA256,
|
||||||
FileLength: goproto.Uint64(resp.FileLength),
|
FileLength: goproto.Uint64(resp.FileLength),
|
||||||
Url: &resp.URL,
|
Url: &resp.URL,
|
||||||
|
DirectPath: &resp.DirectPath,
|
||||||
ContextInfo: ctx,
|
ContextInfo: ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,6 +315,7 @@ func (b *Bwhatsapp) PostVideoMessage(msg config.Message, filetype string) (strin
|
|||||||
FileSha256: resp.FileSHA256,
|
FileSha256: resp.FileSHA256,
|
||||||
FileLength: goproto.Uint64(resp.FileLength),
|
FileLength: goproto.Uint64(resp.FileLength),
|
||||||
Url: &resp.URL,
|
Url: &resp.URL,
|
||||||
|
DirectPath: &resp.DirectPath,
|
||||||
ContextInfo: ctx,
|
ContextInfo: ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,6 +348,7 @@ func (b *Bwhatsapp) PostAudioMessage(msg config.Message, filetype string) (strin
|
|||||||
FileSha256: resp.FileSHA256,
|
FileSha256: resp.FileSHA256,
|
||||||
FileLength: goproto.Uint64(resp.FileLength),
|
FileLength: goproto.Uint64(resp.FileLength),
|
||||||
Url: &resp.URL,
|
Url: &resp.URL,
|
||||||
|
DirectPath: &resp.DirectPath,
|
||||||
ContextInfo: ctx,
|
ContextInfo: ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user