hghs
hghs copied to clipboard
Send event to room
PUT /_matrix/client/v3/rooms/:ROOM_ID/send/:EVENT_NAME/:TNX_ID
Note! Current client uses old deprecated end point POST /_matrix/client/r0/rooms/:ROOM_ID/send/:EVENT_NAME
. Refactor SimpleMatrixClient
at fi.hg.matrix to use newer API.
The request DTO is MatrixTextMessageDTO
.
The response DTO is SendEventToRoomWithTnxIdResponseDTO
.
See also
- https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3roomsroomidsendeventtypetxnid
- https://spec.matrix.org/v1.2/client-server-api/#client-behaviour-14
- https://matrix.org/docs/spec/legacy/#post-matrix-client-api-v1-rooms-roomid-send-eventtype