pub struct TelegramConfig {
pub bot_token_env: String,
pub chat_ids_env: String,
pub speech_to_text: Option<SttConfig>,
}Expand description
Per-manager Telegram bot config. Both fields are env-var names —
the actual token/chat-ids live in .team/.env (kept out of git).
Fields§
§bot_token_env: StringEnv var holding the BotFather token. Default chosen by
teamctl bot setup: TEAMCTL_TG_<MANAGER>_TOKEN.
chat_ids_env: StringEnv var holding a comma-separated list of authorized chat ids.
Default: TEAMCTL_TG_<MANAGER>_CHATS.
speech_to_text: Option<SttConfig>Optional speech-to-text provider for voice messages. When set, inbound Telegram voice notes are transcribed and forwarded to the agent prefixed so the model knows the input came from audio. Absent → voice messages stay unhandled (default).
Trait Implementations§
Source§impl Clone for TelegramConfig
impl Clone for TelegramConfig
Source§fn clone(&self) -> TelegramConfig
fn clone(&self) -> TelegramConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more