feat(#1681): add matrix send_file + send_file_dm tools
This commit is contained in:
parent
1b0f035a05
commit
cbbd6f3d6e
6 changed files with 218 additions and 20 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue