Ken il y a 2 mois
Parent
commit
dd7b0e11e5
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      app/Http/Controllers/api/TelegramWebHook.php

+ 4 - 1
app/Http/Controllers/api/TelegramWebHook.php

@@ -105,7 +105,10 @@ class TelegramWebHook extends Controller
                     $alertText = BetService::recentlyRecord($chatId);
                     BetService::alertNotice($callbackId, $alertText);
                 }
-
+                $telegram->sendMessage([
+                    'chat_id'=>$chatId,
+                    'text'=>$data
+                ]);
                 //选择充值地址
                 if ($data === "topup@@TRC20" || $data === "topup@@ERC20") {
                     $type = preg_replace('/^topup@@/', '', $data);