diff --git a/src/dispatching.rs b/src/dispatching.rs index e0440705..3be7897a 100644 --- a/src/dispatching.rs +++ b/src/dispatching.rs @@ -104,6 +104,9 @@ //! //! Finally, we define our endpoints like this: //! +//!
+//! Show the endpoints +//! //! ```no_run //! # use teloxide::{Bot, adaptors::AutoSend}; //! # use teloxide::types::{Message, CallbackQuery}; @@ -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`];