From 27840034943531b162e30f9cd94df19af231886d Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Fri, 17 Oct 2025 15:36:43 +0800 Subject: [PATCH] no message --- src/Services/IM/TelegramV2.php | 2 +- src/Services/Tg/Hook/Mod/Ann.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Services/IM/TelegramV2.php b/src/Services/IM/TelegramV2.php index 3ab7718a0..35bdbe2f6 100755 --- a/src/Services/IM/TelegramV2.php +++ b/src/Services/IM/TelegramV2.php @@ -115,7 +115,7 @@ final class TelegramV2 ]; } - $this->bot->sendMessage($sendMessage); + return $this->bot->sendMessage($sendMessage); } } diff --git a/src/Services/Tg/Hook/Mod/Ann.php b/src/Services/Tg/Hook/Mod/Ann.php index a9d300f21..9acc0e318 100644 --- a/src/Services/Tg/Hook/Mod/Ann.php +++ b/src/Services/Tg/Hook/Mod/Ann.php @@ -59,7 +59,13 @@ class Ann extends Base { $oTelegramV2->setTo("tongzhiqun"); - $oTelegramV2->send($oAnn->content, "str"); + $r = $oTelegramV2->send($oAnn->content, "str"); + + if ($r) { + $oAnn->post = 1; + $oAnn->save(); + return "ok,状态以更新"; + } }