Skip to main content

Module telegram_config

Module telegram_config 

Source
Expand description

Track C2 — Telegram bridge configuration schema.

TelegramConfig lives alongside an agent’s routes.yaml (typically as telegram.yaml) and captures everything needed for the runtime to long-poll Telegram and route messages to the C1 bridge plumbing. Bot tokens are never stored in this struct — only the macOS Keychain account name that references them (bot_token_keychain_account).

PrivacyMode controls whether the bridge accepts updates from groups in addition to direct messages. The default is DmOnly — the safest setting for a personal companion. AllowGroups requires allow_groups[] to be populated explicitly.

Structs§

TelegramConfig
Telegram-specific bridge configuration.

Enums§

PrivacyMode
Whether the bridge accepts updates from groups in addition to direct messages. Default = DmOnly.