Skip to content

Commit 442e7a9

Browse files
fix(baileys): pass quoted to sendMessageWithTyping in audioWhatsapp
The audioWhatsapp method was not passing the `quoted` field to sendMessageWithTyping, causing audio replies to not render as quoted replies in WhatsApp. This affected both the encoding=true (base64) and encoding=false (URL) branches. The `quoted` field was already present in SendAudioDto (via Metadata base class) and accepted by the JSONSchema7 validation, but the service layer was silently dropping it. Fix: add `quoted: data?.quoted` to the options object in both branches, matching the behavior already implemented by textMessage and evolution.channel.service.ts audioWhatsapp. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent cd800f2 commit 442e7a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3224,7 +3224,7 @@ export class BaileysStartupService extends ChannelStartupService {
32243224
const result = this.sendMessageWithTyping<AnyMessageContent>(
32253225
data.number,
32263226
{ audio: convert, ptt: true, mimetype: 'audio/ogg; codecs=opus' },
3227-
{ presence: 'recording', delay: data?.delay },
3227+
{ presence: 'recording', delay: data?.delay, quoted: data?.quoted },
32283228
isIntegration,
32293229
);
32303230

@@ -3241,7 +3241,7 @@ export class BaileysStartupService extends ChannelStartupService {
32413241
ptt: true,
32423242
mimetype: 'audio/ogg; codecs=opus',
32433243
},
3244-
{ presence: 'recording', delay: data?.delay },
3244+
{ presence: 'recording', delay: data?.delay, quoted: data?.quoted },
32453245
isIntegration,
32463246
);
32473247
}

0 commit comments

Comments
 (0)