fix(tg): 尝试修复 Telegram 平台自动分析就绪检查失败问题 (#128)

- 在 BotManager 中增加对 Telegram 机器人 ID 提取的支持(支持 `bot.id` 属性),解决 Telegram 环境下因无法识别 Bot ID 导致的自动分析任务跳过问题。
This commit is contained in:
SXP-Simon
2026-03-25 16:31:42 +08:00
parent 82c5cc4cef
commit 1ab409a49e
@@ -460,6 +460,9 @@ class BotManager:
# Discord.py style: client.user.id
elif hasattr(bot_instance, "user") and hasattr(bot_instance.user, "id"):
return str(bot_instance.user.id)
# python-telegram-bot style: bot.id
elif hasattr(bot_instance, "id") and bot_instance.id:
return str(bot_instance.id)
return None
def validate_for_message_fetching(self, group_id: str) -> bool: