twilio_sms
twilio_sms
¶
Twilio SMS channel for sending and receiving text messages.
Classes¶
TwilioSMSChannel
¶
TwilioSMSChannel(
*,
account_sid: str = "",
auth_token: str = "",
phone_number: str = "",
bus: Optional[EventBus] = None,
)
Bases: BaseChannel
Send and receive SMS via Twilio.
Sending uses the Twilio REST API. Receiving is handled by
the /webhooks/twilio FastAPI endpoint which calls
registered handlers.
Source code in src/diapason/channels/twilio_sms.py
Methods:¶
handle_webhook
¶
Called by the webhook route for incoming SMS.