Deprecate BotCommands::ty too

This commit is contained in:
Hirrolot 2022-10-11 15:00:02 +06:00
parent db30e9efbe
commit d90a9ff2e4
2 changed files with 2 additions and 1 deletions

View file

@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated
- `teloxide::dispatching::repls::{commands_repl, commands_repl_with_listener}` (use `CommandRepl` instead)
- `teloxide::dispatching::repls::{commands_repl, commands_repl_with_listener}`, `teloxide::utils::command::BotCommands::ty` (use `CommandRepl` instead)
## 0.11.0 - 2022-10-07

View file

@ -235,6 +235,7 @@ pub trait BotCommands: Sized {
///
/// [`commands_repl`]: (crate::repls::commands_repl)
#[must_use]
#[deprecated(note = "Use `CommandRepl` instead")]
fn ty() -> PhantomData<Self> {
PhantomData
}