diff --git a/src/dispatching/update_listeners.rs b/src/dispatching/update_listeners.rs index 78a0001e..0c5f6f16 100644 --- a/src/dispatching/update_listeners.rs +++ b/src/dispatching/update_listeners.rs @@ -112,7 +112,7 @@ use crate::{ RequestError, }; -use std::{convert::TryInto, sync::Arc, time::Duration}; +use std::{convert::TryInto, time::Duration}; /// A generic update listener. pub trait UpdateListener: Stream> { @@ -123,7 +123,7 @@ impl UpdateListener for S where S: Stream> {} /// Returns a long polling update listener with `timeout` of 10 seconds. /// /// See also: [`polling`](polling). -pub fn polling_default(bot: Arc) -> impl UpdateListener { +pub fn polling_default(bot: Bot) -> impl UpdateListener { polling(bot, Some(Duration::from_secs(10)), None, None) }