add enum ReplyMarkup

This commit is contained in:
P0lunin 2019-09-11 19:53:35 +03:00
parent 8f18b5ba02
commit a6c8942063

View file

@ -0,0 +1,15 @@
use crate::core::types::{
InlineKeyboardMarkup,
ReplyKeyboardMarkup,
ReplyKeyboardRemove,
ForceReply,
};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ReplyMarkup {
Inline(InlineKeyboardMarkup),
Reply(ReplyKeyboardMarkup),
ReplyKeyboardRemove(ReplyKeyboardRemove),
ForceReply(ForceReply),
}