mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Deprecate BotCommands::ty
too
This commit is contained in:
parent
db30e9efbe
commit
d90a9ff2e4
2 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Deprecated
|
### 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
|
## 0.11.0 - 2022-10-07
|
||||||
|
|
||||||
|
|
|
@ -235,6 +235,7 @@ pub trait BotCommands: Sized {
|
||||||
///
|
///
|
||||||
/// [`commands_repl`]: (crate::repls::commands_repl)
|
/// [`commands_repl`]: (crate::repls::commands_repl)
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[deprecated(note = "Use `CommandRepl` instead")]
|
||||||
fn ty() -> PhantomData<Self> {
|
fn ty() -> PhantomData<Self> {
|
||||||
PhantomData
|
PhantomData
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue