pub struct BotBuilder(/* private fields */);Implementations§
Source§impl BotBuilder
impl BotBuilder
Sourcepub fn new<T>(token: T) -> Result<Self>
pub fn new<T>(token: T) -> Result<Self>
Create a new builder with the default api url and a given token
Sourcepub fn api<T>(self, api: T) -> Self
pub fn api<T>(self, api: T) -> Self
Change the default api url from api.teleegram.org to a custom url
Auto Trait Implementations§
impl Freeze for BotBuilder
impl !RefUnwindSafe for BotBuilder
impl Send for BotBuilder
impl Sync for BotBuilder
impl Unpin for BotBuilder
impl UnsafeUnpin for BotBuilder
impl !UnwindSafe for BotBuilder
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