Add support for on-demand involvement

Fixes https://github.com/etkecc/baibot/issues/15
This commit is contained in:
Slavi Pantaleev
2024-10-01 21:06:54 +03:00
parent eae6472c7a
commit 9908512968
23 changed files with 832 additions and 329 deletions

View File

@@ -0,0 +1,13 @@
use mxlink::ThreadInfo;
use super::MessagePayload;
pub struct InteractionContext {
pub thread_info: ThreadInfo,
pub trigger: InteractionTrigger,
}
pub struct InteractionTrigger {
pub is_mentioning_bot: bool,
pub payload: MessagePayload,
}