migration to JS engine #1

Merged
akulij merged 131 commits from dev into main 2025-05-31 08:49:52 +00:00
Showing only changes of commit 3bd16a58cd - Show all commits

View File

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