Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require! {
- \prelude-ls : { obj-to-pairs, pairs-to-obj, map, each, join }
- }
- menu =
- "Пройти верификацию" :
- goto: "private-verification"
- "Телеграм-Паспорт" :
- goto: "telegram-passport"
- "Обратиться в поддержку" :
- goto: "support"
- config =
- "main:bot-step" :
- on-enter:
- "$global.admins = [$user.chat_id] if not $global.admins?"
- "$user.verification = $user.verification ? {}"
- "$user.verification.types = []"
- text: """
- Здравствуйте!
- Меня зовут Coinpay bot. Я помогу Вам пройти верификацию, для того чтобы получить доступа к расширенному функционалу и увеличенным лимитам на нашей платформе
- Нажмите "Пройти верификацию" для начала процесса заполнения анкеты
- """
- menu: menu
- on-text:
- "({ user, $app }, cb)-> $app.try-add-admin $user, $text, cb"
- "support:bot-step":
- text: """
- Напишите, пожалуйста сообщение нашему менеджеру. Мы постараемся максимально быстро рассмотреть Ваш запрос и обратимся к Вам с ответом в телеграм.
- """
- on-text:
- store:
- "({ user, $app }, cb)-> $app.contact-support $user, $text, cb"
- goto: "main"
- menu: menu
- "telegram-passport:bot-step" :
- on-enter:
- "$user.verification.types.push 'Верификация Приватного Аккаунта' if $user.verification.types.index-of('Верификация Приватного Аккаунта') is -1"
- text : "Предоставьте, пожалуйста, Ваши документы перейдя по ссылке"
- on-text:
- store:
- "$user.verification.telegram-passport = $text"
- goto: "private-verification9"
- buttons:
- "Предоставить документы" : 'request_passport personal_details passport address utility_bill phone_number email'
- "private-verification:bot-step":
- on-enter:
- "$user.verification.types.push 'Верификация Приватного Аккаунта' if $user.verification.types.index-of('Верификация Приватного Аккаунта') is -1"
- text : "Ваше имя, телефон"
- on-text:
- validate: "[0-9]+"
- store:
- "$user.verification.contact = $text"
- goto: "private-verification3"
- menu:
- "Поделиться контактом" : 'request_contact'
- "private-verification3:bot-step":
- text : "Город в котором Вы проживаете"
- on-text:
- store:
- "$user.verification.city = $text"
- goto: "private-verification4"
- menu:
- "Расшарить локацию" : \request_location
- "private-verification4:bot-step":
- text : "Первая страница паспорта / приложить фото"
- on-text:
- store:
- "$user.verification.passport1 = $text"
- goto: "private-verification5"
- menu: menu
- "private-verification5:bot-step":
- text : "Вторая страница паспорта / приложить фото"
- on-text:
- store:
- "$user.verification.passport2 = $text"
- goto: "private-verification6"
- menu: menu
- "private-verification6:bot-step":
- text : "Прописка / приложить фото"
- on-text:
- store:
- "$user.verification.passportAddress = $text"
- goto: "private-verification7"
- menu: menu
- "private-verification7:bot-step":
- text : "ИНН / приложить фото"
- on-text:
- store:
- "$user.verification.identity = $text"
- goto: "private-verification8"
- menu: menu
- "private-verification8:bot-step":
- text : "Сфотографируйтесь, пожалуйста, с паспортом в руках и приложите фото сюда"
- images: \https://res.cloudinary.com/nixar-work/image/upload/v1560434060/kyc.png
- on-text:
- store:
- "$user.verification.self-photo = $text"
- goto: "private-verification9"
- menu: menu
- "private-verification9:bot-step":
- redirect-condition:
- "$check.result = $user.verification.types.index-of('Дебетная Карта') > -1" : "private-verification10"
- text : "Спасибо, Вы заполнили все данные и теперь можете ответить еще на несколько вопросов и получить карту банка Конкорд "
- buttons:
- "Завершить" : "goto:private-finish"
- "Получить дебетную карту" :
- store: "$user.verification.type = 'Получить карту'"
- goto : "private-verification10"
- "private-finish:bot-step":
- on-enter:
- "({ user, $app }, cb)-> $app.send-for-review $user, cb"
- text: "Спасибо ты ответил на все вопросы, когда наша служба верификации проверить все данные, мы Вам сообщим"
- menu: menu
- "private-verification10:bot-step":
- text: "Образование"
- buttons:
- "Cреднее":
- store: "$user.verification.degree = 'Cреднее'"
- goto: "private-verification11"
- "Высшее" :
- store: "$user.verification.degree = 'Высшее'"
- goto: "private-verification11"
- "Ученая степень" :
- store: "$user.verification.degree = 'Ученая степень'"
- goto: "private-verification11"
- "private-verification11:bot-step":
- text: "Социальный статус"
- buttons:
- "Не работаю":
- store: "$user.verification.work-status = 'Не работаю'"
- goto: "private-verification12"
- "Предприниматель" :
- store: "$user.verification.work-status = 'Предприниматель'"
- goto: "private-verification12"
- "Сотрудник компании" :
- store: "$user.verification.work-status = 'Сотрудник компании'"
- goto: "private-verification12"
- "private-verification12:bot-step":
- text: "Семейное положение"
- buttons:
- "Женат":
- store: "$user.verification.family-status = 'Женат'"
- goto: "private-verification13"
- "Не женат" :
- store: "$user.verification.family-status = 'Не женат'"
- goto: "private-verification13"
- "private-verification13:bot-step":
- text: "Количество членов семьи, в т.ч. неполнолетние дети (количество человек)"
- buttons:
- "1":
- store: "$user.verification.family-count = 1"
- goto: "private-verification14"
- "2":
- store: "$user.verification.family-count = 2"
- goto: "private-verification14"
- "3":
- store: "$user.verification.family-count = 3"
- goto: "private-verification14"
- "4":
- store: "$user.verification.family-count = 4"
- goto: "private-verification14"
- "5":
- store: "$user.verification.family-count = 5"
- goto: "private-verification14"
- "6":
- store: "$user.verification.family-count = 6"
- goto: "private-verification14"
- "7":
- store: "$user.verification.family-count = 7"
- goto: "private-verification14"
- "8+":
- store: "$user.verification.family-count = '8+'"
- goto: "private-verification14"
- "private-verification14:bot-step":
- redirect-condition:
- "$check.result = $user.verification.work-status is 'Не работаю'" : \private-finish
- text: "Тип организации, в которой вы работаете"
- buttons:
- "ФОП" :
- store: "$user.verification.company-type = 'ФОП'"
- goto: "private-verification15"
- "Юридическое лицо" :
- store: "$user.verification.company-type = 'Юридическое лицо'"
- goto: "private-verification15"
- "private-verification15:bot-step":
- text: "Название организации"
- on-text:
- store: "$user.verification.company-name = $text"
- goto: "private-verification16"
- menu: menu
- "private-verification16:bot-step":
- text: "Сфера деятельности предприятия"
- on-text:
- store: "$user.verification.company-area = $text"
- goto: "private-verification17"
- menu: menu
- "private-verification17:bot-step":
- text: "Сайт компании"
- on-text:
- store: "$user.verification.company-area = $text"
- goto: "private-verification18"
- menu: menu
- "private-verification18:bot-step":
- text: "Ваша должность"
- on-text:
- store: "$user.verification.position = $text"
- goto: "private-verification19"
- menu: menu
- "private-verification19:bot-step":
- redirect-condition:
- "$check.result = $user.verification.types.index-of('Кредитная Карта') > -1" : "private-verification20"
- text : "Спасибо ты ответил на все вопросы, когда наша служба верификации проверить все данные, мы Вам сообщим, также мы сообщим когда и где ты можешь забрать свою карту"
- buttons:
- "Завершить" : "goto:private-finish"
- "Получить кредитную карту" :
- store:
- "$user.verification.types.push 'Кредитная Карта'"
- "$user.verification.type = 'Получить кредитную карту'"
- goto : "private-verification20"
- "private-verification20:bot-step":
- text : "Количество сотрудников в компании"
- on-text :
- store:
- "$store.verification.company-size = $text"
- goto: "private-verification21"
- menu: menu
- "private-verification21:bot-step":
- text : "Сколько времени вы работает на данном предприятии – цифры и мес, год"
- on-text :
- store:
- "$store.verification.working-start = $text"
- goto: "private-verification22"
- menu: menu
- "private-verification22:bot-step":
- text : "Ваша должность"
- on-text :
- store:
- "$store.verification.position = $text"
- goto: "private-verification23"
- menu: menu
- "private-verification23:bot-step":
- text : "Общий трудовой стаж – цифра, мес, год"
- on-text :
- store:
- "$store.verification.overall-experience = $text"
- goto: "private-verification24"
- menu: menu
- "private-verification24:bot-step":
- text : "Размер ежемесячного дохода (гривна, всего, в среднем за год)"
- on-text :
- store:
- "$store.verification.income-avarage-per-year = $text"
- goto: "private-verification25"
- menu: menu
- "private-verification25:bot-step" :
- text : "Имя и Фамилия контактного лица (для экстренной связи, старше 23 лет)"
- on-text :
- store:
- "$store.verification.extra-contact = $text"
- goto: "private-verification26"
- menu: menu
- "private-verification26:bot-step" :
- text : "Кем является для Вас контактное лицо?"
- on-text :
- store:
- "$store.verification.extra-contact-type = $text"
- goto: "private-verification27"
- menu: menu
- "private-verification27:bot-step" :
- text : "Номер телефона контактного лица"
- on-text :
- validate: "[0-9]+"
- store:
- "$store.verification.extra-contact-phone = $text"
- goto: "private-finish"
- menu: menu
- "private-learn-more:bot-step":
- text: """
- Условия верификации частный – для прохождения верификации у Вас должен быть с собой паспорт, код и девайс с камерой, вся верификация займет не более 5 минут, так что начинайте прямо сейчас. После верификации Вы сможете получить приятный бонус - карту от нашего партнера банка Concord
- Ознакомиться с тарифами для верифицированных пользователей может по ссылке <a href='https://concord.ua/ru'>тут</a>
- Ознакомиться с лимитами для верифицированных пользователей можешь по ссылке <a href='https://concord.ua/ru'>тут</a>
- Ознакомиться с условиями для карты ты можешь по ссылке <a href='https://concord.ua/ru'>тут</a>
- """
- menu: menu
- "business-learn-more:bot-step" :
- text:
- """
- Условия верификации бизнес – для прохождения верификации для бизнес аккаунта Вам помимо верификации директора c паспортом и кодом, , нам надо будет ответить на несколько вопросов о твоем бизнесе, , вся верификация займет не более 10 минут и ты сможешь получить доступ к максимальному количеству функций и минимальным тарифам на нашей платформе Также ты сможешь получить приятный бонус - карту от нашего партнера банка Concord на имя директора своего предприятия и добавить еще сотрудников если Вам это будет интересно
- Ознакомиться с тарифами для верифицированных пользователей можешь по ссылке <a href="https://concord.ua/ru">тут</a>
- Ознакомиться с лимитами для верифицированных пользователей можешь по ссылке <a href="https://concord.ua/ru">тут</a>
- Ознакомиться с условиями для карты ты можешь по ссылке <a href="https://concord.ua/ru">тут</a>
- """
- menu: menu
- module.exports = config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement