Advertisement
Guest User

carousel

a guest
Dec 10th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 47.05 KB | None | 0 0
  1. {
  2.   "type": "carousel",
  3.   "contents": [
  4.     {
  5.       "type": "bubble",
  6.       "body": {
  7.         "type": "box",
  8.         "layout": "vertical",
  9.         "contents": [
  10.           {
  11.             "type": "box",
  12.             "layout": "vertical",
  13.             "contents": [
  14.               {
  15.                 "type": "text",
  16.                 "text": "Hot Radars",
  17.                 "size": "xl",
  18.                 "align": "center",
  19.                 "gravity": "center",
  20.                 "weight": "bold",
  21.                 "color": "#1E7DE8"
  22.               },
  23.               {
  24.                 "type": "text",
  25.                 "text": "🏆 8 อันดับแรก ที่มีคนเลือกดูสูงสุดในรอบ 24 ชั่วโมง 👏",
  26.                 "size": "sm",
  27.                 "align": "center",
  28.                 "gravity": "center",
  29.                 "wrap": true
  30.               }
  31.             ]
  32.           },
  33.           {
  34.             "type": "separator",
  35.             "margin": "md"
  36.           },
  37.           {
  38.             "type": "box",
  39.             "layout": "vertical",
  40.             "margin": "md",
  41.             "contents": [
  42.               {
  43.                 "type": "box",
  44.                 "layout": "horizontal",
  45.                 "flex": 10,
  46.                 "action": {
  47.                   "type": "message",
  48.                   "label": "PTT",
  49.                   "text": "PTT"
  50.                 },
  51.                 "contents": [
  52.                   {
  53.                     "type": "image",
  54.                     "url": "https://line-bot.stockradars.co/images/company_logo/PTT.png",
  55.                     "flex": 1,
  56.                     "size": "md"
  57.                   },
  58.                   {
  59.                     "type": "text",
  60.                     "text": "PTT",
  61.                     "flex": 3,
  62.                     "gravity": "center",
  63.                     "margin": "md",
  64.                     "size": "md",
  65.                     "weight": "bold",
  66.                     "color": "#1E7DE8"
  67.                   },
  68.                   {
  69.                     "type": "text",
  70.                     "text": "43.25",
  71.                     "flex": 2,
  72.                     "size": "sm",
  73.                     "gravity": "center",
  74.                     "align": "end",
  75.                     "weight": "bold"
  76.                   },
  77.                   {
  78.                     "type": "text",
  79.                     "text": "+0.25 (+0.58%)",
  80.                     "flex": 4,
  81.                     "size": "xs",
  82.                     "gravity": "center",
  83.                     "align": "end",
  84.                     "color": "#0FCC58",
  85.                     "wrap": true
  86.                   }
  87.                 ]
  88.               },
  89.               {
  90.                 "type": "separator",
  91.                 "margin": "md"
  92.               },
  93.               {
  94.                 "type": "box",
  95.                 "layout": "horizontal",
  96.                 "flex": 10,
  97.                 "action": {
  98.                   "type": "message",
  99.                   "label": "BEM",
  100.                   "text": "BEM"
  101.                 },
  102.                 "contents": [
  103.                   {
  104.                     "type": "image",
  105.                     "url": "https://line-bot.stockradars.co/images/company_logo/BEM.png",
  106.                     "flex": 1,
  107.                     "size": "md"
  108.                   },
  109.                   {
  110.                     "type": "text",
  111.                     "text": "BEM",
  112.                     "flex": 3,
  113.                     "gravity": "center",
  114.                     "margin": "md",
  115.                     "size": "md",
  116.                     "weight": "bold",
  117.                     "color": "#1E7DE8"
  118.                   },
  119.                   {
  120.                     "type": "text",
  121.                     "text": "10.90",
  122.                     "flex": 2,
  123.                     "size": "sm",
  124.                     "gravity": "center",
  125.                     "align": "end",
  126.                     "weight": "bold"
  127.                   },
  128.                   {
  129.                     "type": "text",
  130.                     "text": "0.00 (0.00%)",
  131.                     "flex": 4,
  132.                     "size": "xs",
  133.                     "gravity": "center",
  134.                     "align": "end",
  135.                     "color": "#FFC42D",
  136.                     "wrap": true
  137.                   }
  138.                 ]
  139.               },
  140.               {
  141.                 "type": "separator",
  142.                 "margin": "md"
  143.               },
  144.               {
  145.                 "type": "box",
  146.                 "layout": "horizontal",
  147.                 "flex": 10,
  148.                 "action": {
  149.                   "type": "message",
  150.                   "label": "AOT",
  151.                   "text": "AOT"
  152.                 },
  153.                 "contents": [
  154.                   {
  155.                     "type": "image",
  156.                     "url": "https://line-bot.stockradars.co/images/company_logo/AOT.png",
  157.                     "flex": 1,
  158.                     "size": "md"
  159.                   },
  160.                   {
  161.                     "type": "text",
  162.                     "text": "AOT",
  163.                     "flex": 3,
  164.                     "gravity": "center",
  165.                     "margin": "md",
  166.                     "size": "md",
  167.                     "weight": "bold",
  168.                     "color": "#1E7DE8"
  169.                   },
  170.                   {
  171.                     "type": "text",
  172.                     "text": "68.75",
  173.                     "flex": 2,
  174.                     "size": "sm",
  175.                     "gravity": "center",
  176.                     "align": "end",
  177.                     "weight": "bold"
  178.                   },
  179.                   {
  180.                     "type": "text",
  181.                     "text": "+1.50 (+2.23%)",
  182.                     "flex": 4,
  183.                     "size": "xs",
  184.                     "gravity": "center",
  185.                     "align": "end",
  186.                     "color": "#0FCC58",
  187.                     "wrap": true
  188.                   }
  189.                 ]
  190.               },
  191.               {
  192.                 "type": "separator",
  193.                 "margin": "md"
  194.               },
  195.               {
  196.                 "type": "box",
  197.                 "layout": "horizontal",
  198.                 "flex": 10,
  199.                 "action": {
  200.                   "type": "message",
  201.                   "label": "PTTGC",
  202.                   "text": "PTTGC"
  203.                 },
  204.                 "contents": [
  205.                   {
  206.                     "type": "image",
  207.                     "url": "https://line-bot.stockradars.co/images/company_logo/PTTGC.png",
  208.                     "flex": 1,
  209.                     "size": "md"
  210.                   },
  211.                   {
  212.                     "type": "text",
  213.                     "text": "PTTGC",
  214.                     "flex": 3,
  215.                     "gravity": "center",
  216.                     "margin": "md",
  217.                     "size": "md",
  218.                     "weight": "bold",
  219.                     "color": "#1E7DE8"
  220.                   },
  221.                   {
  222.                     "type": "text",
  223.                     "text": "52.50",
  224.                     "flex": 2,
  225.                     "size": "sm",
  226.                     "gravity": "center",
  227.                     "align": "end",
  228.                     "weight": "bold"
  229.                   },
  230.                   {
  231.                     "type": "text",
  232.                     "text": "+1.00 (+1.94%)",
  233.                     "flex": 4,
  234.                     "size": "xs",
  235.                     "gravity": "center",
  236.                     "align": "end",
  237.                     "color": "#0FCC58",
  238.                     "wrap": true
  239.                   }
  240.                 ]
  241.               },
  242.               {
  243.                 "type": "separator",
  244.                 "margin": "md"
  245.               },
  246.               {
  247.                 "type": "box",
  248.                 "layout": "horizontal",
  249.                 "flex": 10,
  250.                 "action": {
  251.                   "type": "message",
  252.                   "label": "BBL",
  253.                   "text": "BBL"
  254.                 },
  255.                 "contents": [
  256.                   {
  257.                     "type": "image",
  258.                     "url": "https://line-bot.stockradars.co/images/company_logo/BBL.png",
  259.                     "flex": 1,
  260.                     "size": "md"
  261.                   },
  262.                   {
  263.                     "type": "text",
  264.                     "text": "BBL",
  265.                     "flex": 3,
  266.                     "gravity": "center",
  267.                     "margin": "md",
  268.                     "size": "md",
  269.                     "weight": "bold",
  270.                     "color": "#1E7DE8"
  271.                   },
  272.                   {
  273.                     "type": "text",
  274.                     "text": "165.00",
  275.                     "flex": 2,
  276.                     "size": "sm",
  277.                     "gravity": "center",
  278.                     "align": "end",
  279.                     "weight": "bold"
  280.                   },
  281.                   {
  282.                     "type": "text",
  283.                     "text": "-6.00 (-3.51%)",
  284.                     "flex": 4,
  285.                     "size": "xs",
  286.                     "gravity": "center",
  287.                     "align": "end",
  288.                     "color": "#FE0034",
  289.                     "wrap": true
  290.                   }
  291.                 ]
  292.               },
  293.               {
  294.                 "type": "separator",
  295.                 "margin": "md"
  296.               },
  297.               {
  298.                 "type": "box",
  299.                 "layout": "horizontal",
  300.                 "flex": 10,
  301.                 "action": {
  302.                   "type": "message",
  303.                   "label": "TMB",
  304.                   "text": "TMB"
  305.                 },
  306.                 "contents": [
  307.                   {
  308.                     "type": "image",
  309.                     "url": "https://line-bot.stockradars.co/images/company_logo/TMB.png",
  310.                     "flex": 1,
  311.                     "size": "md"
  312.                   },
  313.                   {
  314.                     "type": "text",
  315.                     "text": "TMB",
  316.                     "flex": 3,
  317.                     "gravity": "center",
  318.                     "margin": "md",
  319.                     "size": "md",
  320.                     "weight": "bold",
  321.                     "color": "#1E7DE8"
  322.                   },
  323.                   {
  324.                     "type": "text",
  325.                     "text": "1.56",
  326.                     "flex": 2,
  327.                     "size": "sm",
  328.                     "gravity": "center",
  329.                     "align": "end",
  330.                     "weight": "bold"
  331.                   },
  332.                   {
  333.                     "type": "text",
  334.                     "text": "-0.02 (-1.27%)",
  335.                     "flex": 4,
  336.                     "size": "xs",
  337.                     "gravity": "center",
  338.                     "align": "end",
  339.                     "color": "#FE0034",
  340.                     "wrap": true
  341.                   }
  342.                 ]
  343.               },
  344.               {
  345.                 "type": "separator",
  346.                 "margin": "md"
  347.               },
  348.               {
  349.                 "type": "box",
  350.                 "layout": "horizontal",
  351.                 "flex": 10,
  352.                 "action": {
  353.                   "type": "message",
  354.                   "label": "BTS",
  355.                   "text": "BTS"
  356.                 },
  357.                 "contents": [
  358.                   {
  359.                     "type": "image",
  360.                     "url": "https://line-bot.stockradars.co/images/company_logo/BTS.png",
  361.                     "flex": 1,
  362.                     "size": "md"
  363.                   },
  364.                   {
  365.                     "type": "text",
  366.                     "text": "BTS",
  367.                     "flex": 3,
  368.                     "gravity": "center",
  369.                     "margin": "md",
  370.                     "size": "md",
  371.                     "weight": "bold",
  372.                     "color": "#1E7DE8"
  373.                   },
  374.                   {
  375.                     "type": "text",
  376.                     "text": "12.40",
  377.                     "flex": 2,
  378.                     "size": "sm",
  379.                     "gravity": "center",
  380.                     "align": "end",
  381.                     "weight": "bold"
  382.                   },
  383.                   {
  384.                     "type": "text",
  385.                     "text": "-0.10 (-0.80%)",
  386.                     "flex": 4,
  387.                     "size": "xs",
  388.                     "gravity": "center",
  389.                     "align": "end",
  390.                     "color": "#FE0034",
  391.                     "wrap": true
  392.                   }
  393.                 ]
  394.               },
  395.               {
  396.                 "type": "separator",
  397.                 "margin": "md"
  398.               },
  399.               {
  400.                 "type": "box",
  401.                 "layout": "horizontal",
  402.                 "flex": 10,
  403.                 "action": {
  404.                   "type": "message",
  405.                   "label": "KBANK",
  406.                   "text": "KBANK"
  407.                 },
  408.                 "contents": [
  409.                   {
  410.                     "type": "image",
  411.                     "url": "https://line-bot.stockradars.co/images/company_logo/KBANK.png",
  412.                     "flex": 1,
  413.                     "size": "md"
  414.                   },
  415.                   {
  416.                     "type": "text",
  417.                     "text": "KBANK",
  418.                     "flex": 3,
  419.                     "gravity": "center",
  420.                     "margin": "md",
  421.                     "size": "md",
  422.                     "weight": "bold",
  423.                     "color": "#1E7DE8"
  424.                   },
  425.                   {
  426.                     "type": "text",
  427.                     "text": "155.00",
  428.                     "flex": 2,
  429.                     "size": "sm",
  430.                     "gravity": "center",
  431.                     "align": "end",
  432.                     "weight": "bold"
  433.                   },
  434.                   {
  435.                     "type": "text",
  436.                     "text": "-9.00 (-5.49%)",
  437.                     "flex": 4,
  438.                     "size": "xs",
  439.                     "gravity": "center",
  440.                     "align": "end",
  441.                     "color": "#FE0034",
  442.                     "wrap": true
  443.                   }
  444.                 ]
  445.               },
  446.               {
  447.                 "type": "separator",
  448.                 "margin": "md"
  449.               },
  450.               {
  451.                 "type": "separator",
  452.                 "margin": "md",
  453.                 "color": "#FFFFFF"
  454.               },
  455.               {
  456.                 "type": "text",
  457.                 "text": "เรายังมีเรดาร์กว่า 200 สัญญาณที่จะช่วยคุณคัดกรองหุ้นในตลาดตามเทคนิคการลงทุนของคุณผ่านแอป StockRadars ดาวน์โหลดได้เลยที่... ",
  458.                 "size": "sm",
  459.                 "align": "center",
  460.                 "gravity": "center",
  461.                 "wrap": true
  462.               },
  463.               {
  464.                 "type": "box",
  465.                 "layout": "vertical",
  466.                 "contents": [
  467.                   {
  468.                     "type": "image",
  469.                     "url": "https://storage.googleapis.com/stockradars-line/static/flex/button_download.png",
  470.                     "size": "full",
  471.                     "aspectRatio": "3:1",
  472.                     "action": {
  473.                       "type": "uri",
  474.                       "label": "Share",
  475.                       "uri": "https://www.stockradars.co/getradars/"
  476.                     }
  477.                   },
  478.                   {
  479.                     "type": "image",
  480.                     "url": "https://storage.googleapis.com/stockradars-line/static/flex/logo_StockRadar_Event(black).png",
  481.                     "align": "end",
  482.                     "size": "md",
  483.                     "aspectRatio": "3:1"
  484.                   }
  485.                 ]
  486.               }
  487.             ]
  488.           }
  489.         ]
  490.       }
  491.     },
  492.     {
  493.       "type": "bubble",
  494.       "body": {
  495.         "type": "box",
  496.         "layout": "vertical",
  497.         "contents": [
  498.           {
  499.             "type": "box",
  500.             "layout": "vertical",
  501.             "contents": [
  502.               {
  503.                 "type": "text",
  504.                 "text": "Hot Radars",
  505.                 "size": "xl",
  506.                 "align": "center",
  507.                 "gravity": "center",
  508.                 "weight": "bold"
  509.               },
  510.               {
  511.                 "type": "text",
  512.                 "text": "🏆 8 อันดับแรก ที่มีคนเลือกดูสูงสุดในรอบ 24 ชั่วโมง 👏",
  513.                 "size": "sm",
  514.                 "align": "center",
  515.                 "gravity": "center",
  516.                 "wrap": true
  517.               }
  518.             ]
  519.           },
  520.           {
  521.             "type": "separator",
  522.             "margin": "md"
  523.           },
  524.           {
  525.             "type": "box",
  526.             "layout": "vertical",
  527.             "margin": "md",
  528.             "contents": [
  529.               {
  530.                 "type": "box",
  531.                 "layout": "horizontal",
  532.                 "flex": 10,
  533.                 "action": {
  534.                   "type": "message",
  535.                   "label": "{$data[0]['symbol']}",
  536.                   "text": "{$data[0]['symbol']}"
  537.                 },
  538.                 "contents": [
  539.                   {
  540.                     "type": "image",
  541.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  542.                     "flex": 1,
  543.                     "size": "md"
  544.                   },
  545.                   {
  546.                     "type": "text",
  547.                     "text": "{$data[0]['symbol']}",
  548.                     "flex": 3,
  549.                     "gravity": "center",
  550.                     "margin": "md",
  551.                     "size": "md",
  552.                     "weight": "bold"
  553.                   },
  554.                   {
  555.                     "type": "text",
  556.                     "text": "$price_1",
  557.                     "flex": 2,
  558.                     "size": "sm",
  559.                     "gravity": "center",
  560.                     "align": "end",
  561.                     "weight": "bold"
  562.                   },
  563.                   {
  564.                     "type": "text",
  565.                     "text": "{$data[0]['change']}",
  566.                     "flex": 4,
  567.                     "size": "xs",
  568.                     "gravity": "center",
  569.                     "align": "end",
  570.                     "color": "#000000",
  571.                     "wrap": true
  572.                   }
  573.                 ]
  574.               },
  575.               {
  576.                 "type": "separator",
  577.                 "margin": "md"
  578.               },
  579.               {
  580.                 "type": "box",
  581.                 "layout": "horizontal",
  582.                 "margin": "md",
  583.                 "flex": 10,
  584.                 "action": {
  585.                   "type": "message",
  586.                   "label": "{$data[1]['symbol']}",
  587.                   "text": "{$data[1]['symbol']}"
  588.                 },
  589.                 "contents": [
  590.                   {
  591.                     "type": "image",
  592.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  593.                     "flex": 1,
  594.                     "size": "md"
  595.                   },
  596.                   {
  597.                     "type": "text",
  598.                     "text": "{$data[1]['symbol']}",
  599.                     "flex": 3,
  600.                     "gravity": "center",
  601.                     "margin": "md",
  602.                     "weight": "bold"
  603.                   },
  604.                   {
  605.                     "type": "text",
  606.                     "text": "$price_2",
  607.                     "flex": 2,
  608.                     "size": "sm",
  609.                     "gravity": "center",
  610.                     "align": "end",
  611.                     "weight": "bold"
  612.                   },
  613.                   {
  614.                     "type": "text",
  615.                     "text": "{$data[1]['change']}",
  616.                     "flex": 4,
  617.                     "size": "xs",
  618.                     "gravity": "center",
  619.                     "align": "end",
  620.                     "color": "#000000",
  621.                     "wrap": true
  622.                   }
  623.                 ]
  624.               },
  625.               {
  626.                 "type": "separator",
  627.                 "margin": "md"
  628.               },
  629.               {
  630.                 "type": "box",
  631.                 "layout": "horizontal",
  632.                 "margin": "md",
  633.                 "action": {
  634.                   "type": "message",
  635.                   "label": "{$data[2]['symbol']}",
  636.                   "text": "{$data[2]['symbol']}"
  637.                 },
  638.                 "contents": [
  639.                   {
  640.                     "type": "image",
  641.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  642.                     "flex": 1,
  643.                     "size": "md"
  644.                   },
  645.                   {
  646.                     "type": "text",
  647.                     "text": "{$data[2]['symbol']}",
  648.                     "flex": 3,
  649.                     "gravity": "center",
  650.                     "margin": "md",
  651.                     "weight": "bold"
  652.                   },
  653.                   {
  654.                     "type": "text",
  655.                     "text": "$price_3",
  656.                     "size": "sm",
  657.                     "flex": 2,
  658.                     "gravity": "center",
  659.                     "align": "end",
  660.                     "weight": "bold"
  661.                   },
  662.                   {
  663.                     "type": "text",
  664.                     "text": "{$data[2]['change']}",
  665.                     "flex": 4,
  666.                     "size": "xs",
  667.                     "gravity": "center",
  668.                     "align": "end",
  669.                     "color": "#000000",
  670.                     "wrap": true
  671.                   }
  672.                 ]
  673.               },
  674.               {
  675.                 "type": "separator",
  676.                 "margin": "md"
  677.               },
  678.               {
  679.                 "type": "box",
  680.                 "layout": "horizontal",
  681.                 "margin": "md",
  682.                 "action": {
  683.                   "type": "message",
  684.                   "label": "{$data[3]['symbol']}",
  685.                   "text": "{$data[3]['symbol']}"
  686.                 },
  687.                 "contents": [
  688.                   {
  689.                     "type": "image",
  690.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  691.                     "flex": 1,
  692.                     "margin": "md",
  693.                     "size": "md"
  694.                   },
  695.                   {
  696.                     "type": "text",
  697.                     "text": "{$data[3]['symbol']}",
  698.                     "flex": 3,
  699.                     "gravity": "center",
  700.                     "margin": "md",
  701.                     "weight": "bold"
  702.                   },
  703.                   {
  704.                     "type": "text",
  705.                     "text": "$price_4",
  706.                     "flex": 2,
  707.                     "size": "sm",
  708.                     "gravity": "center",
  709.                     "align": "end",
  710.                     "weight": "bold"
  711.                   },
  712.                   {
  713.                     "type": "text",
  714.                     "text": "{$data[3]['change']}",
  715.                     "flex": 4,
  716.                     "size": "xs",
  717.                     "gravity": "center",
  718.                     "align": "end",
  719.                     "color": "#000000",
  720.                     "wrap": true
  721.                   }
  722.                 ]
  723.               },
  724.               {
  725.                 "type": "separator",
  726.                 "margin": "md"
  727.               },
  728.               {
  729.                 "type": "box",
  730.                 "layout": "horizontal",
  731.                 "margin": "md",
  732.                 "action": {
  733.                   "type": "message",
  734.                   "label": "{$data[4]['symbol']}",
  735.                   "text": "{$data[4]['symbol']}"
  736.                 },
  737.                 "contents": [
  738.                   {
  739.                     "type": "image",
  740.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  741.                     "flex": 1,
  742.                     "size": "md"
  743.                   },
  744.                   {
  745.                     "type": "text",
  746.                     "text": "{$data[4]['symbol']}",
  747.                     "flex": 3,
  748.                     "gravity": "center",
  749.                     "margin": "md",
  750.                     "weight": "bold"
  751.                   },
  752.                   {
  753.                     "type": "text",
  754.                     "text": "$price_5",
  755.                     "align": "end",
  756.                     "size": "sm",
  757.                     "gravity": "center",
  758.                     "flex": 2,
  759.                     "weight": "bold"
  760.                   },
  761.                   {
  762.                     "type": "text",
  763.                     "text": "{$data[4]['change']}",
  764.                     "flex": 4,
  765.                     "size": "xs",
  766.                     "align": "end",
  767.                     "gravity": "center",
  768.                     "color": "#000000",
  769.                     "wrap": true
  770.                   }
  771.                 ]
  772.               },
  773.               {
  774.                 "type": "separator",
  775.                 "margin": "md"
  776.               },
  777.               {
  778.                 "type": "box",
  779.                 "layout": "horizontal",
  780.                 "margin": "md",
  781.                 "action": {
  782.                   "type": "message",
  783.                   "label": "{$data[5]['symbol']}",
  784.                   "text": "{$data[5]['symbol']}"
  785.                 },
  786.                 "contents": [
  787.                   {
  788.                     "type": "image",
  789.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  790.                     "flex": 1,
  791.                     "size": "md"
  792.                   },
  793.                   {
  794.                     "type": "text",
  795.                     "text": "{$data[5]['symbol']}",
  796.                     "flex": 3,
  797.                     "gravity": "center",
  798.                     "margin": "md",
  799.                     "weight": "bold"
  800.                   },
  801.                   {
  802.                     "type": "text",
  803.                     "text": "$price_6",
  804.                     "align": "end",
  805.                     "size": "sm",
  806.                     "gravity": "center",
  807.                     "flex": 2,
  808.                     "weight": "bold"
  809.                   },
  810.                   {
  811.                     "type": "text",
  812.                     "text": "{$data[5]['change']}",
  813.                     "flex": 4,
  814.                     "size": "xs",
  815.                     "align": "end",
  816.                     "gravity": "center",
  817.                     "color": "#000000",
  818.                     "wrap": true
  819.                   }
  820.                 ]
  821.               },
  822.               {
  823.                 "type": "separator",
  824.                 "margin": "md"
  825.               },
  826.               {
  827.                 "type": "box",
  828.                 "layout": "horizontal",
  829.                 "margin": "md",
  830.                 "action": {
  831.                   "type": "message",
  832.                   "label": "{$data[6]['symbol']}",
  833.                   "text": "{$data[6]['symbol']}"
  834.                 },
  835.                 "contents": [
  836.                   {
  837.                     "type": "image",
  838.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  839.                     "flex": 1,
  840.                     "size": "md"
  841.                   },
  842.                   {
  843.                     "type": "text",
  844.                     "text": "{$data[6]['symbol']}",
  845.                     "flex": 3,
  846.                     "gravity": "center",
  847.                     "margin": "md",
  848.                     "weight": "bold"
  849.                   },
  850.                   {
  851.                     "type": "text",
  852.                     "text": "$price_7",
  853.                     "align": "end",
  854.                     "size": "sm",
  855.                     "gravity": "center",
  856.                     "flex": 2,
  857.                     "weight": "bold"
  858.                   },
  859.                   {
  860.                     "type": "text",
  861.                     "text": "{$data[6]['change']}",
  862.                     "flex": 4,
  863.                     "size": "xs",
  864.                     "align": "end",
  865.                     "gravity": "center",
  866.                     "color": "#000000",
  867.                     "wrap": true
  868.                   }
  869.                 ]
  870.               },
  871.               {
  872.                 "type": "separator",
  873.                 "margin": "md"
  874.               },
  875.               {
  876.                 "type": "box",
  877.                 "layout": "horizontal",
  878.                 "margin": "md",
  879.                 "action": {
  880.                   "type": "message",
  881.                   "label": "{$data[7]['symbol']}",
  882.                   "text": "{$data[7]['symbol']}"
  883.                 },
  884.                 "contents": [
  885.                   {
  886.                     "type": "image",
  887.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  888.                     "flex": 1,
  889.                     "size": "md"
  890.                   },
  891.                   {
  892.                     "type": "text",
  893.                     "text": "{$data[7]['symbol']}",
  894.                     "flex": 3,
  895.                     "gravity": "center",
  896.                     "margin": "md",
  897.                     "weight": "bold"
  898.                   },
  899.                   {
  900.                     "type": "text",
  901.                     "text": "$price_8",
  902.                     "align": "end",
  903.                     "size": "sm",
  904.                     "gravity": "center",
  905.                     "flex": 2,
  906.                     "weight": "bold"
  907.                   },
  908.                   {
  909.                     "type": "text",
  910.                     "text": "{$data[7]['change']}",
  911.                     "flex": 4,
  912.                     "size": "xs",
  913.                     "align": "end",
  914.                     "gravity": "center",
  915.                     "color": "#000000",
  916.                     "wrap": true
  917.                   }
  918.                 ]
  919.               },
  920.               {
  921.                 "type": "separator",
  922.                 "margin": "md"
  923.               },
  924.               {
  925.                 "type": "separator",
  926.                 "margin": "md",
  927.                 "color": "#FFFFFF"
  928.               },
  929.               {
  930.                 "type": "text",
  931.                 "text": "$text_footer",
  932.                 "size": "sm",
  933.                 "align": "center",
  934.                 "gravity": "center",
  935.                 "wrap": true
  936.               },
  937.               {
  938.                 "type": "box",
  939.                 "layout": "vertical",
  940.                 "contents": [
  941.                   {
  942.                     "type": "image",
  943.                     "url": "https://storage.googleapis.com/stockradars-line/static/flex/button_download.png",
  944.                     "size": "full",
  945.                     "aspectRatio": "3:1",
  946.                     "action": {
  947.                       "type": "uri",
  948.                       "label": "Share",
  949.                       "uri": "https://storage.googleapis.com/stockradars-line/static/flex/button_download.png"
  950.                     }
  951.                   },
  952.                   {
  953.                     "type": "image",
  954.                     "url": "https://storage.googleapis.com/stockradars-line/static/flex/logo_StockRadar_Event(black).png",
  955.                     "align": "end",
  956.                     "size": "md",
  957.                     "aspectRatio": "3:1"
  958.                   }
  959.                 ]
  960.               }
  961.             ]
  962.           }
  963.         ]
  964.       }
  965.     },
  966.     {
  967.       "type": "bubble",
  968.       "body": {
  969.         "type": "box",
  970.         "layout": "vertical",
  971.         "contents": [
  972.           {
  973.             "type": "box",
  974.             "layout": "vertical",
  975.             "contents": [
  976.               {
  977.                 "type": "text",
  978.                 "text": "Hot Radars",
  979.                 "size": "xl",
  980.                 "align": "center",
  981.                 "gravity": "center",
  982.                 "weight": "bold"
  983.               },
  984.               {
  985.                 "type": "text",
  986.                 "text": "🏆 8 อันดับแรก ที่มีคนเลือกดูสูงสุดในรอบ 24 ชั่วโมง 👏",
  987.                 "size": "sm",
  988.                 "align": "center",
  989.                 "gravity": "center",
  990.                 "wrap": true
  991.               }
  992.             ]
  993.           },
  994.           {
  995.             "type": "separator",
  996.             "margin": "md"
  997.           },
  998.           {
  999.             "type": "box",
  1000.             "layout": "vertical",
  1001.             "margin": "md",
  1002.             "contents": [
  1003.               {
  1004.                 "type": "box",
  1005.                 "layout": "horizontal",
  1006.                 "flex": 10,
  1007.                 "action": {
  1008.                   "type": "message",
  1009.                   "label": "{$data[0]['symbol']}",
  1010.                   "text": "{$data[0]['symbol']}"
  1011.                 },
  1012.                 "contents": [
  1013.                   {
  1014.                     "type": "image",
  1015.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  1016.                     "flex": 1,
  1017.                     "size": "md"
  1018.                   },
  1019.                   {
  1020.                     "type": "text",
  1021.                     "text": "{$data[0]['symbol']}",
  1022.                     "flex": 3,
  1023.                     "gravity": "center",
  1024.                     "margin": "md",
  1025.                     "size": "md",
  1026.                     "weight": "bold"
  1027.                   },
  1028.                   {
  1029.                     "type": "text",
  1030.                     "text": "$price_1",
  1031.                     "flex": 2,
  1032.                     "size": "sm",
  1033.                     "gravity": "center",
  1034.                     "align": "end",
  1035.                     "weight": "bold"
  1036.                   },
  1037.                   {
  1038.                     "type": "text",
  1039.                     "text": "{$data[0]['change']}",
  1040.                     "flex": 4,
  1041.                     "size": "xs",
  1042.                     "gravity": "center",
  1043.                     "align": "end",
  1044.                     "color": "#000000",
  1045.                     "wrap": true
  1046.                   }
  1047.                 ]
  1048.               },
  1049.               {
  1050.                 "type": "separator",
  1051.                 "margin": "md"
  1052.               },
  1053.               {
  1054.                 "type": "box",
  1055.                 "layout": "horizontal",
  1056.                 "margin": "md",
  1057.                 "flex": 10,
  1058.                 "action": {
  1059.                   "type": "message",
  1060.                   "label": "{$data[1]['symbol']}",
  1061.                   "text": "{$data[1]['symbol']}"
  1062.                 },
  1063.                 "contents": [
  1064.                   {
  1065.                     "type": "image",
  1066.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  1067.                     "flex": 1,
  1068.                     "size": "md"
  1069.                   },
  1070.                   {
  1071.                     "type": "text",
  1072.                     "text": "{$data[1]['symbol']}",
  1073.                     "flex": 3,
  1074.                     "gravity": "center",
  1075.                     "margin": "md",
  1076.                     "weight": "bold"
  1077.                   },
  1078.                   {
  1079.                     "type": "text",
  1080.                     "text": "$price_2",
  1081.                     "flex": 2,
  1082.                     "size": "sm",
  1083.                     "gravity": "center",
  1084.                     "align": "end",
  1085.                     "weight": "bold"
  1086.                   },
  1087.                   {
  1088.                     "type": "text",
  1089.                     "text": "{$data[1]['change']}",
  1090.                     "flex": 4,
  1091.                     "size": "xs",
  1092.                     "gravity": "center",
  1093.                     "align": "end",
  1094.                     "color": "#000000",
  1095.                     "wrap": true
  1096.                   }
  1097.                 ]
  1098.               },
  1099.               {
  1100.                 "type": "separator",
  1101.                 "margin": "md"
  1102.               },
  1103.               {
  1104.                 "type": "box",
  1105.                 "layout": "horizontal",
  1106.                 "margin": "md",
  1107.                 "action": {
  1108.                   "type": "message",
  1109.                   "label": "{$data[2]['symbol']}",
  1110.                   "text": "{$data[2]['symbol']}"
  1111.                 },
  1112.                 "contents": [
  1113.                   {
  1114.                     "type": "image",
  1115.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  1116.                     "flex": 1,
  1117.                     "size": "md"
  1118.                   },
  1119.                   {
  1120.                     "type": "text",
  1121.                     "text": "{$data[2]['symbol']}",
  1122.                     "flex": 3,
  1123.                     "gravity": "center",
  1124.                     "margin": "md",
  1125.                     "weight": "bold"
  1126.                   },
  1127.                   {
  1128.                     "type": "text",
  1129.                     "text": "$price_3",
  1130.                     "size": "sm",
  1131.                     "flex": 2,
  1132.                     "gravity": "center",
  1133.                     "align": "end",
  1134.                     "weight": "bold"
  1135.                   },
  1136.                   {
  1137.                     "type": "text",
  1138.                     "text": "{$data[2]['change']}",
  1139.                     "flex": 4,
  1140.                     "size": "xs",
  1141.                     "gravity": "center",
  1142.                     "align": "end",
  1143.                     "color": "#000000",
  1144.                     "wrap": true
  1145.                   }
  1146.                 ]
  1147.               },
  1148.               {
  1149.                 "type": "separator",
  1150.                 "margin": "md"
  1151.               },
  1152.               {
  1153.                 "type": "box",
  1154.                 "layout": "horizontal",
  1155.                 "margin": "md",
  1156.                 "action": {
  1157.                   "type": "message",
  1158.                   "label": "{$data[3]['symbol']}",
  1159.                   "text": "{$data[3]['symbol']}"
  1160.                 },
  1161.                 "contents": [
  1162.                   {
  1163.                     "type": "image",
  1164.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  1165.                     "flex": 1,
  1166.                     "margin": "md",
  1167.                     "size": "md"
  1168.                   },
  1169.                   {
  1170.                     "type": "text",
  1171.                     "text": "{$data[3]['symbol']}",
  1172.                     "flex": 3,
  1173.                     "gravity": "center",
  1174.                     "margin": "md",
  1175.                     "weight": "bold"
  1176.                   },
  1177.                   {
  1178.                     "type": "text",
  1179.                     "text": "$price_4",
  1180.                     "flex": 2,
  1181.                     "size": "sm",
  1182.                     "gravity": "center",
  1183.                     "align": "end",
  1184.                     "weight": "bold"
  1185.                   },
  1186.                   {
  1187.                     "type": "text",
  1188.                     "text": "{$data[3]['change']}",
  1189.                     "flex": 4,
  1190.                     "size": "xs",
  1191.                     "gravity": "center",
  1192.                     "align": "end",
  1193.                     "color": "#000000",
  1194.                     "wrap": true
  1195.                   }
  1196.                 ]
  1197.               },
  1198.               {
  1199.                 "type": "separator",
  1200.                 "margin": "md"
  1201.               },
  1202.               {
  1203.                 "type": "box",
  1204.                 "layout": "horizontal",
  1205.                 "margin": "md",
  1206.                 "action": {
  1207.                   "type": "message",
  1208.                   "label": "{$data[4]['symbol']}",
  1209.                   "text": "{$data[4]['symbol']}"
  1210.                 },
  1211.                 "contents": [
  1212.                   {
  1213.                     "type": "image",
  1214.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  1215.                     "flex": 1,
  1216.                     "size": "md"
  1217.                   },
  1218.                   {
  1219.                     "type": "text",
  1220.                     "text": "{$data[4]['symbol']}",
  1221.                     "flex": 3,
  1222.                     "gravity": "center",
  1223.                     "margin": "md",
  1224.                     "weight": "bold"
  1225.                   },
  1226.                   {
  1227.                     "type": "text",
  1228.                     "text": "$price_5",
  1229.                     "align": "end",
  1230.                     "size": "sm",
  1231.                     "gravity": "center",
  1232.                     "flex": 2,
  1233.                     "weight": "bold"
  1234.                   },
  1235.                   {
  1236.                     "type": "text",
  1237.                     "text": "{$data[4]['change']}",
  1238.                     "flex": 4,
  1239.                     "size": "xs",
  1240.                     "align": "end",
  1241.                     "gravity": "center",
  1242.                     "color": "#000000",
  1243.                     "wrap": true
  1244.                   }
  1245.                 ]
  1246.               },
  1247.               {
  1248.                 "type": "separator",
  1249.                 "margin": "md"
  1250.               },
  1251.               {
  1252.                 "type": "box",
  1253.                 "layout": "horizontal",
  1254.                 "margin": "md",
  1255.                 "action": {
  1256.                   "type": "message",
  1257.                   "label": "{$data[5]['symbol']}",
  1258.                   "text": "{$data[5]['symbol']}"
  1259.                 },
  1260.                 "contents": [
  1261.                   {
  1262.                     "type": "image",
  1263.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  1264.                     "flex": 1,
  1265.                     "size": "md"
  1266.                   },
  1267.                   {
  1268.                     "type": "text",
  1269.                     "text": "{$data[5]['symbol']}",
  1270.                     "flex": 3,
  1271.                     "gravity": "center",
  1272.                     "margin": "md",
  1273.                     "weight": "bold"
  1274.                   },
  1275.                   {
  1276.                     "type": "text",
  1277.                     "text": "$price_6",
  1278.                     "align": "end",
  1279.                     "size": "sm",
  1280.                     "gravity": "center",
  1281.                     "flex": 2,
  1282.                     "weight": "bold"
  1283.                   },
  1284.                   {
  1285.                     "type": "text",
  1286.                     "text": "{$data[5]['change']}",
  1287.                     "flex": 4,
  1288.                     "size": "xs",
  1289.                     "align": "end",
  1290.                     "gravity": "center",
  1291.                     "color": "#000000",
  1292.                     "wrap": true
  1293.                   }
  1294.                 ]
  1295.               },
  1296.               {
  1297.                 "type": "separator",
  1298.                 "margin": "md"
  1299.               },
  1300.               {
  1301.                 "type": "box",
  1302.                 "layout": "horizontal",
  1303.                 "margin": "md",
  1304.                 "action": {
  1305.                   "type": "message",
  1306.                   "label": "{$data[6]['symbol']}",
  1307.                   "text": "{$data[6]['symbol']}"
  1308.                 },
  1309.                 "contents": [
  1310.                   {
  1311.                     "type": "image",
  1312.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  1313.                     "flex": 1,
  1314.                     "size": "md"
  1315.                   },
  1316.                   {
  1317.                     "type": "text",
  1318.                     "text": "{$data[6]['symbol']}",
  1319.                     "flex": 3,
  1320.                     "gravity": "center",
  1321.                     "margin": "md",
  1322.                     "weight": "bold"
  1323.                   },
  1324.                   {
  1325.                     "type": "text",
  1326.                     "text": "$price_7",
  1327.                     "align": "end",
  1328.                     "size": "sm",
  1329.                     "gravity": "center",
  1330.                     "flex": 2,
  1331.                     "weight": "bold"
  1332.                   },
  1333.                   {
  1334.                     "type": "text",
  1335.                     "text": "{$data[6]['change']}",
  1336.                     "flex": 4,
  1337.                     "size": "xs",
  1338.                     "align": "end",
  1339.                     "gravity": "center",
  1340.                     "color": "#000000",
  1341.                     "wrap": true
  1342.                   }
  1343.                 ]
  1344.               },
  1345.               {
  1346.                 "type": "separator",
  1347.                 "margin": "md"
  1348.               },
  1349.               {
  1350.                 "type": "box",
  1351.                 "layout": "horizontal",
  1352.                 "margin": "md",
  1353.                 "action": {
  1354.                   "type": "message",
  1355.                   "label": "{$data[7]['symbol']}",
  1356.                   "text": "{$data[7]['symbol']}"
  1357.                 },
  1358.                 "contents": [
  1359.                   {
  1360.                     "type": "image",
  1361.                     "url": "https://line-bot.stockradars.co/images/company_logo/STPI.png",
  1362.                     "flex": 1,
  1363.                     "size": "md"
  1364.                   },
  1365.                   {
  1366.                     "type": "text",
  1367.                     "text": "{$data[7]['symbol']}",
  1368.                     "flex": 3,
  1369.                     "gravity": "center",
  1370.                     "margin": "md",
  1371.                     "weight": "bold"
  1372.                   },
  1373.                   {
  1374.                     "type": "text",
  1375.                     "text": "$price_8",
  1376.                     "align": "end",
  1377.                     "size": "sm",
  1378.                     "gravity": "center",
  1379.                     "flex": 2,
  1380.                     "weight": "bold"
  1381.                   },
  1382.                   {
  1383.                     "type": "text",
  1384.                     "text": "{$data[7]['change']}",
  1385.                     "flex": 4,
  1386.                     "size": "xs",
  1387.                     "align": "end",
  1388.                     "gravity": "center",
  1389.                     "color": "#000000",
  1390.                     "wrap": true
  1391.                   }
  1392.                 ]
  1393.               },
  1394.               {
  1395.                 "type": "separator",
  1396.                 "margin": "md"
  1397.               },
  1398.               {
  1399.                 "type": "separator",
  1400.                 "margin": "md",
  1401.                 "color": "#FFFFFF"
  1402.               },
  1403.               {
  1404.                 "type": "text",
  1405.                 "text": "$text_footer",
  1406.                 "size": "sm",
  1407.                 "align": "center",
  1408.                 "gravity": "center",
  1409.                 "wrap": true
  1410.               },
  1411.               {
  1412.                 "type": "box",
  1413.                 "layout": "vertical",
  1414.                 "contents": [
  1415.                   {
  1416.                     "type": "image",
  1417.                     "url": "https://storage.googleapis.com/stockradars-line/static/flex/button_download.png",
  1418.                     "size": "full",
  1419.                     "aspectRatio": "3:1",
  1420.                     "action": {
  1421.                       "type": "uri",
  1422.                       "label": "Share",
  1423.                       "uri": "https://storage.googleapis.com/stockradars-line/static/flex/button_download.png"
  1424.                     }
  1425.                   },
  1426.                   {
  1427.                     "type": "image",
  1428.                     "url": "https://storage.googleapis.com/stockradars-line/static/flex/logo_StockRadar_Event(black).png",
  1429.                     "align": "end",
  1430.                     "size": "md",
  1431.                     "aspectRatio": "3:1"
  1432.                   }
  1433.                 ]
  1434.               }
  1435.             ]
  1436.           }
  1437.         ]
  1438.       }
  1439.     }
  1440.   ]
  1441. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement