Advertisement
danilborchevkin

Valid bot with galleries

May 8th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.60 KB | None | 0 0
  1. {
  2.     "bot": {
  3.         "id": 7,
  4.         "created_at": "2018-04-18T19:10:22.000Z",
  5.         "updated_at": "2018-05-08T12:25:16.000Z",
  6.         "deleted_at": null,
  7.         "title": "chatforma_telegram_dev_bot",
  8.         "author_id": 1,
  9.         "type": "telegram",
  10.         "connections": {
  11.             "telegram": {
  12.                 "token": "584419276:AAEvivrPhKtzND1Y29Hf0KBEaX-Y7HdDC1k",
  13.                 "name": "chatforma_telegram_dev_bot",
  14.                 "link": "http://t.me/chatforma_telegram_dev_bot"
  15.             }
  16.         },
  17.         "data": {
  18.             "messages": [
  19.                 {
  20.                     "id": "llno3nmyuq",
  21.                     "starting": true,
  22.                     "default": false,
  23.                     "poll": false,
  24.                     "name": "Стартовое сообщение бота 7",
  25.                     "elements": [
  26.                         {
  27.                             "type": "text",
  28.                             "content": "Привет от бота №7"
  29.                         }
  30.                     ],
  31.                     "triggers": [
  32.                         {
  33.                             "type": "tags",
  34.                             "tags": []
  35.                         }
  36.                     ]
  37.                 },
  38.                 {
  39.                     "id": "4s5hqfv9ww",
  40.                     "starting": false,
  41.                     "default": true,
  42.                     "poll": false,
  43.                     "name": "Бот №7 не хочет с тобой разговаривать",
  44.                     "elements": [
  45.                         {
  46.                             "type": "text",
  47.                             "content": "Бот №7 не хочет с тобой разговаривать"
  48.                         },
  49.                         {
  50.                             "type": "gallery",
  51.                             "id": "ewwbkj71hi",
  52.                             "items": [
  53.                                 {
  54.                                     "buttons": [
  55.                                         {
  56.                                             "name": "Ссылка на гугл",
  57.                                             "type": "external_link",
  58.                                             "url": "http://test.ru"
  59.                                         },
  60.                                         {
  61.                                             "name": "Ссылка на другой сайт",
  62.                                             "type": "external_link",
  63.                                             "url": "http://test.ru"
  64.                                         }
  65.                                     ],
  66.                                     "attachment_id": "359b76db-53bf-41ce-8857-3ccc53797194",
  67.                                     "title": "Первый заголовок",
  68.                                     "subtitle": "Первый подзаголовок",
  69.                                     "url": "https://koniglabs.de"
  70.                                 },
  71.                                 {
  72.                                     "buttons": [
  73.                                         {
  74.                                             "name": "Ссылка на яндекс",
  75.                                             "type": "external_link",
  76.                                             "url": "https://google.com/"
  77.                                         },
  78.                                         {
  79.                                             "name": "Ссылка на Кениглабс",
  80.                                             "type": "external_link",
  81.                                             "url": "https://koniglabs.com/"
  82.                                         }
  83.                                     ],
  84.                                     "attachment_id": "359b76db-53bf-41ce-8857-3ccc53797194",
  85.                                     "title": "Второй Заголовок",
  86.                                     "subtitle": "Второй Подзаголовок",
  87.                                     "url": "https://atlassian.com"
  88.                                 },
  89.                                 {
  90.                                     "buttons": [
  91.                                         {
  92.                                             "name": "Ссылка на duck",
  93.                                             "type": "external_link",
  94.                                             "url": "https://duckduckgo.com/"
  95.                                         },
  96.                                         {
  97.                                             "name": "Ссылка на rambler",
  98.                                             "type": "external_link",
  99.                                             "url": "https://rambler.ru/"
  100.                                         }
  101.                                     ],
  102.                                     "attachment_id": "359b76db-53bf-41ce-8857-3ccc53797194",
  103.                                     "title": "Третий Заголовок",
  104.                                     "subtitle": "Третий Подзаголовок",
  105.                                     "url": "https://atlassian.com"
  106.                                 }
  107.                             ]
  108.                         }
  109.                     ],
  110.                     "triggers": [
  111.                         {
  112.                             "type": "tags",
  113.                             "tags": []
  114.                         }
  115.                     ]
  116.                 }
  117.             ]
  118.         },
  119.         "old_id": null
  120.     },
  121.     "access": "*"
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement