[][src]Trait tgbot::UpdateHandler

pub trait UpdateHandler {
    fn handle<'life0, 'async_trait>(
        &'life0 mut self,
        update: Update
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

An update handler

Required methods

fn handle<'life0, 'async_trait>(
    &'life0 mut self,
    update: Update
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Handles an update

Arguments

  • update - A received update
Loading content...

Implementors

Loading content...