botscript: create ButtonLayout enum

This commit is contained in:
Akulij 2025-05-23 16:13:56 +05:00
parent f8c63e5315
commit cbb9c0c335

View File

@ -430,6 +430,14 @@ impl BotMessage {
} }
} }
pub enum ButtonLayout {
Callback {
name: String,
literal: Option<String>,
callback: String,
},
}
impl Parcelable<BotFunction> for BotMessage { impl Parcelable<BotFunction> for BotMessage {
fn get_field(&mut self, name: &str) -> ParcelableResult<ParcelType<BotFunction>> { fn get_field(&mut self, name: &str) -> ParcelableResult<ParcelType<BotFunction>> {
match name { match name {