Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
1c7268e1a3
|
|||
|
0e1fbfeb1b
|
|||
|
4530c7105d
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ussd-tg-proxy",
|
||||
"version": "0.2.4",
|
||||
"version": "0.2.5",
|
||||
"description": "ussd-tg-proxy",
|
||||
"main": "src/index.js",
|
||||
"repository": "https://git.grassecon.net/grassrootseconomics/ussd-tg-proxy.git",
|
||||
|
||||
@@ -78,10 +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") {
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user