1 Commits

Author SHA1 Message Date
1c7268e1a3 fix: remove phone check 2022-01-18 18:49:08 +03:00

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(