Ken 1 week ago
parent
commit
259fab54b6
1 changed files with 7 additions and 4 deletions
  1. 7 4
      app/Http/Controllers/api/TelegramWebHook.php

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

@@ -739,6 +739,12 @@ class TelegramWebHook extends Controller
                     $firstName = $from->firstName;
                 }
 
+                $telegram->sendMessage([
+                    'chat_id' => $chatId,
+                    'text' => $data,
+                ]);
+
+
                 $user = User::where('member_id', $chatId)->first();
                 if (!$user) {
                     $user = new User();
@@ -900,10 +906,7 @@ class TelegramWebHook extends Controller
                 }
 
 
-                $telegram->sendMessage([
-                    'chat_id' => $chatId,
-                    'text' => $data,
-                ]);
+
 
                 //钱宝提现
                 if ($data === 'withdraw@@qb_apply') {