mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 13:38:43 +00:00
fix(tg): 尝试修复 Telegram 平台自动分析就绪检查失败问题 (#128)
- 在 BotManager 中增加对 Telegram 机器人 ID 提取的支持(支持 `bot.id` 属性),解决 Telegram 环境下因无法识别 Bot ID 导致的自动分析任务跳过问题。
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user