create BotMessage.literal getter

This commit is contained in:
Akulij 2025-05-23 16:20:21 +05:00
parent 506fdcb260
commit 1730107e9a

View File

@ -455,6 +455,10 @@ impl BotMessage {
None => Ok(None), None => Ok(None),
} }
} }
pub fn literal(&self) -> Option<&String> {
self.literal.as_ref()
}
} }
pub enum ButtonLayout { pub enum ButtonLayout {