mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
Merge pull request #691 from teloxide/hide-huge-doc
Hide the definitions of endpoints in the doc
This commit is contained in:
commit
c7af38ebe3
1 changed files with 6 additions and 1 deletions
|
@ -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`];
|
||||
|
|
Loading…
Reference in a new issue