Skip to content

Instantly share code, notes, and snippets.

@askucher
Last active November 2, 2023 02:43
Show Gist options
  • Save askucher/606a7155f5d80db6d47afcb325056650 to your computer and use it in GitHub Desktop.
Save askucher/606a7155f5d80db6d47afcb325056650 to your computer and use it in GitHub Desktop.
Coinpay KYC solution

Upgrade the Coinpay

Please add to the coinpay:

How it should looks like

  1. Add KYC Verification Section with link https://t.me/coinpay_kyc_bot
  2. Also give user a PIN to identify him later

Setup the Telegram Bot

Requirements:

  • NodeJS installed
  • NPM installed
git clone ... kyc_bot
cd kyc_bot
npm i
npm i pm2 -g 
pm2 start index.js

Please specify in config.json

{
    "telegramToken": "857165986:....",
    "reviewCallback" : "https://coinpay.com.ua/kyc/review"
}

where * telegramToken is generated by https://t.me/BotFather * reviewCallback is created on side of coinpay backend

ReviewCallback Spec

Possible Statuses

  • review
  • accepted
  • rejected

You can skip processing of review status because application will be reviewed by telegram reviewer.

Callback Data Example (JSON)

{ "user" :
   { "chat_id": 331185155,
     "pin": "1234",
     "passport": "<a href='link address'></a>",
     "utility": "<a href='link address'></a>",
     "address": "address",
     "firstname": "firstname",
     "lastname": "lastname" },
  "status": "review" }

KYC reviewer.

First person who click START to the bot is KYC reviewer.

He will receive messages like this

KYC

Admin is able to add a different user as admin

He needs to send /add-admin CHAT_ID message

Example /add-admin 331185154

Advanced Usage

Once you want to add custom fields into the process please goto the layout.ls file and add custom:bot-step by following the file as example itself

@sheilenavarro0
Copy link

One has to be careful with the brokers on the internet now. Last year I was scammed in the binary trade option by a broker I met on Instagram. I invested $14000 which I lost, I couldn’t make a withdrawal and I slowly lost access to my trade account for 3 months. I was frustrated and depressed. After a few months, I met Olivia who is A recovery expert that works with Olivia Trader affiliation with the Federal Bureau of Investigation (FBI) and other law firm. he worked me through the process of getting my money back and all the extra bonus which I got during my trading. he can be of help to anyone who has a similar situation. You can contact her via
mail: oliviatrader 44 @ gmail.com
WhatsApp +1 (423) 248 - 2140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment