Skip to content

Personal AI, On Personal Devices

Python

fix(channels): make Telegram message handler async for PTB 22 (#1023)

Stuart Harding4b194e696d95
diff --git a/src/openjarvis/channels/telegram.py b/src/openjarvis/channels/telegram.py
index 64fccb7a..2d6ed751 100644
--- a/src/openjarvis/channels/telegram.py
+++ b/src/openjarvis/channels/telegram.py
@@ -383,7 +383,7 @@ class TelegramChannel(BaseChannel):
with self._runtime_lock:
self._app = app
- def _handle_msg(update, context):
+ async def _handle_msg(update, context):
msg = update.message
if msg is None:
return