修复webhook url指定
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user