/sethome, or target explicit delivery tokens without hardcoding IDs in every job.
Home Channels (/sethome)
Mark a chat once as the platform default for scheduled deliveries. Settings persist to ~/.praisonai/state/home_channels.json.
| Delivery token | Resolves to |
|---|---|
origin | Chat where the job was created (--channel + --channel-id required at creation) |
<platform> (e.g. telegram) | That platform’s home channel from /sethome |
<platform>:<chat_id>[:<thread_id>] | Explicit target |
all | Fan-out to every platform with a configured home channel |
/sethome command.
Quick Start
How It Works
| Target | Resolves to | Example |
|---|---|---|
origin | Chat that triggered the request | deliver("origin", text, origin=src) |
<platform> | Platform’s home_channel | deliver("telegram", text) |
<platform>:<id> | Explicit channel | deliver("telegram:123456", text) |
<alias> | Friendly name from directory | deliver("ops-alerts", text) |
origin → platform:channel_id → bare platform name → alias. Platform names win over aliases — do not name an alias the same as a platform.
Scheduled jobs use DeliveryRouter automatically, defaulting to "origin" when delivery context is present.
Choosing a Target Form
Configuration
YAML
Python
Common Patterns
Scheduled digest to a named channel
Cross-channel notification from a tool
Best Practices
Prefer aliases over raw IDs in agent code
Prefer aliases over raw IDs in agent code
Aliases survive channel renumbering and read better in logs.
Always set home_channel for platforms you target by name
Always set home_channel for platforms you target by name
Bare-platform targets fail loudly without a configured home channel.
Do not name an alias the same as a platform
Do not name an alias the same as a platform
Platform-name lookup wins; the alias becomes unreachable by bare name.
Handle the bool return
Handle the bool return
deliver() returns False on resolution or send failure — log and retry as appropriate.Related
BotOS
Multi-platform orchestration
Bot Gateway
Run multiple bots from one server

