pub struct SyncBot { /* private fields */ }Expand description
A synchronous, blocking Telegram bot client backed by ureq.
This wraps the raw JSON API; all methods are blocking and return
Result<serde_json::Value, BotError>. Use the async Bot
for production bots; SyncBot is best for scripts and CLI tools.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncBot
impl !RefUnwindSafe for SyncBot
impl Send for SyncBot
impl Sync for SyncBot
impl Unpin for SyncBot
impl UnsafeUnpin for SyncBot
impl !UnwindSafe for SyncBot
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