mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
feat(notification): add Feishu notification channel support
This commit is contained in:
@@ -211,6 +211,8 @@ class NotificationSwitch(BaseModel):
|
||||
mtype: Optional[str] = None
|
||||
# 微信开关
|
||||
wechat: Optional[bool] = False
|
||||
# 飞书开关
|
||||
feishu: Optional[bool] = False
|
||||
# TG开关
|
||||
telegram: Optional[bool] = False
|
||||
# Slack开关
|
||||
@@ -324,6 +326,24 @@ class ChannelCapabilityManager:
|
||||
},
|
||||
fallback_enabled=True,
|
||||
),
|
||||
MessageChannel.Feishu: ChannelCapabilities(
|
||||
channel=MessageChannel.Feishu,
|
||||
capabilities={
|
||||
ChannelCapability.INLINE_BUTTONS,
|
||||
ChannelCapability.MESSAGE_EDITING,
|
||||
ChannelCapability.CALLBACK_QUERIES,
|
||||
ChannelCapability.MARKDOWN,
|
||||
ChannelCapability.RICH_TEXT,
|
||||
ChannelCapability.IMAGES,
|
||||
ChannelCapability.LINKS,
|
||||
ChannelCapability.FILE_SENDING,
|
||||
},
|
||||
max_buttons_per_row=3,
|
||||
max_button_rows=8,
|
||||
max_button_text_length=20,
|
||||
max_message_length=30000,
|
||||
fallback_enabled=True,
|
||||
),
|
||||
MessageChannel.WechatClawBot: ChannelCapabilities(
|
||||
channel=MessageChannel.WechatClawBot,
|
||||
capabilities={
|
||||
|
||||
@@ -65,7 +65,7 @@ class NotificationConf(BaseModel):
|
||||
|
||||
# 名称
|
||||
name: Optional[str] = None
|
||||
# 类型 telegram/wechat/vocechat/synologychat/slack/webpush/qqbot
|
||||
# 类型 telegram/wechat/feishu/vocechat/synologychat/slack/webpush/qqbot
|
||||
type: Optional[str] = None
|
||||
# 配置
|
||||
config: Optional[dict] = Field(default_factory=dict)
|
||||
|
||||
@@ -305,6 +305,7 @@ class MessageChannel(Enum):
|
||||
消息渠道
|
||||
"""
|
||||
Wechat = "微信"
|
||||
Feishu = "飞书"
|
||||
WechatClawBot = "微信ClawBot"
|
||||
Telegram = "Telegram"
|
||||
Slack = "Slack"
|
||||
|
||||
Reference in New Issue
Block a user