module wittgenstein_messaging.channels.whatsapp
Classes
-
WhatsAppChannel — WhatsApp messaging channel adapter (WhatsApp Business Cloud API).
wittgenstein_messaging.channels.whatsapp.WhatsAppChannel
class WhatsAppChannel(api_token: Optional[str] = None, phone_number_id: Optional[str] = None)
WhatsApp messaging channel adapter (WhatsApp Business Cloud API).
Methods
-
send — Send a WhatsApp text message via the Business Cloud API Graph endpoint.
wittgenstein_messaging.channels.whatsapp.WhatsAppChannel.send
async method WhatsAppChannel.send(self, message: Message) → bool
Send a WhatsApp text message via the Business Cloud API Graph endpoint.
Any httpx exception (including a raised non-2xx status) propagates to the caller (MessageRouter), which is responsible for converting it into a FAILED status.