Skip to content

Commit

Permalink
[core] fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
allburov committed Feb 1, 2024
1 parent 8898429 commit 9e6cd39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/session.webjs.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
sendText(request: MessageTextRequest) {
const options = {
// It's fine to sent just ids instead of Contact object
mentions: request.mentions as unknown as Contact[],
mentions: request.mentions as unknown as string[],
};
return this.whatsapp.sendMessage(
this.ensureSuffix(request.chatId),
Expand All @@ -221,7 +221,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
const options = {
quotedMessageId: request.reply_to,
// It's fine to sent just ids instead of Contact object
mentions: request.mentions as unknown as Contact[],
mentions: request.mentions as unknown as string[],
};
return this.whatsapp.sendMessage(request.chatId, request.text, options);
}
Expand Down

0 comments on commit 9e6cd39

Please sign in to comment.