[][src]Function teloxide::repl

pub async fn repl<H, Fut, E>(bot: Bot, handler: H) where
    H: Fn(UpdateWithCx<Message>) -> Fut + Send + Sync + 'static,
    Fut: Future<Output = Result<(), E>> + Send + 'static,
    Result<(), E>: OnError<E>,
    E: Debug + Send

A REPL for messages.

All errors from an update listener and a handler will be logged.

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.