修复webhook url指定

This commit is contained in:
2025-10-29 12:16:12 +08:00
parent c80fb67165
commit 08cc4870ca

View File

@@ -10,12 +10,14 @@ logger = logging.getLogger(__name__)
class MessageSender:
"""消息发送器"""
def __init__(self, webhook_url: str = WEBHOOK_URL):
def __init__(self, webhook_url: Optional[str] = None):
"""初始化消息发送器
Args:
webhook_url: Webhook URL
"""
if webhook_url is None:
webhook_url = WEBHOOK_URL
self.webhook_url = webhook_url
self.client: Optional[httpx.AsyncClient] = None