# Create federated rooms

## Creating a channel/group

<figure><img src="https://2853711081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhHYdqf09DtGwAq3Pa3FU%2Fuploads%2Fgit-blob-5bcf71dc1d5444d3b48239e8df41f6c72d0bc51e%2FPremium.svg?alt=media" alt=""><figcaption></figcaption></figure>

You can create federated [channels](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/user-guides/rooms/channels) having both Rocket.Chat and other federated users.

To create a federated channel,

* Start by [creating a channel](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/user-guides/rooms/channels/create-a-new-channel) within your Rocket.Chat workspace.
* Enable **Federated.**
* Add members (optional) and click **Create.** See [invite-external-users-to-your-rocket.chat-server](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/workspace-administration/settings/federation/matrix-bridge/matrix-users-guide/invite-external-users-to-your-rocket.chat-server "mention") for the syntax to add users from other federated servers to your room.

{% hint style="info" %}

* Federated Channels can not be *Encrypted, Read-Only, or Broadcasted* for now.
* You cannot create [Discussions](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/user-guides/rooms/discussions) within federated Channels.
  {% endhint %}

Whenever your user is invited to participate in a federated room created in an external server, the server name is displayed at the top of that room. This helps the user to differentiate when there are multiple rooms with the same name but all from different servers.

## Creating a 1:1 Direct Message

You can create a [Direct Message](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/user-guides/rooms/direct-messages) with other federated users in your workspace.

Create a federated DM with these steps:

* Create a[ 1:1 Direct Message](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/user-guides/rooms/direct-messages/create-a-new-direct-message)
* Set the federated user you wish to message following the [syntax to invite external users](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/workspace-administration/settings/federation/matrix-bridge/invite-external-users-to-your-rocket.chat-server#invite-external-users-syntax).

## Creating a Multi-user Direct Message

<figure><img src="https://2853711081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhHYdqf09DtGwAq3Pa3FU%2Fuploads%2Fgit-blob-5bcf71dc1d5444d3b48239e8df41f6c72d0bc51e%2FPremium.svg?alt=media" alt=""><figcaption></figcaption></figure>

Using [Multi Direct Message](https://funke-olasupo.gitbook.io/user-guide/user-guides/rooms/direct-messages#types-of-direct-messages), you can send Direct Messages to multiple users(federated or not) at once.

To create a federated Multi Direct Message:

* Create a [Multi-user Direct Message](https://funke-olasupo.gitbook.io/user-guide/user-guides/rooms/direct-messages#types-of-direct-messages)
* Select the users to whom you want to send messages following the [syntax to invite external users](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/workspace-administration/settings/federation/matrix-bridge/invite-external-users-to-your-rocket.chat-server#invite-external-users-syntax).

## Slash commands

You can also use an available slash command to create and invite users for Direct Messages rooms. The general syntax for the available slash command is:

```
/federation dm @username:server.com
```

Where:

* `/federation`: The slash command itself.
* `dm`: The command you want to execute, *dm* is the only one available now.
* `@username:server.com`: The external user you want to invite, using the [syntax to invite external users.](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/workspace-administration/settings/federation/matrix-bridge/invite-external-users-to-your-rocket.chat-server#invite-external-users-syntax)

## Creating a Multi-user Direct Message using slash command

<figure><img src="https://2853711081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhHYdqf09DtGwAq3Pa3FU%2Fuploads%2Fgit-blob-5bcf71dc1d5444d3b48239e8df41f6c72d0bc51e%2FPremium.svg?alt=media" alt=""><figcaption></figcaption></figure>

To create Multi-user Direct Messages using slash commands, you need to open the message box in any channel and type the following command using the [syntax to invite external users](https://funke-olasupo.gitbook.io/user-guide/use-rocket.chat/workspace-administration/settings/federation/matrix-bridge/invite-external-users-to-your-rocket.chat-server#invite-external-users-syntax):

```
/federation dm @username1:server.com @username2:server2.com
```

## Editing a federated room

Only the **name** and **topic** of a federated room can be edited after it is created.

## Deleting a federated room

Deleting federated rooms are not supported for now.

{% hint style="warning" %}
Federation does not support sending invite links for now.
{% endhint %}
