diff --git a/src/dispatching/update_listeners.rs b/src/dispatching/update_listeners.rs index 0b1190e3..f5bdba74 100644 --- a/src/dispatching/update_listeners.rs +++ b/src/dispatching/update_listeners.rs @@ -116,11 +116,11 @@ pub trait UpdateListener: Stream> { } impl UpdateListener for S where S: Stream> {} -/// Returns a long polling update listener with the default configuration. +/// Returns a long polling update listener with `timeout` of 1 minute. /// /// See also: [`polling`](polling). pub fn polling_default(bot: Arc) -> impl UpdateListener { - polling(bot, None, None, None) + polling(bot, Some(Duration::from_secs(60)), None, None) } /// Returns a long/short polling update listener with some additional options.