Skip to content

Commit

Permalink
feat: add support for documentWithCaptionMessage in WhatsApp Baileys …
Browse files Browse the repository at this point in the history
…service

Modified whatsapp.baileys.service.ts to include handling for documentWithCaptionMessage. This change ensures that messages with documents having captions are properly processed, enhancing the service's message handling capabilities. No impact on existing functionalities.
  • Loading branch information
DavidsonGomes committed Jun 18, 2024
1 parent c060d33 commit f5bd11f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/services/channels/whatsapp.baileys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,7 @@ export class BaileysStartupService extends ChannelStartupService {
received?.message?.videoMessage ||
received?.message?.stickerMessage ||
received?.message?.documentMessage ||
received?.message?.documentWithCaptionMessage ||
received?.message?.audioMessage;

const contentMsg = received?.message[getContentType(received.message)] as any;
Expand Down

0 comments on commit f5bd11f

Please sign in to comment.