fix(ruff)

This commit is contained in:
SXP-Simon
2026-03-16 01:10:28 +08:00
parent 02bacd3389
commit 70518fbd7b
@@ -161,7 +161,6 @@ class TelegramAdapter(PlatformAdapter):
logger.warning("无法从 bot_instance 获取 Telegram 客户端")
return None
# ==================== IMessageRepository ====================
async def fetch_messages(
@@ -299,7 +298,7 @@ class TelegramAdapter(PlatformAdapter):
# 尝试从 bot 实例获取
if hasattr(self.bot, "meta") and callable(self.bot.meta):
try:
meta = self.bot.meta() # type: ignore
meta = self.bot.meta() # type: ignore
if hasattr(meta, "id"):
return str(getattr(meta, "id", "telegram"))
except Exception: