Mega icon

Mega

Work with Mega API

Chat Room → Remove Members

AI-generated

Summary

Remove specified users from a given chat room by providing the chat room ID and an array of user IDs to remove.

Inputs

  • Chat Room ID (required) — ID of the chat room from which members will be removed.
  • User IDs (required) — JSON array of user IDs representing the members to remove from the chat room.

Output shape

a single record

Returns a response indicating success or failure of the remove members operation. The exact structure depends on the Mega API response but generally confirms removal or provides error details.

Examples

Example 1: Remove users 123 and 456 from chat room 789

Set Chat Room ID to 789 and User IDs to [123,456]

Links

Discussion