import httpx async def send_feishu(url: str, text: str): async with httpx.AsyncClient(timeout=10) as client: body = {"msg_type": "text", "content": {"text": text}} resp = await client.post(url, json=body) resp.raise_for_status() async def send_wecom(url: str, text: str): async with httpx.AsyncClient(timeout=10) as client: body = {"msgtype": "text", "text": {"content": text}} resp = await client.post(url, json=body) resp.raise_for_status()