Remove InlineKeyboardButton::{text,kind}

This commit is contained in:
Maybe Waffle 2024-02-13 20:43:15 +01:00
parent 11858ffb74
commit b79c1f978d
2 changed files with 1 additions and 24 deletions

View file

@ -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

View file

@ -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<S>(mut self, val: S) -> Self
where
S: Into<String>,
{
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
}
}