Source: factory.conversation/ObjConversationTwilio.py
Twilio engine for the conversation framework.
Sends SMS and WhatsApp messages via the Twilio
REST API using HTTP Basic authentication.
Set from_number to a plain number for SMS or
...
| Method | Signature | Description |
|---|---|---|
| transmit_message | transmit_message(message: str, to_number: str = '', media_url: str = '') -> None |
Send a message via the Twilio Messages |
| display_context | display_context(opts: dict) -> None |
Send conversation context as a plain-text |
| display_options | display_options(opts: dict) -> tuple |
Send numbered options as a plain-text |
Twilio broker handling inbound webhook
verification and message routing.
| Method | Signature | Description |
|---|---|---|
| verify_signature | verify_signature(url: str, params: dict, signature: Optional[str]) -> bool |
Verify X-Twilio-Signature header. |
| handle_webhook | handle_webhook(form_data: dict) -> None |
Process an inbound Twilio webhook POST. |
| run | run() -> None |
Twilio is driven by a FastAPI webhook |