Bot platform adapters now ship in the
praisonai-bot package. praisonai bot serve still works exactly as documented here; for a standalone install see praisonai-bot Migration.Capabilities describe what a channel can render; Display Policy controls what you want shown.
Quick Start
1
Look up built-in capabilities
2
Register a custom platform
How it works
UnifiedDelivery (via create_delivery(bot)) reads platform_capabilities to chunk long replies, stream edits, and apply rate limits.
Configuration options
Methods:
to_dict() and from_dict(data).
Webhook-based platforms
Platforms that setaccepts_webhooks=True must also expose a webhook_verifier so enforce_webhook_verification can enforce signatures fail-closed. See Webhook Verification.
Built-in platform defaults
Native / command menu
Some platforms publish the bot’s commands to their native / menu so typing / shows autocomplete. Adapters override publish_command_menu to project the shared CommandRegistry; the base implementation is a no-op.
See Native
/ Autocomplete for user-facing behaviour and the Discord shim caveat.
Common patterns
Subclass withdefault_capabilities() (Telegram and Discord use this):
praisonai.channels) get default capabilities unless the adapter class exposes a default_capabilities() classmethod. This keeps zero-config connectors functional while letting polished adapters declare exact limits:
Best Practices
Use utf16 for Telegram
Use utf16 for Telegram
Telegram counts UTF-16 code units. Wrong
length_unit can silently truncate messages.Set needs_rate_limit=False only when the SDK rate-limits
Set needs_rate_limit=False only when the SDK rate-limits
Discord.py handles limits internally; raw Telegram HTTP does not.
Enable supports_edit only with edit_message()
Enable supports_edit only with edit_message()
UnifiedDelivery streams via edits when this flag is true.Prefer default_capabilities() on the adapter class
Prefer default_capabilities() on the adapter class
Keeps registry caching consistent when platforms override defaults.
Related
Durable Outbound Delivery
Effectively-once delivery via crash reconciliation
Display Policy
Operator policy for streaming and footers
Bot Platform Plugins
Register custom adapters
Bot Streaming Replies
Uses supports_edit and edit_interval_ms
Bot Rate Limiting
Uses needs_rate_limit
Chunking Strategies
Uses max_message_length and length_unit

