diff --git a/src/dispatching/mod.rs b/src/dispatching/mod.rs index 75030f8f..77d7a752 100644 --- a/src/dispatching/mod.rs +++ b/src/dispatching/mod.rs @@ -26,8 +26,10 @@ //! // Setup logging here... //! //! Dispatcher::new(Bot::new("MyAwesomeToken")) -//! .message_handler(|ctx: DispatcherHandlerCtx| async move { -//! ctx.reply("pong").await +//! .message_handler(|ctx: DispatcherHandlerCtx| { +//! async move { +//! ctx.answer("pong").send().await?; +//! } //! }) //! .dispatch() //! .await;