mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
add enum ReplyMarkup
This commit is contained in:
parent
8f18b5ba02
commit
a6c8942063
1 changed files with 15 additions and 0 deletions
15
src/core/types/reply_markup.rs
Normal file
15
src/core/types/reply_markup.rs
Normal 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),
|
||||||
|
}
|
Loading…
Reference in a new issue