Merge pull request #691 from teloxide/hide-huge-doc

Hide the definitions of endpoints in the doc
This commit is contained in:
Hirrolot 2022-07-24 21:23:06 +06:00 committed by GitHub
commit c7af38ebe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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:
//!
//! <details>
//! <summary>Show the endpoints</summary>
//!
//! ```no_run
//! # use teloxide::{Bot, adaptors::AutoSend};
@ -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`];