mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 20:01:04 +00:00
fix: 清理TelegramAdapter无用变量并通过lint
This commit is contained in:
@@ -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 有扩展方法或未来支持,可在此实现
|
||||
|
||||
Reference in New Issue
Block a user