diff --git a/src/lib/wapi/functions/check-send-exist.js b/src/lib/wapi/functions/check-send-exist.js index f8f293744..af3c048aa 100644 --- a/src/lib/wapi/functions/check-send-exist.js +++ b/src/lib/wapi/functions/check-send-exist.js @@ -151,7 +151,13 @@ export async function sendExist(chatId, returnChat = true, Send = true) { } let ck = await window.WAPI.checkNumberStatus(chatId); - if (ck.status === 404 && !ck.id._serialized.includes('@g.us')) { + if ( + ck.status === 404 && + ck.id && + ck.id._serialized && + ck.id._serialized.include && + !ck.id._serialized.include('@g.us') + ) { return WAPI.scope(chatId, true, ck.status, 'The number does not exist'); }