mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
parent
1ff0440762
commit
8cecf248b2
1 changed files with 6 additions and 5 deletions
|
@ -24,13 +24,14 @@ use crate::{
|
|||
/// Builder for polling update listener.
|
||||
///
|
||||
/// Can be created by [`Polling::builder`].
|
||||
#[non_exhaustive]
|
||||
#[must_use = "`PollingBuilder` is a builder and does nothing unless used"]
|
||||
pub struct PollingBuilder<R> {
|
||||
bot: R,
|
||||
timeout: Option<Duration>,
|
||||
limit: Option<u8>,
|
||||
allowed_updates: Option<Vec<AllowedUpdate>>,
|
||||
drop_pending_updates: bool,
|
||||
pub bot: R,
|
||||
pub timeout: Option<Duration>,
|
||||
pub limit: Option<u8>,
|
||||
pub allowed_updates: Option<Vec<AllowedUpdate>>,
|
||||
pub drop_pending_updates: bool,
|
||||
}
|
||||
|
||||
impl<R> PollingBuilder<R>
|
||||
|
|
Loading…
Add table
Reference in a new issue