ming 3 лет назад
Родитель
Сommit
154dd43d05
1 измененных файлов с 7 добавлено и 4 удалено
  1. 7 4
      newbot.py

+ 7 - 4
newbot.py

@@ -238,8 +238,7 @@ def make_bubble(title,kw):
         "size": "full",
         "gravity": "top",
         "margin": "none",
-        "aspectRatio": "20:13",
-        "uri":"https://line.me/R/nv/suggestSettings"
+        "aspectRatio": "20:13"
       },
       "body": {
         "type": "box",
@@ -261,6 +260,11 @@ def make_box(num, content):
     row_dict = {}
     row_dict['type'] = 'box'
     row_dict['layout'] = 'baseline'
+    row_dict["action"]= {
+      "type": "uri",
+      "label": "action",
+      "uri": "https://store.line.me"
+    }
     row_dict['contents']= [
           {
             "type": "text",
@@ -273,8 +277,7 @@ def make_box(num, content):
             "type": "text",
             "text": content,
             "flex": 5,
-            "weight": "regular",
-             "uri": "https://github.com/OpenShot/libopenshot"
+            "weight": "regular"
           }
         ]
     return row_dict