Skip to content

Commit 9e6cd39

Browse files
author
allburov
committed
[core] fix types
1 parent 8898429 commit 9e6cd39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/session.webjs.core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
208208
sendText(request: MessageTextRequest) {
209209
const options = {
210210
// It's fine to sent just ids instead of Contact object
211-
mentions: request.mentions as unknown as Contact[],
211+
mentions: request.mentions as unknown as string[],
212212
};
213213
return this.whatsapp.sendMessage(
214214
this.ensureSuffix(request.chatId),
@@ -221,7 +221,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
221221
const options = {
222222
quotedMessageId: request.reply_to,
223223
// It's fine to sent just ids instead of Contact object
224-
mentions: request.mentions as unknown as Contact[],
224+
mentions: request.mentions as unknown as string[],
225225
};
226226
return this.whatsapp.sendMessage(request.chatId, request.text, options);
227227
}

0 commit comments

Comments
 (0)