Ken 2 روز پیش
والد
کامیت
b602d7e97d
1فایلهای تغییر یافته به همراه16 افزوده شده و 16 حذف شده
  1. 16 16
      app/Services/KeyboardService.php

+ 16 - 16
app/Services/KeyboardService.php

@@ -245,22 +245,22 @@ class KeyboardService extends BaseService
             $keyboard = [];
             if ($keyboardText['buttons']) {
                 $keyboard = json_decode($keyboardText['buttons'], true);
-                $newKeyboard = [];
-                foreach ($keyboard as $item) {
-                    $t = [];
-                    foreach ($item as $item1) {
-                        if(static::isValidURL($item1['url'])){
-                            $t[] = $item1;
-                        }else{
-                            $t[] = [
-                                'text' => $item1['text'],
-                                'callback_data' => $item1['url']
-                            ];
-                        }
-                    }
-                    if (!empty($t)) $newKeyboard[] = $t;
-                }
-                $keyboard = $newKeyboard;
+//                $newKeyboard = [];
+//                foreach ($keyboard as $item) {
+//                    $t = [];
+//                    foreach ($item as $item1) {
+//                        if(static::isValidURL($item1['url'])){
+//                            $t[] = $item1;
+//                        }else{
+//                            $t[] = [
+//                                'text' => $item1['text'],
+//                                'callback_data' => $item1['url']
+//                            ];
+//                        }
+//                    }
+//                    if (!empty($t)) $newKeyboard[] = $t;
+//                }
+//                $keyboard = $newKeyboard;
             }
             Util::delCache($chatId);
             $res = [