create BotMessage js function handler getter

This commit is contained in:
Akulij 2025-05-31 13:42:10 +05:00
parent bc46e0fda4
commit 9cd0765030

View File

@ -506,6 +506,10 @@ impl BotMessage {
pub fn is_replace(&self) -> bool {
self.replace
}
pub fn get_handler(&self) -> Option<&BotFunction> {
self.handler.as_ref()
}
}
impl BotMessage {