fix: 清理TelegramAdapter无用变量并通过lint

This commit is contained in:
clown145
2026-02-12 15:41:07 +08:00
committed by Helian Nuits
parent b4eec978fe
commit 727da8025d
3 changed files with 7 additions and 9 deletions
@@ -4,8 +4,8 @@ from collections import Counter
from astrbot.api.event import AstrMessageEvent
from astrbot.api.star import Context
from ...utils.logger import logger
from ...infrastructure.persistence.telegram_group_registry import TelegramGroupRegistry
from ...utils.logger import logger
class MessageProcessingService:
@@ -92,7 +92,6 @@ class TelegramAdapter(PlatformAdapter):
2. 回退:从插件的 KV 存储中获取已知群组 (需注入插件实例)
"""
groups = []
client = self._telegram_client
# 1. 尝试 API (目前 python-telegram-bot 不支持直接列出所有 chat)
# 如果 client 有扩展方法或未来支持,可在此实现