feat(#1681): add matrix send_file + send_file_dm tools

This commit is contained in:
damocles 2026-06-15 17:02:30 +02:00 committed by mara
commit cbbd6f3d6e
6 changed files with 218 additions and 20 deletions

View file

@ -65,6 +65,16 @@ async fn dispatch(req: DaemonRequest, client: &Client) -> DaemonResponse {
handlers::send_message(client, &room, &body).await
}
DaemonRequest::SendDm { user_id, body } => handlers::send_dm(client, &user_id, &body).await,
DaemonRequest::SendFile {
room,
path,
caption,
} => handlers::send_file(client, &room, &path, caption.as_deref()).await,
DaemonRequest::SendFileDm {
user_id,
path,
caption,
} => handlers::send_file_dm(client, &user_id, &path, caption.as_deref()).await,
DaemonRequest::SendReaction {
room,
event_id,