Source: factory.conversation/ObjConversationMessenger.py
Facebook Messenger engine for the conversation
framework.
Sends messages via the Messenger Send API using
Quick Replies for option menus.
| Method | Signature | Description |
|---|---|---|
| transmit_message | transmit_message(message: str, recipient_id: str = '') -> None |
Send a plain-text message to a Messenger |
| display_context | display_context(opts: dict) -> None |
Send conversation context as a Messenger |
| display_options | display_options(opts: dict) -> tuple |
Send options with Quick Replies and return |
Messenger broker handling webhook verification
and inbound message routing.
| Method | Signature | Description |
|---|---|---|
| verify_webhook | verify_webhook(mode: str, token: str, challenge: str) -> str |
Handle Facebook webhook GET verification. |
| verify_signature | verify_signature(payload_bytes: bytes, signature_header: Optional[str]) -> bool |
Verify X-Hub-Signature-256 header using |
| handle_message | handle_message(body: dict) -> None |
Route inbound Messenger message events to |
| run | run() -> None |
Messenger is driven by the FastAPI webhook |