fix: remove phone check
This commit is contained in:
parent
0e1fbfeb1b
commit
1c7268e1a3
@ -78,13 +78,6 @@ bot.on("msg:contact", async (ctx) => {
|
|||||||
const contact = ctx.msg.contact;
|
const contact = ctx.msg.contact;
|
||||||
|
|
||||||
if (ctx.from.id === contact.user_id) {
|
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));
|
await cache.set(contact.user_id, contact.phone_number.slice(1));
|
||||||
|
|
||||||
return ctx.reply(
|
return ctx.reply(
|
||||||
|
Loading…
Reference in New Issue
Block a user