feat: Update Telegram adapter to support uploads

This commit is contained in:
shiyu
2025-08-31 18:22:46 +08:00
parent 27ad49d8ed
commit 1a3d9d41ec
3 changed files with 115 additions and 40 deletions

View File

@@ -102,10 +102,10 @@ class TaskQueueService:
finally:
self._queue.task_done()
def start_worker(self):
async def start_worker(self):
if self._worker_task is None or self._worker_task.done():
self._worker_task = asyncio.create_task(self.worker())
LogService.info("task_queue", "Task worker created.")
await LogService.info("task_queue", "Task worker created.")
async def stop_worker(self):
if self._worker_task and not self._worker_task.done():