Hide the definitions of endpoints in the doc

Makes scrolling a bit easier.


Former-commit-id: 4e2265a217
This commit is contained in:
Hirrolot 2022-07-24 19:03:37 +06:00
parent 2f306fe488
commit b8b1cb0496

View file

@ -104,6 +104,9 @@
//!
//! Finally, we define our endpoints like this:
//!
//! <details>
//! <summary>Show the endpoints</summary>
//!
//! ```no_run
//! # use teloxide::{Bot, adaptors::AutoSend};
//! # use teloxide::types::{Message, CallbackQuery};
@ -147,6 +150,8 @@
//! }
//! ```
//!
//! </details>
//!
//! Each parameter is supplied as a dependency by teloxide. In particular:
//! - `bot: AutoSend<Bot>` comes from the dispatcher (see below);
//! - `msg: Message` comes from [`Update::filter_message`];