Quickstart¶
Five commands to feel out the surface.
1. Sync a fast view of your dialogs¶
Pulls every chat you have access to (DMs, groups, channels) into the local SQLite cache. Just metadata — names, types, ids — not messages. Fast.
2. Pull recent messages¶
Pulls the most recent 100 messages from each of your top 10 dialogs into local SQLite. Caps on --max-messages and --max-db-size-mb keep this safe to leave running.
For media:
Adds photos / voice notes / video / document files into accounts/default/media/<chat_id>/.
3. Search what you've cached¶
Substring search across all cached message text. Returns a JSON envelope with hits, chat ids, dates. Restrict to one chat with --chat <selector>.
4. Send a message¶
The --allow-write flag is required for any message that hits Telegram. Without it the command exits with a clear error — this is the write gate.
For multi-line text:
5. Listen live¶
Streams new incoming messages to stdout in JSON envelope form, also writing them to the local cache. Ctrl-C to stop. Useful as the input source for an LLM-drafted reply pipeline.
What now?¶
- Browse the full command reference
- Use it from Python via the SDK
- Read the safety model before sending or deleting at scale
- Set up multi-account if you have a personal + business split