Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.60 KB | None | 0 0
  1. # TODO: отдавать билеты пользователю только по дате не старше сегодня
  2. # TODO:
  3.  
  4. s = {
  5. "0": {
  6.         "question": [
  7.             {
  8.                 "handler": "show",
  9.                 "params": {
  10.                     "type": "buttons",
  11.                     "value": "Выберите язык🇷🇺\nTilni tanlang🇺🇿",
  12.                     "buttons": [
  13.                         "🇷🇺 Русский",
  14.                         "🇺🇿 O'zbekcha"
  15.                     ]
  16.                 }
  17.             }
  18.         ],
  19.         "answer": [
  20.             {
  21.                 "handler": "buttons",
  22.                 "params": [
  23.                     {
  24.                         "value": "🇷🇺 Русский",
  25.                         "params": [
  26.                             {
  27.                                 "handler": "goto",
  28.                                 "params": {
  29.                                     "type": "question",
  30.                                     "step": 1
  31.                                 }
  32.                             }
  33.                         ]
  34.                     },
  35.                     {
  36.                         "value": "🇺🇿 O'zbekcha",
  37.                         "params": [
  38.                             {
  39.                                 "handler": "goto",
  40.                                 "params": {
  41.                                     "type": "question",
  42.                                     "step": 2
  43.                                 }
  44.                             }
  45.                         ]
  46.                     },
  47.                     {
  48.                         "type": "else",
  49.                         "params": [
  50.                             {
  51.                                 "handler": "goto",
  52.                                 "params": {
  53.                                     "type": "question",
  54.                                     "step": 13
  55.                                 }
  56.                             }
  57.                         ]
  58.                     }
  59.                 ]
  60.             }
  61.         ]
  62.     },
  63. "1": {
  64.         "question": [
  65.             {
  66.                 "handler": "show",
  67.                 "params": {
  68.                     "type": "text",
  69.                     "value": "📞Для продолжения, пожалуйста, введите ваш номер телефона!\n+998 ** *** ** **",
  70.                     "quick_replies": [
  71.                         "user_phone_number"
  72.                     ]
  73.                 }
  74.             },
  75.             {
  76.                 "handler": "wait_answer",
  77.                 "params": {
  78.                     "type": "question",
  79.                     "step": 9
  80.                 }
  81.             }
  82.         ]
  83.     },
  84. "2": {
  85.         "question": [
  86.             {
  87.                 "handler": "show",
  88.                 "params": {
  89.                     "type": "text",
  90.                     "value": "📞Siz bilan suhbatimizni davom ettirish uchun, iltimos, telefon raqamingizni kiriting!\n+998 ** *** ** **",
  91.                     "quick_replies": [
  92.                         "user_phone_number"
  93.                     ]
  94.                 }
  95.             },
  96.             {
  97.                 "handler": "wait_answer",
  98.                 "params": {
  99.                     "type": "question",
  100.                     "step": 10
  101.                 }
  102.             }
  103.         ]
  104.     },
  105. "9": {
  106.         "question": [
  107.             {
  108.                 "handler": "action",
  109.                 "params": {
  110.                     "name": "set_custom_fields",
  111.                     "params": {
  112.                         "value": "{{message_text.phone}}",
  113.                         "custom_field": "{{contact.cf.586935.MOB}}"
  114.                     }
  115.                 }
  116.             },
  117.             {
  118.                 "handler": "goto",
  119.                 "params": {
  120.                     "type": "question",
  121.                     "step": 27
  122.                 }
  123.             }
  124.         ]
  125.     },
  126. "10": {
  127.         "question": [
  128.             {
  129.                 "handler": "action",
  130.                 "params": {
  131.                     "name": "set_custom_fields",
  132.                     "params": {
  133.                         "value": "{{message_text.phone}}",
  134.                         "custom_field": "{{contact.cf.586935.MOB}}"
  135.                     }
  136.                 }
  137.             },
  138.             {
  139.                 "handler": "goto",
  140.                 "params": {
  141.                     "type": "question",
  142.                     "step": 31
  143.                 }
  144.             }
  145.         ]
  146.     },
  147. "27": {
  148.         "question": [
  149.             {
  150.                 "handler": "show",
  151.                 "params": {
  152.                     "type": "text",
  153.                     "value": "Добро пожаловать в Pharma Click. Задайте свой вопрос и мы ответим на него как можно быстрее!"
  154.                 }
  155.             },
  156.             {
  157.                 "handler": "goto",
  158.                 "params": {
  159.                     "type": "question",
  160.                     "step": 12
  161.                 }
  162.             }
  163.         ]
  164.     },
  165. "31": {
  166.         "question": [
  167.             {
  168.                 "handler": "show",
  169.                 "params": {
  170.                     "type": "text",
  171.                     "value": "Pharma Click xush kelibsiz. Savolingizga javob bersangiz, biz imkon qadar tezroq javob beramiz!"
  172.                 }
  173.             },
  174.             {
  175.                 "handler": "goto",
  176.                 "params": {
  177.                     "type": "question",
  178.                     "step": 11
  179.                 }
  180.             }
  181.         ]
  182.     },
  183.     "conversation": false
  184. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement