diff --git a/src/dispatching.rs b/src/dispatching.rs index e0440705..c0418a18 100644 --- a/src/dispatching.rs +++ b/src/dispatching.rs @@ -102,7 +102,10 @@ //! -- no problem, reuse [`dptree::Handler::filter`], [`dptree::case!`], and //! other combinators in the same way! //! -//! Finally, we define our endpoints like this: +//! Finally, we define our endpoints via simple `async` functions like this: +//! +//!
+//! Show the endpoints //! //! ```no_run //! # use teloxide::{Bot, adaptors::AutoSend}; @@ -147,6 +150,8 @@ //! } //! ``` //! +//!
+//! //! Each parameter is supplied as a dependency by teloxide. In particular: //! - `bot: AutoSend` comes from the dispatcher (see below); //! - `msg: Message` comes from [`Update::filter_message`];