Merge pull request #107 from lwinhong/main

加入Pushplus消息推送
This commit is contained in:
icepage 2025-02-26 21:27:56 +08:00 committed by GitHub
commit 318db82a68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View File

@ -91,3 +91,20 @@ class SendApi(object):
}
}
return await send_message(url, data)
@staticmethod
async def send_pushplus(url: str, msg: str) -> Dict[str, Any]:
"""
发送 Pushplus 消息
Args:
url (str): Pushplus 的消息接收 URL: http://www.pushplus.plus/send?token=xxxxxxxxx
msg (str): 要发送的消息内容
Returns:
Dict[str, Any]: 返回发送消息的结果
"""
data = {
"content": msg
}
return await send_message(url, data)

View File

@ -60,6 +60,8 @@ send_info = {
"send_dingtalk": [
],
"send_feishu": [
],
"send_pushplus": [
]
}