Skip to content

Commit

Permalink
fix: Fixed messageId error
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Jun 1, 2023
1 parent 7cb357f commit 60ce18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/layers/sender.layer.ts
Expand Up @@ -437,7 +437,7 @@ export class SenderLayer extends ListenerLayer {
) {
const result = await evaluateAndReturn(
this.page,
async ({ to, base64, filename, caption, quotedMessageId }) => {
async ({ to, base64, filename, caption, quotedMessageId, messageId }) => {
const result = await WPP.chat.sendFileMessage(to, base64, {
type: 'audio',
isPtt: true,
Expand All @@ -454,7 +454,7 @@ export class SenderLayer extends ListenerLayer {
sendMsgResult: await result.sendMsgResult,
};
},
{ to, base64, filename, caption, quotedMessageId }
{ to, base64, filename, caption, quotedMessageId, messageId }
);

return result;
Expand Down

0 comments on commit 60ce18f

Please sign in to comment.