mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Hide the definitions of endpoints in the doc
Makes scrolling a bit easier.
Former-commit-id: 4e2265a217
This commit is contained in:
parent
2f306fe488
commit
b8b1cb0496
1 changed files with 5 additions and 0 deletions
|
@ -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`];
|
||||
|
|
Loading…
Reference in a new issue