seven 6 일 전
부모
커밋
59e18c49a6
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      app/Http/Controllers/api/TelegramWebHook.php

+ 11 - 0
app/Http/Controllers/api/TelegramWebHook.php

@@ -534,6 +534,17 @@ class TelegramWebHook extends Controller
             ['投注大群']
         ];
 
+        if($replyInfo && $replyInfo->keyboard){
+            $keyboard = json_decode($replyInfo->keyboard, true);
+
+            foreach ($keyboard as $rowIndex => $row) {
+                foreach ($row as $buttonIndex => $button) {
+                    $keyboard[$rowIndex][$buttonIndex] = ['text' => $button->text];
+                }
+            }
+
+        }
+
         $botMsg = [];
         $botMsg['chat_id'] = $chatId;
         $replyMarkup = [