feat: add skills marketplace management

This commit is contained in:
jxxghp
2026-04-22 14:55:00 +08:00
parent 51189210c2
commit 8c78627647
12 changed files with 1732 additions and 0 deletions

View File

@@ -557,6 +557,7 @@ class SlackModule(_ModuleBase, _MessageBase[Slack]):
chat_id: Union[str, int],
text: str,
title: Optional[str] = None,
buttons: Optional[List[List[dict]]] = None,
) -> bool:
"""
编辑消息
@@ -566,6 +567,7 @@ class SlackModule(_ModuleBase, _MessageBase[Slack]):
:param chat_id: 聊天ID
:param text: 新的消息内容
:param title: 消息标题
:param buttons: 新的按钮列表
:return: 编辑是否成功
"""
if channel != self._channel:
@@ -578,6 +580,7 @@ class SlackModule(_ModuleBase, _MessageBase[Slack]):
result = client.send_msg(
title=title or "",
text=text,
buttons=buttons,
original_message_id=str(message_id),
original_chat_id=str(chat_id),
)