fix: remove phone check

This commit is contained in:
Mohamed Sohail 2022-01-18 18:49:08 +03:00
parent 0e1fbfeb1b
commit 1c7268e1a3
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
1 changed files with 0 additions and 7 deletions

View File

@ -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(