Fix doc test that uses polling

This commit is contained in:
Waffle 2019-12-30 23:26:07 +03:00
parent b8579c52d1
commit 49771e2d89

View file

@ -39,7 +39,7 @@ type FiltersWithHandlers<'a, T, E> = Vec<FilterWithHandler<'a, T, E>>;
///
/// use teloxide::{
/// dispatching::{
/// dispatchers::filter::FilterDispatcher, updaters::polling_basic,
/// dispatchers::filter::FilterDispatcher, updaters::polling_default,
/// },
/// types::Message,
/// Bot,
@ -65,7 +65,7 @@ type FiltersWithHandlers<'a, T, E> = Vec<FilterWithHandler<'a, T, E>>;
/// .edited_message_handler(true, handle_edited_message);
///
/// // Start dispatching updates from long polling
/// dp.dispatch(polling_basic(&bot)).await;
/// dp.dispatch(polling_default(&bot)).await;
/// # }
/// ```
///