mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 15:01:45 +01:00
[throttle] fix doc test
This commit is contained in:
parent
e757999135
commit
2d7e40a473
1 changed files with 2 additions and 1 deletions
|
@ -122,9 +122,10 @@ impl Default for Limits {
|
|||
///
|
||||
/// ## Examples
|
||||
///
|
||||
/// ```
|
||||
/// ```no_run (throttle fails to spawn task without tokio runtime)
|
||||
/// use teloxide_core::{bot::Limits, requests::RequesterExt, Bot};
|
||||
///
|
||||
/// # #[allow(deprecated)]
|
||||
/// let bot = Bot::new("TOKEN").throttle(Limits::default());
|
||||
///
|
||||
/// /* send many requests here */
|
||||
|
|
Loading…
Reference in a new issue