# 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**](https://docs-v2.autoforwardtelegram.com/guides/get-information-channels-groups-your-account) or [**/getgroup**](https://docs-v2.autoforwardtelegram.com/guides/get-information-channels-groups-your-account) or [**/getuser**](https://docs-v2.autoforwardtelegram.com/guides/get-information-channels-groups-your-account)
* You can only use source and target id's you find via [**/getchanel**](https://docs-v2.autoforwardtelegram.com/guides/get-information-channels-groups-your-account) or [**/getgroup**](https://docs-v2.autoforwardtelegram.com/guides/get-information-channels-groups-your-account) or [**/getuser**](https://docs-v2.autoforwardtelegram.com/guides/get-information-channels-groups-your-account)
  {% 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](https://docs-v2.autoforwardtelegram.com/guides/how-to-create-task-auto-forward "mention")
{% 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="https://3402573870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FddnL4cgrrb4y0Pnwxc5r%2Fuploads%2FPYTxaj5je0kgbWNoGgAL%2Fimage.png?alt=media&#x26;token=d4cddffa-2139-4f76-9674-e0719f87268f" 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="https://3402573870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FddnL4cgrrb4y0Pnwxc5r%2Fuploads%2F50351yZB8VOzpfTb3SPF%2Fimage.png?alt=media&#x26;token=dbf056c2-9e7d-430a-849e-0469422d5133" alt=""><figcaption><p>List Topic in Group</p></figcaption></figure>

5. **Done**

<figure><img src="https://3402573870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FddnL4cgrrb4y0Pnwxc5r%2Fuploads%2F1c7AP2HQYZD391rn2Qa9%2Fezgif-2-6c3cffa4f6.gif?alt=media&#x26;token=6763ad4e-bd03-41eb-90e7-a2e773eeb301" 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="https://3402573870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FddnL4cgrrb4y0Pnwxc5r%2Fuploads%2FPYTxaj5je0kgbWNoGgAL%2Fimage.png?alt=media&#x26;token=d4cddffa-2139-4f76-9674-e0719f87268f" 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="https://3402573870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FddnL4cgrrb4y0Pnwxc5r%2Fuploads%2Fc0iHkynnWnWJjbRn13E8%2Fimage.png?alt=media&#x26;token=9afd8ce6-8fda-4b1d-b4ad-2f00c94b288b" alt=""><figcaption><p>List Topic in Group</p></figcaption></figure>

5. **Done**

<figure><img src="https://3402573870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FddnL4cgrrb4y0Pnwxc5r%2Fuploads%2FJfvaMr8vH2LPpRuAs5BU%2Fezgif-2-b735eb92c8.gif?alt=media&#x26;token=4d041d9b-ef38-4e84-aa48-2fd3756cfe71" alt=""><figcaption><p>Activated Topics</p></figcaption></figure>
{% endtab %}
{% endtabs %}

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