From 337090e7cb40149c361c62bcafedafd1bd70cafc Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Fri, 9 May 2025 22:28:23 +0800 Subject: [PATCH] fix: failed to update tg bot --- pkg/platform/sources/telegram.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/platform/sources/telegram.py b/pkg/platform/sources/telegram.py index b35b7e7a..03036293 100644 --- a/pkg/platform/sources/telegram.py +++ b/pkg/platform/sources/telegram.py @@ -236,5 +236,6 @@ class TelegramAdapter(adapter.MessagePlatformAdapter): await self.application.start() async def kill(self) -> bool: - await self.application.stop() + if self.application.running: + await self.application.stop() return True