Description:
While testing the integration with v7.4.0, looks like roomID is now required even if channel is passed in chat.postMessage.
This change, if intentional, is not documented.
See here the discussion.
Steps to reproduce:
note: I'm going to use the Python wrapper since it's easier to explain that way in examples but the procedure is the same with curl.
- Post a message via API.
logged_rocket.chat_post_message(
"text1",
channel="GENERAL",
).json()
- Now try Responding to that message
logged_rocket.chat_post_message(
"text2",
channel="GENERAL",
tmid=msg1_id,
).json()
Actual behavior:
The API will respond this to the second call:
{'error': "must have required property 'roomId'\n must NOT have additional properties\n must match exactly one schema in oneOf [invalid-params]", 'errorType': 'invalid-params', 'success': False}
Server Setup Information:
- Version of Rocket.Chat Server: 7.4 to 7.5
- License Type:
- Number of Users:
- Operating System:
- Deployment Method: Docker
- Number of Running Instances:
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version:
Client Setup Information
- Desktop App or Browser Version:
- Operating System:
Additional context
Relevant logs:
Description:
While testing the integration with v7.4.0, looks like
roomIDis now required even ifchannelis passed in chat.postMessage.This change, if intentional, is not documented.
See here the discussion.
Steps to reproduce:
note: I'm going to use the Python wrapper since it's easier to explain that way in examples but the procedure is the same with curl.
Actual behavior:
The API will respond this to the second call:
{'error': "must have required property 'roomId'\n must NOT have additional properties\n must match exactly one schema in oneOf [invalid-params]", 'errorType': 'invalid-params', 'success': False}Server Setup Information:
Client Setup Information
Additional context
Relevant logs: