mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Fix Duration::from_secs(1)
This commit is contained in:
parent
4db46093cd
commit
c489e2b6da
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ impl<S, E> UpdateListener<E> for S where S: Stream<Item = Result<Update, E>> {}
|
|||
///
|
||||
/// See also: [`polling`](polling).
|
||||
pub fn polling_default(bot: Arc<Bot>) -> impl UpdateListener<RequestError> {
|
||||
polling(bot, Some(Duration::from_secs(1)), None, None)
|
||||
polling(bot, Some(Duration::from_secs(60)), None, None)
|
||||
}
|
||||
|
||||
/// Returns a long/short polling update listener with some additional options.
|
||||
|
|
Loading…
Reference in a new issue