add replace flag to BotMessage
This commit is contained in:
parent
474795bd99
commit
3bd16a58cd
@ -479,6 +479,8 @@ pub struct Button {
|
||||
pub struct BotMessage {
|
||||
// buttons: Vec<Button>
|
||||
literal: Option<String>,
|
||||
#[serde(default)]
|
||||
replace: bool,
|
||||
buttons: Option<KeyboardDefinition>,
|
||||
state: Option<String>,
|
||||
|
||||
@ -492,6 +494,10 @@ impl BotMessage {
|
||||
..self.clone()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_replace(&self) -> bool {
|
||||
self.replace
|
||||
}
|
||||
}
|
||||
|
||||
impl BotMessage {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user