mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 15:29:36 +00:00
14 lines
399 B
Python
14 lines
399 B
Python
from __future__ import annotations
|
|
|
|
from typing import Dict, Any
|
|
|
|
from app.integrations.whatsapp import send_whatsapp_message
|
|
|
|
|
|
class WhatsAppCloudPlugin:
|
|
name = "whatsapp-cloud"
|
|
|
|
async def send_message(self, phone: str, text: str) -> Dict[str, Any]:
|
|
result = await send_whatsapp_message(phone, text)
|
|
return {"channel": "whatsapp", "phone": phone, "provider_result": result}
|