pub struct Telegram {
pub bot_token: String,
pub target_chat: TargetChat,
pub disable_web_page_preview: bool,
pub disable_notification: bool,
pub parse_mode: Option<ParseMode>,
}Expand description
Telegram Notification
Documentation: https://core.telegram.org/bots/api#sendmessage
Fields§
§bot_token: StringBot Token from @BotFather in Telegram
target_chat: TargetChat§disable_web_page_preview: bool§disable_notification: bool§parse_mode: Option<ParseMode>Implementations§
Trait Implementations§
impl Eq for Telegram
impl StructuralPartialEq for Telegram
Auto Trait Implementations§
impl Freeze for Telegram
impl RefUnwindSafe for Telegram
impl Send for Telegram
impl Sync for Telegram
impl Unpin for Telegram
impl UnwindSafe for Telegram
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