Compare commits
No commits in common. "0e1fbfeb1be368e5e94b04a9cd5fbede5e589bce" and "aace2e98e16d696b89e9e65ec5776c562c71042f" have entirely different histories.
0e1fbfeb1b
...
aace2e98e1
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ussd-tg-proxy",
|
||||
"version": "0.2.5",
|
||||
"version": "0.2.4",
|
||||
"description": "ussd-tg-proxy",
|
||||
"main": "src/index.js",
|
||||
"repository": "https://git.grassecon.net/grassrootseconomics/ussd-tg-proxy.git",
|
||||
|
@ -78,10 +78,7 @@ 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"
|
||||
) {
|
||||
if (contact.phone_number.slice(0, 4) !== "+254") {
|
||||
return ctx.reply("Sarafu is only available in Kenya at the moment.");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user