[−][src]Function tgbot::handle_updates
pub fn handle_updates<H>(
update_method: UpdateMethod,
handler: H
) -> impl Future<Item = (), Error = ()> where
H: UpdateHandler + Send + Sync + 'static,
Processes updates from Telegram
Arguments
- update_method - How to receive updates: via webhook or long polling
- handler - Updates handler (see UpdateHandler trait)