Ken 2 giorni fa
parent
commit
9ff39f2ba8
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/Http/Controllers/api/TelegramWebHook.php

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

@@ -103,6 +103,8 @@ class TelegramWebHook extends BaseController
                             } else {
                                 $this->telegram->sendMessage($returnMsg);
                             }
+                        } else {
+                            $this->telegram->sendMessage(['chat_id' => $chatId, 'text' => lang("消息格式错误!"), 'reply_to_message_id' => $messageId]);
                         }
                         DB::commit();
                     } //