# Sending to another chat

## What is this?

By default, the bot sends all messages to the user interacting with it. The **"Send to another chat"** feature allows you to redirect a message from a specific block to any other chat—such as a channel, a group, or another user's private chat.

This is useful for:
- Notifying an administrator about a new request.
- Posting a message to a channel based on a user action.
- Forwarding data to a service chat (e.g., a CRM bot).

## How to enable it

In the settings of any content block (Text, Image, Video, etc.), locate the **"Send to another chat"** toggle and turn it on.

## Configuring the recipient

| Field | Description |
|---|---|
| **Chat ID** | The numeric Telegram ID of the chat, channel, or user. Supports **{{variables}}**. |

To find the ID of the desired chat, add the bot to that chat and use any bot designed to retrieve a chat_id (e.g., **@userinfobot**).

### Dynamic recipient

If you need to send messages to different chats based on user data, use a variable:

```
{{admin_chat_id}}
```

This allows you, for example, to route requests to different managers depending on the selected category.

## Tips

- Add the bot to the target channel or group as an administrator beforehand; otherwise, sending will not work.
- For notifications, use a "Text" block with a template that inserts user data—such as name, phone number, or selected service—via variables.
- Save the administrative chat ID into a variable using the "Set variables" block in the start node; this way, you won't have to update the ID in every single block individually. ## Forum Thread ID

If your bot operates in a **Telegram group with topics enabled (forum)**, you can configure it to send messages to a specific topic using the **"Forum Thread ID"** option found in the block's advanced settings.

| Field | Description |
|---|---|
| **message_thread_id** | The numeric ID of the forum thread (topic). Supports **{{variables}}**. |

### The `{{MESSAGE_THREAD_ID}}` Variable

A system variable that is automatically populated with the **message_thread_id** of the incoming user message. This variable is used by default when the option is enabled.

Using **{{MESSAGE_THREAD_ID}}** allows the bot to always reply **in the same topic** where the user's message originated, without the need to hardcode a specific thread ID.

### How to Enable

1. Open the desired block → **Advanced** → select **"Forum Thread ID"**.
2. In the field that appears, leave **{{MESSAGE_THREAD_ID}}** (default) or specify a particular numeric topic ID.

### Important

- This option works only in groups with topics enabled. In standard chats, the parameter is ignored by the Telegram API.
- The bot must have permission to send messages to the target topic.