Skip to content

Commit

Permalink
chore: adicionado possibilidade de mencionar de meneira oculta em uma…
Browse files Browse the repository at this point in the history
… foto.
  • Loading branch information
megustalol committed May 9, 2024
1 parent 1d7fe88 commit 3644977
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/api/layers/sender.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class SenderLayer extends ListenerLayer {
filename,
caption,
quotedMessageId,
isViewOnce
isViewOnce,

Check failure on line 224 in src/api/layers/sender.layer.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
}

Expand All @@ -234,14 +234,16 @@ export class SenderLayer extends ListenerLayer {
* @param caption
* @param quotedMessageId Quoted message id
* @param isViewOnce Enable single view
* @param mentionedList
*/
public async sendImageFromBase64(
to: string,
base64: string,
filename: string,
caption?: string,
quotedMessageId?: string,
isViewOnce?: boolean
isViewOnce?: boolean,
mentionedList?: any,

Check failure on line 246 in src/api/layers/sender.layer.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
) {
let mimeType = base64MimeType(base64);

Expand Down Expand Up @@ -274,6 +276,7 @@ export class SenderLayer extends ListenerLayer {
caption,
quotedMessageId,
isViewOnce,
mentionedList,
}) => {
const result = await WPP.chat.sendFileMessage(to, base64, {
type: 'image',
Expand All @@ -282,6 +285,8 @@ export class SenderLayer extends ListenerLayer {
caption,
quotedMsg: quotedMessageId,
waitForAck: true,
detectMentioned: true,
mentionedList: mentionedList,
});

return {
Expand All @@ -290,7 +295,7 @@ export class SenderLayer extends ListenerLayer {
sendMsgResult: await result.sendMsgResult,
};
},
{ to, base64, filename, caption, quotedMessageId, isViewOnce }
{ to, base64, filename, caption, quotedMessageId, isViewOnce, mentionedList }

Check failure on line 298 in src/api/layers/sender.layer.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `·to,·base64,·filename,·caption,·quotedMessageId,·isViewOnce,·mentionedList` with `⏎········to,⏎········base64,⏎········filename,⏎········caption,⏎········quotedMessageId,⏎········isViewOnce,⏎········mentionedList,⏎·····`
);

return result;
Expand Down

0 comments on commit 3644977

Please sign in to comment.