Add back old module paths, but deprecate then

This commit is contained in:
Maybe Waffle 2022-12-12 18:29:12 +04:00
parent b680c087c5
commit dccd3ce4c7
2 changed files with 24 additions and 0 deletions

View file

@ -217,6 +217,22 @@
pub mod dialogue; pub mod dialogue;
/// This module was moved to [`teloxide::update_listeners`].
///
/// [`teloxide::update_listeners`]: crate::update_listeners
#[deprecated]
pub mod update_listeners {
pub use crate::update_listeners::*;
}
/// This module was moved to [`teloxide::repls`].
///
/// [`teloxide::repls`]: crate::repls
#[deprecated]
pub mod repls {
pub use crate::repls::*;
}
mod dispatcher; mod dispatcher;
mod distribution; mod distribution;
mod filter_ext; mod filter_ext;

View file

@ -93,6 +93,14 @@
//! //!
//! [`examples/dialogue.rs`]: https://github.com/teloxide/teloxide/blob/master/examples/dialogue.rs //! [`examples/dialogue.rs`]: https://github.com/teloxide/teloxide/blob/master/examples/dialogue.rs
/// This module was moved to [`teloxide::storage`].
///
/// [`teloxide::storage`]: crate::storage
#[deprecated]
pub mod storage {
pub use crate::storage::*;
}
pub use crate::storage::*; pub use crate::storage::*;
pub use get_chat_id::GetChatId; pub use get_chat_id::GetChatId;