mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-15 11:42:53 -06:00
fix: Adjust in webhook_base64
This commit is contained in:
parent
3238150b92
commit
2aadd1cac5
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
* Proxy configuration improvements
|
* Proxy configuration improvements
|
||||||
* Correction in sending lists
|
* Correction in sending lists
|
||||||
|
* Adjust in webhook_base64
|
||||||
|
|
||||||
# 1.6.1 (2023-12-22 11:43)
|
# 1.6.1 (2023-12-22 11:43)
|
||||||
|
|
||||||
|
@ -1748,10 +1748,14 @@ export class WAStartupService {
|
|||||||
|
|
||||||
let messageRaw: MessageRaw;
|
let messageRaw: MessageRaw;
|
||||||
|
|
||||||
if (
|
const isMedia =
|
||||||
(this.localWebhook.webhook_base64 === true && received?.message.documentMessage) ||
|
received?.message?.imageMessage ||
|
||||||
received?.message?.imageMessage
|
received?.message?.videoMessage ||
|
||||||
) {
|
received?.message?.stickerMessage ||
|
||||||
|
received?.message?.documentMessage ||
|
||||||
|
received?.message?.audioMessage;
|
||||||
|
|
||||||
|
if (this.localWebhook.webhook_base64 === true && isMedia) {
|
||||||
const buffer = await downloadMediaMessage(
|
const buffer = await downloadMediaMessage(
|
||||||
{ key: received.key, message: received?.message },
|
{ key: received.key, message: received?.message },
|
||||||
'buffer',
|
'buffer',
|
||||||
|
Loading…
Reference in New Issue
Block a user