# Setup Topics For Task

{% hint style="info" %}
This feature is help **Forward Channel/Group/User to one or more Topics in Group** and

**Forward one or more Topics in Group to Channel/Group/User**&#x20;
{% endhint %}

{% hint style="danger" %}

* **To do this you need to have task forward already initialized.**
* **Topics are only supported when the source or target is a Group**
  {% endhint %}

## &#x20;❇️ If you don't have any task forward. Please create first

### 👉 Create New Task AutoForward

{% hint style="info" %}
**How to get SOURCE\_CHAT\_ID and TARGET\_CHAT\_ID?**

* This commands needs input from the [**/getchanel**](/guides/get-information-channels-groups-your-account.md) or [**/getgroup**](/guides/get-information-channels-groups-your-account.md) or [**/getuser**](/guides/get-information-channels-groups-your-account.md)
* You can only use source and target id's you find via [**/getchanel**](/guides/get-information-channels-groups-your-account.md) or [**/getgroup**](/guides/get-information-channels-groups-your-account.md) or [**/getuser**](/guides/get-information-channels-groups-your-account.md)
  {% endhint %}

{% tabs %}
{% tab title="Command" %}
**Use the following syntax for adding channels/users/bots:**\
`/forward add [LABEL_TASK] [SOURCE_CHAT_ID] -> [TARGET_CHAT_ID]`

**Command other**

`/forward remove [LABEL_TASK]`

`/forward start [LABEL_TASK]`

`/forward stop [LABEL_TASK]`

**\*Arguments**

* **SOURCE\_CHAT\_ID** -> The destination chat you want to use the BOT command with. Can be user, bot, channel, group or supergroup.
* **TARGET\_CHAT\_ID** -> The destination chat you want to use the BOT command with. Can be user, bot, channel, group or supergroup.
* **LABEL\_TASK:** Label name that you want to create to control forward actions.

\=> View more at [How To Create Task Auto Forward ?](/guides/how-to-create-task-auto-forward.md)
{% endtab %}

{% tab title="Example" %}
**One to One**\
`/forward add work1 22222 -> 66666`\
\
**Many to One**\
`/forward add work1 22222,33333 -> 66666`\
\
**One to Many**\
`/forward add work1 22222 -> 66666,77777`\
\
**Many to Many**\
`/forward add work1 22222,33333 -> 66666,77777`\
\
\===============\
\
**Remove task with label work1 in list**\
`/forward remove work1`\
\
**Start task with label work1 in list**\
`/forward start work1`\
\
**Stop task with label work1 in list**\
`/forward stop work1`<br>

**Set delay 30 seconds to each message with label work1** \
`/forward delay work1 30`<br>

**Set maximum time limit to receive message edit event from SOURCE\_ID is 30 seconds with label work1** \
`/forward max_time_edit work1 30`

\
**Restart all process if any error**\
`/forward restart`\
\
**Show all list task**\
`/forward task`
{% endtab %}
{% endtabs %}

## ❇️ How to activate topic for Task Forward?&#x20;

### 👉 Forward From <mark style="color:blue;">Channel/Group/User</mark> to <mark style="color:green;">One or More Topics</mark> in Task

{% hint style="warning" %}
**Target Chat must is group and support Topics**
{% endhint %}

**Use command to get and access to Task**

{% hint style="success" %}
**/settings** or **/forward**
{% endhint %}

{% tabs %}
{% tab title="Instructions" %}
**1.** After typing the command, select **Manage Forwarding Tasks** or **Show ALL** to show all your list Task.\
**2.** Next click a **Task**  you want settings.

<figure><img src="/files/i0YMmxiBoF6sF0mBinHv" alt=""><figcaption><p>Detail Task</p></figcaption></figure>

3. Next Select **Target Topic** to **show list topic in group**
4. **At here click to topic you want activate**

{% code title="Describe Status" %}

```
🚫  is status Deactivated
✅  is status Activated
```

{% endcode %}

<figure><img src="/files/46mwYQJJtgdKA3Qf2ja3" alt=""><figcaption><p>List Topic in Group</p></figcaption></figure>

5. **Done**

<figure><img src="/files/AQoQDoEGPv6OKceZQNQ1" alt=""><figcaption><p>Activated Topics</p></figcaption></figure>
{% endtab %}
{% endtabs %}

## 👉 Forward From <mark style="color:green;">One or More Topics</mark> to <mark style="color:blue;">Channel/Group/User</mark> in Task

{% hint style="warning" %}
**Source Chat must is group and support Topics**
{% endhint %}

**Use command to get and access to Task**

{% hint style="success" %}
**/settings** or **/forward**
{% endhint %}

{% tabs %}
{% tab title="Instructions" %}
**1.** After typing the command, select **Manage Forwarding Tasks** or **Show ALL** to show all your list Task.\
**2.** Next click a **Task**  you want settings.

<figure><img src="/files/i0YMmxiBoF6sF0mBinHv" alt=""><figcaption><p>Detail Task</p></figcaption></figure>

3. Next Select **Source Topic** to **show list topic in group**
4. **At here click to topic you want activate**

{% code title="Describe Status" %}

```
🚫  is status Deactivated
✅  is status Activated
```

{% endcode %}

<figure><img src="/files/wNbbpzKViHm914KXffBy" alt=""><figcaption><p>List Topic in Group</p></figcaption></figure>

5. **Done**

<figure><img src="/files/b4WkObJXAYAVhFrevjL3" alt=""><figcaption><p>Activated Topics</p></figcaption></figure>
{% endtab %}
{% endtabs %}

{% embed url="<https://www.youtube.com/watch?v=-EHAA-wmbs0>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-v2.autoforwardtelegram.com/fundamentals/setup-topics-for-task.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
