From 1c7268e1a3fb051ed42467accac2f0e0ceb3a81a Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Tue, 18 Jan 2022 18:49:08 +0300 Subject: [PATCH] fix: remove phone check --- src/bot.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/bot.js b/src/bot.js index cd88529..f5f2402 100644 --- a/src/bot.js +++ b/src/bot.js @@ -78,13 +78,6 @@ bot.on("msg:contact", async (ctx) => { const contact = ctx.msg.contact; if (ctx.from.id === contact.user_id) { - if ( - contact.phone_number.slice(0, 4) !== "+254" || - contact.phone_number.slice(0, 3) !== "254" - ) { - return ctx.reply("Sarafu is only available in Kenya at the moment."); - } - await cache.set(contact.user_id, contact.phone_number.slice(1)); return ctx.reply(