Skip to content

From 7.4 roomID is now required even if channel is passed in chat.postMessage. #35923

@jadolg

Description

@jadolg

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.

  1. Post a message via API.
logged_rocket.chat_post_message(
        "text1",
        channel="GENERAL",
    ).json()
  1. 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions