Remove keyboad method (typo, was fixed to keyboard in 0.2.2)

This commit is contained in:
Waffle 2021-07-04 16:30:22 +03:00
parent 2c9a4208b7
commit 44c1cfd420

View file

@ -62,17 +62,6 @@ impl ReplyMarkup {
pub fn force_reply() -> Self {
Self::ForceReply(ForceReply::new())
}
// FIXME(waffle): remove this method in the next minor version bump (0.3.0)
#[doc(hidden)]
#[deprecated = "This method has a typo in name. Use `ReplyMarkup::keyboard` instead."]
pub fn keyboad<K>(keyboard: K) -> Self
where
K: IntoIterator,
K::Item: IntoIterator<Item = KeyboardButton>,
{
Self::Keyboard(KeyboardMarkup::new(keyboard))
}
}
#[cfg(test)]