This commit is contained in:
Changhua 2023-07-12 23:22:42 +08:00
parent d5c04863db
commit 93b99ca736
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -156,13 +156,13 @@ class Http(FastAPI):
def send_text(
self, msg: str = Body(description="要发送的消息,换行用\\n表示"),
receiver: str = Body("filehelper", description="消息接收者roomid 或者 wxid"),
aters: str = Body("", description="要 @ 的 wxid多个用逗号分隔@所有人 用 nofity@all")) -> dict:
aters: str = Body("", description="要 @ 的 wxid多个用逗号分隔@所有人 用 notify@all")) -> dict:
"""发送文本消息可参考https://github.com/lich0821/WeChatRobot/blob/master/robot.py 里 sendTextMsg
Args:
msg (str): 要发送的消息换行使用 `\\n`如果 @ 人的话需要带上跟 `aters` 里数量相同的 @
receiver (str): 消息接收人wxid 或者 roomid
aters (str): @ wxid多个用逗号分隔`@所有人` 只需要 `nofity@all`
aters (str): @ wxid多个用逗号分隔`@所有人` 只需要 `notify@all`
Returns:
int: 0 为成功其他失败

View File

@ -236,7 +236,7 @@ class Wcf():
Args:
msg (str): 要发送的消息换行使用 `\\n`如果 @ 人的话需要带上跟 `aters` 里数量相同的 @
receiver (str): 消息接收人wxid 或者 roomid
aters (str): @ wxid多个用逗号分隔`@所有人` 只需要 `nofity@all`
aters (str): @ wxid多个用逗号分隔`@所有人` 只需要 `notify@all`
Returns:
int: 0 为成功其他失败