Skip to content

Commit

Permalink
Merge pull request #1076 from ozzyoss77/patch-1
Browse files Browse the repository at this point in the history
Fixing an uncaptured event when sending a document through WhatsApp Web
  • Loading branch information
leifermendez authored Jul 3, 2024
2 parents 603ae59 + 2f0f1d6 commit e17cd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/provider-baileys/src/bailey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class BaileysProvider extends ProviderClass<WASocket> {
}

//Detectar file
if (messageCtx.message?.documentMessage) {
if (messageCtx.message?.documentMessage || messageCtx.message?.documentWithCaptionMessage) {
payload = { ...payload, body: utils.generateRefProvider('_event_document_') }
}

Expand Down

0 comments on commit e17cd4b

Please sign in to comment.