pub struct SafeVkBot { /* private fields */ }Implementations§
source§impl SafeVkBot
impl SafeVkBot
sourcepub fn command<F, Fut>(self, trigger: &str, handler: F) -> Self
pub fn command<F, Fut>(self, trigger: &str, handler: F) -> Self
Creates a new command that bot will listen
sourcepub async fn start_polling(&self, group_id: u32)
pub async fn start_polling(&self, group_id: u32)
Starts a new long poll session For more info: https://dev.vk.com/en/api/bots-long-poll/getting-started
Auto Trait Implementations§
impl !RefUnwindSafe for SafeVkBot
impl !Send for SafeVkBot
impl !Sync for SafeVkBot
impl Unpin for SafeVkBot
impl !UnwindSafe for SafeVkBot
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