mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Remove Dispatcher::setup_ctrlc_handler
This commit is contained in:
parent
2e8b4cfa19
commit
d7b954b1c6
2 changed files with 1 additions and 9 deletions
|
@ -133,6 +133,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- `ChatMemberStatus::is_present` (use `ChatMemberKind::is_present` instead)
|
||||
- `InlineKeyboardButton::{text, kind}`
|
||||
`teloxide::dispatching::{update_listeners, repls}` (use `reloxide::{update_listeners, repls}` instead)
|
||||
- `Dispatcher::setup_ctrlc_handler` (use `enable_ctrlc_handler` on the builder instead)
|
||||
|
||||
[pr954]: https://github.com/teloxide/teloxide/pull/954
|
||||
[pr1013]: https://github.com/teloxide/teloxide/pull/1013
|
||||
|
|
|
@ -482,15 +482,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
/// Setups the `^C` handler in order to call [`ShutdownToken::shutdown`]
|
||||
/// when pressed.
|
||||
#[cfg(feature = "ctrlc_handler")]
|
||||
#[deprecated(since = "0.10.0", note = "use `enable_ctrlc_handler` on builder instead")]
|
||||
pub fn setup_ctrlc_handler(&mut self) -> &mut Self {
|
||||
self.setup_ctrlc_handler_inner();
|
||||
self
|
||||
}
|
||||
|
||||
/// Returns a shutdown token, which can later be used to
|
||||
/// [`ShutdownToken::shutdown`].
|
||||
pub fn shutdown_token(&self) -> ShutdownToken {
|
||||
|
|
Loading…
Reference in a new issue