Function teloxide::dialogues_repl [−][src]
pub async fn dialogues_repl<'a, R, H, D, Fut>(requester: R, handler: H) where
H: Fn(UpdateWithCx<R, Message>, D) -> Fut + Send + Sync + 'static,
D: Default + Send + 'static,
Fut: Future<Output = DialogueStage<D>> + Send + 'static,
R: Requester + Send + Clone + 'static,
<R as Requester>::GetUpdatesFaultTolerant: Send,
A REPL for dialogues.
All errors from an update listener and handler will be logged. This function
uses InMemStorage
.
Caution
DO NOT use this function together with Dispatcher
and other REPLs,
because Telegram disallow multiple requests at the same time from the same
bot.