From 0714d8feb7cb2cd379f873dd14d0a7b2b3da1ad4 Mon Sep 17 00:00:00 2001 From: octo-patch Date: Sun, 26 Apr 2026 09:23:19 +0800 Subject: [PATCH] fix: pass quoted option in audioWhatsapp to support replies (fixes #2485) The `audioWhatsapp` method was not forwarding `data.quoted` to `sendMessageWithTyping`, so audio messages sent with a `quoted` key were delivered as standalone messages instead of replies. Added `quoted: data?.quoted` to the options object in both `sendMessageWithTyping` call sites inside `audioWhatsapp` (the encoding path and the direct path), matching the pattern used by all other message-sending methods (textMessage, pollMessage, etc.). Co-Authored-By: Octopus --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 60e857fcc..5484b1128 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -3224,7 +3224,7 @@ export class BaileysStartupService extends ChannelStartupService { const result = this.sendMessageWithTyping( data.number, { audio: convert, ptt: true, mimetype: 'audio/ogg; codecs=opus' }, - { presence: 'recording', delay: data?.delay }, + { presence: 'recording', delay: data?.delay, quoted: data?.quoted }, isIntegration, ); @@ -3241,7 +3241,7 @@ export class BaileysStartupService extends ChannelStartupService { ptt: true, mimetype: 'audio/ogg; codecs=opus', }, - { presence: 'recording', delay: data?.delay }, + { presence: 'recording', delay: data?.delay, quoted: data?.quoted }, isIntegration, ); }