|
|
@@ -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 = [
|