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