pub struct TelegramConfigFile {
pub bot_token: String,
pub allowed_users: Vec<String>,
pub mention_only: bool,
pub strict_kb_grounding: bool,
pub model_provider_id: Option<String>,
pub model_id: Option<String>,
pub style_profile: TelegramStyleProfile,
pub security_profile: ChannelSecurityProfile,
pub webhook_secret_token: Option<String>,
}Fields§
§bot_token: String§allowed_users: Vec<String>§mention_only: bool§strict_kb_grounding: bool§model_provider_id: Option<String>§model_id: Option<String>§style_profile: TelegramStyleProfile§security_profile: ChannelSecurityProfile§webhook_secret_token: Option<String>Telegram webhook secret token. When the bot’s webhook is registered
(via setWebhook) with a secret_token parameter, every callback
POST from Telegram includes that exact value in the
x-telegram-bot-api-secret-token header. Tandem rejects callback
POSTs whose header does not match this value, preventing a third
party from spoofing button clicks at the engine. Required when the
Telegram interactions endpoint (POST /channels/telegram/interactions)
is enabled.
Trait Implementations§
Source§impl Clone for TelegramConfigFile
impl Clone for TelegramConfigFile
Source§fn clone(&self) -> TelegramConfigFile
fn clone(&self) -> TelegramConfigFile
Returns a duplicate of the value. Read more
1.0.0 · 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 TelegramConfigFile
impl Debug for TelegramConfigFile
Source§impl<'de> Deserialize<'de> for TelegramConfigFile
impl<'de> Deserialize<'de> for TelegramConfigFile
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 TelegramConfigFile
impl RefUnwindSafe for TelegramConfigFile
impl Send for TelegramConfigFile
impl Sync for TelegramConfigFile
impl Unpin for TelegramConfigFile
impl UnsafeUnpin for TelegramConfigFile
impl UnwindSafe for TelegramConfigFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more