Fix Duration::from_secs(1)

This commit is contained in:
Temirkhan Myrzamadi 2020-02-25 04:24:25 +06:00
parent 4db46093cd
commit c489e2b6da

View file

@ -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.