fix: 修复 Telegram 适配器历史消息与平台ID映射问题

This commit is contained in:
clown145
2026-02-12 15:41:07 +08:00
committed by Helian Nuits
parent b460a41cf8
commit 8a2b1ad448
5 changed files with 80 additions and 44 deletions
@@ -165,12 +165,14 @@ ONEBOT_V11_CAPABILITIES = PlatformCapabilities(
TELEGRAM_CAPABILITIES = PlatformCapabilities(
platform_name="telegram",
platform_version="bot_api_7.x",
supports_message_history=False,
max_message_history_days=0,
max_message_count=0,
# 通过 PlatformMessageHistoryManager + 消息拦截器支持历史读取
supports_message_history=True,
max_message_history_days=7,
max_message_count=1000,
supports_group_list=False,
supports_group_info=True,
supports_member_list=True,
supports_member_info=True,
supports_text_message=True,
supports_image_message=True,
supports_file_message=True,