Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # TODO: отдавать билеты пользователю только по дате не старше сегодня
- # TODO:
- s = {
- "0": {
- "question": [
- {
- "handler": "show",
- "params": {
- "type": "buttons",
- "value": "Выберите язык🇷🇺\nTilni tanlang🇺🇿",
- "buttons": [
- "🇷🇺 Русский",
- "🇺🇿 O'zbekcha"
- ]
- }
- }
- ],
- "answer": [
- {
- "handler": "buttons",
- "params": [
- {
- "value": "🇷🇺 Русский",
- "params": [
- {
- "handler": "goto",
- "params": {
- "type": "question",
- "step": 1
- }
- }
- ]
- },
- {
- "value": "🇺🇿 O'zbekcha",
- "params": [
- {
- "handler": "goto",
- "params": {
- "type": "question",
- "step": 2
- }
- }
- ]
- },
- {
- "type": "else",
- "params": [
- {
- "handler": "goto",
- "params": {
- "type": "question",
- "step": 13
- }
- }
- ]
- }
- ]
- }
- ]
- },
- "1": {
- "question": [
- {
- "handler": "show",
- "params": {
- "type": "text",
- "value": "📞Для продолжения, пожалуйста, введите ваш номер телефона!\n+998 ** *** ** **",
- "quick_replies": [
- "user_phone_number"
- ]
- }
- },
- {
- "handler": "wait_answer",
- "params": {
- "type": "question",
- "step": 9
- }
- }
- ]
- },
- "2": {
- "question": [
- {
- "handler": "show",
- "params": {
- "type": "text",
- "value": "📞Siz bilan suhbatimizni davom ettirish uchun, iltimos, telefon raqamingizni kiriting!\n+998 ** *** ** **",
- "quick_replies": [
- "user_phone_number"
- ]
- }
- },
- {
- "handler": "wait_answer",
- "params": {
- "type": "question",
- "step": 10
- }
- }
- ]
- },
- "9": {
- "question": [
- {
- "handler": "action",
- "params": {
- "name": "set_custom_fields",
- "params": {
- "value": "{{message_text.phone}}",
- "custom_field": "{{contact.cf.586935.MOB}}"
- }
- }
- },
- {
- "handler": "goto",
- "params": {
- "type": "question",
- "step": 27
- }
- }
- ]
- },
- "10": {
- "question": [
- {
- "handler": "action",
- "params": {
- "name": "set_custom_fields",
- "params": {
- "value": "{{message_text.phone}}",
- "custom_field": "{{contact.cf.586935.MOB}}"
- }
- }
- },
- {
- "handler": "goto",
- "params": {
- "type": "question",
- "step": 31
- }
- }
- ]
- },
- "27": {
- "question": [
- {
- "handler": "show",
- "params": {
- "type": "text",
- "value": "Добро пожаловать в Pharma Click. Задайте свой вопрос и мы ответим на него как можно быстрее!"
- }
- },
- {
- "handler": "goto",
- "params": {
- "type": "question",
- "step": 12
- }
- }
- ]
- },
- "31": {
- "question": [
- {
- "handler": "show",
- "params": {
- "type": "text",
- "value": "Pharma Click xush kelibsiz. Savolingizga javob bersangiz, biz imkon qadar tezroq javob beramiz!"
- }
- },
- {
- "handler": "goto",
- "params": {
- "type": "question",
- "step": 11
- }
- }
- ]
- },
- "conversation": false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement