pub struct TelegramConfig {
pub bot_username: String,
pub bot_token_keychain_account: String,
pub chat_id: i64,
pub privacy_mode: PrivacyMode,
pub allow_groups: Vec<i64>,
pub e2e_disclosure_acked_at: Option<DateTime<Utc>>,
}Expand description
Telegram-specific bridge configuration.
The bot token is not stored here; only the keychain account name. At
runtime the bridge resolves bot_token_keychain_account against the macOS
Keychain (or the Linux/Windows native equivalents) and keeps the secret in
memory only.
Fields§
§bot_username: StringPublic bot username from BotFather (e.g. MyAgentBot).
bot_token_keychain_account: StringKeychain account name where the bot token is stored. The service is
mur-agent; the account format is conventionally
{bridge_id}/telegram_bot_token.
chat_id: i64Telegram chat ID for the primary (DM) chat the bridge serves.
privacy_mode: PrivacyModePrivacy gate for inbound updates (default DmOnly).
allow_groups: Vec<i64>Group chat IDs allowed when privacy_mode = AllowGroups. Ignored when
privacy_mode = DmOnly.
e2e_disclosure_acked_at: Option<DateTime<Utc>>Timestamp at which the operator acknowledged the Telegram E2E
disclosure (Telegram DMs are not E2E encrypted by default). None
means the disclosure has not been acknowledged yet — the runtime can
use this to gate first-run flows.
Trait Implementations§
Source§impl Clone for TelegramConfig
impl Clone for TelegramConfig
Source§fn clone(&self) -> TelegramConfig
fn clone(&self) -> TelegramConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TelegramConfig
impl Debug for TelegramConfig
Source§impl<'de> Deserialize<'de> for TelegramConfig
impl<'de> Deserialize<'de> for TelegramConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TelegramConfig
impl PartialEq for TelegramConfig
Source§fn eq(&self, other: &TelegramConfig) -> bool
fn eq(&self, other: &TelegramConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TelegramConfig
impl Serialize for TelegramConfig
impl Eq for TelegramConfig
impl StructuralPartialEq for TelegramConfig
Auto Trait Implementations§
impl Freeze for TelegramConfig
impl RefUnwindSafe for TelegramConfig
impl Send for TelegramConfig
impl Sync for TelegramConfig
impl Unpin for TelegramConfig
impl UnsafeUnpin for TelegramConfig
impl UnwindSafe for TelegramConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.