Don't export REPLs to teloxide::dispatching

This commit is contained in:
Temirkhan Myrzamadi 2020-07-31 00:56:39 +06:00
parent 7097dd4f34
commit 62bf55c8e6
5 changed files with 11 additions and 7 deletions

View file

@ -43,20 +43,17 @@
//! [`tokio::sync::mpsc::UnboundedReceiver`]: https://docs.rs/tokio/0.2.11/tokio/sync/mpsc/struct.UnboundedReceiver.html
//! [examples/dialogue_bot]: https://github.com/teloxide/teloxide/tree/master/examples/dialogue_bot
mod commands_repl;
pub mod dialogue;
mod dispatcher;
mod dispatcher_handler;
mod dispatcher_handler_rx_ext;
mod repl;
pub(crate) mod repls;
pub mod update_listeners;
mod update_with_cx;
pub use commands_repl::{commands_repl, commands_repl_with_listener};
pub use dispatcher::Dispatcher;
pub use dispatcher_handler::DispatcherHandler;
pub use dispatcher_handler_rx_ext::DispatcherHandlerRxExt;
pub use repl::{repl, repl_with_listener};
use tokio::sync::mpsc::UnboundedReceiver;
pub use update_with_cx::UpdateWithCx;

View file

@ -51,7 +51,7 @@ where
/// bot.
///
/// [`Dispatcher`]: crate::dispatching::Dispatcher
/// [`commands_repl`]: crate::dispatching::commands_repl()
/// [`commands_repl`]: crate::dispatching::repls::commands_repl()
/// [`UpdateListener`]: crate::dispatching::update_listeners::UpdateListener
pub async fn commands_repl_with_listener<'a, Cmd, H, Fut, L, ListenerE, HandlerE>(
bot: Bot,

View file

@ -0,0 +1,5 @@
mod commands_repl;
mod repl;
pub use commands_repl::{commands_repl, commands_repl_with_listener};
pub use repl::{repl, repl_with_listener};

View file

@ -42,7 +42,7 @@ where
/// bot.
///
/// [`Dispatcher`]: crate::dispatching::Dispatcher
/// [`repl`]: crate::dispatching::repl()
/// [`repl`]: crate::dispatching::repls::repl()
/// [`UpdateListener`]: crate::dispatching::update_listeners::UpdateListener
pub async fn repl_with_listener<'a, H, Fut, E, L, ListenerE>(bot: Bot, handler: H, listener: L)
where

View file

@ -42,7 +42,9 @@
#![forbid(unsafe_code)]
pub use bot::{Bot, BotBuilder};
pub use dispatching::{commands_repl, commands_repl_with_listener, repl, repl_with_listener};
pub use dispatching::repls::{
commands_repl, commands_repl_with_listener, repl, repl_with_listener,
};
pub use errors::{ApiErrorKind, DownloadError, KnownApiErrorKind, RequestError};
mod errors;