mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 20:01:04 +00:00
feat(feishu): 尝试接入飞书
This commit is contained in:
@@ -231,6 +231,29 @@ SLACK_CAPABILITIES = PlatformCapabilities(
|
||||
avatar_sizes=(24, 32, 48, 72, 192, 512, 1024),
|
||||
)
|
||||
|
||||
# Feishu/Lark Open Platform API
|
||||
LARK_CAPABILITIES = PlatformCapabilities(
|
||||
platform_name="lark",
|
||||
platform_version="open_api_v1",
|
||||
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,
|
||||
supports_reply_message=True,
|
||||
max_text_length=30000,
|
||||
max_image_size_mb=10.0,
|
||||
supports_user_avatar=True,
|
||||
supports_group_avatar=True,
|
||||
avatar_needs_api_call=True,
|
||||
avatar_sizes=(72, 240, 640),
|
||||
)
|
||||
|
||||
# 能力查找表(映射平台标识到能力对象)
|
||||
PLATFORM_CAPABILITIES: dict[str, PlatformCapabilities] = {
|
||||
"aiocqhttp": ONEBOT_V11_CAPABILITIES,
|
||||
@@ -238,6 +261,7 @@ PLATFORM_CAPABILITIES: dict[str, PlatformCapabilities] = {
|
||||
"telegram": TELEGRAM_CAPABILITIES,
|
||||
"discord": DISCORD_CAPABILITIES,
|
||||
"slack": SLACK_CAPABILITIES,
|
||||
"lark": LARK_CAPABILITIES,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user