[−][src]Function teloxide::dialogues_repl
pub async fn dialogues_repl<'a, H, D, Fut>(bot: Bot, handler: H) where
H: Fn(UpdateWithCx<Message>, D) -> Fut + Send + Sync + 'static,
D: Default + Send + 'static,
Fut: Future<Output = DialogueStage<D>> + Send + 'static,
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.