diff --git a/crates/teloxide-core/CHANGELOG.md b/crates/teloxide-core/CHANGELOG.md index 754b64ae..c91c4d2b 100644 --- a/crates/teloxide-core/CHANGELOG.md +++ b/crates/teloxide-core/CHANGELOG.md @@ -131,6 +131,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `ChatMemberKind::is_creator` (use `is_owner` instead) - `ChatMemberKind::{can_change_info, can_pin_messages, can_invite_users, can_manage_topics, can_send_polls, can_add_web_page_previews, can_send_other_messages, can_send_media_messages, can_send_messages}` (match on `ChatMemberKind` yourself) - `ChatMemberStatus::is_present` (use `ChatMemberKind::is_present` instead) + - `InlineKeyboardButton::{text, kind}` [pr954]: https://github.com/teloxide/teloxide/pull/954 [pr1013]: https://github.com/teloxide/teloxide/pull/1013 diff --git a/crates/teloxide-core/src/types/inline_keyboard_button.rs b/crates/teloxide-core/src/types/inline_keyboard_button.rs index 8d269fed..aa79288d 100644 --- a/crates/teloxide-core/src/types/inline_keyboard_button.rs +++ b/crates/teloxide-core/src/types/inline_keyboard_button.rs @@ -192,27 +192,3 @@ impl InlineKeyboardButton { Self::new(text, InlineKeyboardButtonKind::Pay(True)) } } - -impl InlineKeyboardButton { - #[deprecated( - since = "0.7.0", - note = "set correct text in the constructor or access the field directly" - )] - pub fn text(mut self, val: S) -> Self - where - S: Into, - { - self.text = val.into(); - self - } - - #[deprecated( - since = "0.7.0", - note = "set correct kind in the constructor or access the field directly" - )] - #[must_use] - pub fn kind(mut self, val: InlineKeyboardButtonKind) -> Self { - self.kind = val; - self - } -}