Fix the message posting HTTP API.
This commit is contained in:
parent
724787615b
commit
77bf29dabb
1 changed files with 3 additions and 2 deletions
|
@ -289,14 +289,15 @@ class MatrixMessage:
|
|||
)
|
||||
|
||||
elif message_type == MessageType.SEND:
|
||||
path = ("{api}/rooms/{room}/send/m.room.message?"
|
||||
path = ("{api}/rooms/{room}/send/m.room.message/{tx_id}?"
|
||||
"access_token={access_token}").format(
|
||||
api=MATRIX_API_PATH,
|
||||
room=room_id,
|
||||
tx_id=get_transaction_id(server),
|
||||
access_token=server.access_token)
|
||||
|
||||
self.request = HttpRequest(
|
||||
RequestType.POST,
|
||||
RequestType.PUT,
|
||||
server.address,
|
||||
server.port,
|
||||
path,
|
||||
|
|
Loading…
Reference in a new issue