> For the complete documentation index, see [llms.txt](https://docs.3dolphins.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.3dolphins.ai/integration/channel-connector/telegram-bot/create-new-rule-of-telegram-bot.md).

# Create New Rule

This section describes how to run the telegram bot channel and how the customer message can be received as an incoming ticket to the **Inbox** tab agent by doing the following steps:

To create a new rule channel, go to the **Customer Service** menu and click the **Rule Management** menu, then you will see the Rule Management page, on the top right section click the **'+ New Rule'** button, as shown below.

![New Rule](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FnlNH4kvPJZudj0ELwbzn%2FCreate%20new%20rule%20tele%20bot.png?alt=media\&token=7e5fa542-5bfd-4516-a75d-fd651853add6)

You will see a pop-up to add a new rule channel. Select the channel by clicking the **'Add Channel'** icon (![](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MWc8sVCOdEfZL0ufGbB%2F-MWc9Mqbfuv2ov6B7-Ga%2FAdd%20Channel%20Button.png?alt=media\&token=068a1aaf-724c-463f-8566-d416e77c3838)), and then you will be asked to enter the rule name and max assignment ticket on the channel. Then, click **'Save'**.

![Add New Rule ](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2F1MAY6NjimPWEoDsVS8FZ%2FAdd%20New%20Rule.png?alt=media\&token=ecc0b1df-5780-4aeb-a82e-0d58fc05c8a2)

**Component Explanation:**

| Name           | Description                                          |
| -------------- | ---------------------------------------------------- |
| Rule Name      | The name of the channel rule to create.              |
| Max Assignment | The amount tickets are assigned to the channel rule. |

When Telegram bot channel rule has been added, you will see the rule in the list of rule management as shown in the image below.

![New Rule Added](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FRsYwHZniwgYFuk8juwPm%2FNew%20Rule%20Added.png?alt=media\&token=a3fffcac-32ba-4fed-bfdd-3406ebef70c4)

Add team members to the rule by clicking the **'Add'** icon after the rule channel is successfully created to receive an incoming message from Telegram bot.&#x20;

![Add Team Member](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FSvjA09UTBAy3Nj06q4ed%2FAdd%20Team%20Member.png?alt=media\&token=f7a1f7de-6ab6-421a-9c4d-f610ea8b2361)

When team members are successfully added, it will appear on **available teams.** You can configure priority and max assignment tickets handled by an agent.

{% hint style="info" %}
Remember to select the **'Rule Out Of Sync'** button to activate your latest recent telegram bot channel rule updates.
{% endhint %}

![Team Member Added](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2Fqkcm3dECqG0Eg0Jv0H6L%2FTeam%20Member%20Added.png?alt=media\&token=1e2b0224-4c2a-4808-8ffb-6b7680356fea)

**Component Explanation:**&#x20;

| Name           | Description                                           |
| -------------- | ----------------------------------------------------- |
| Priority       | To decide who will get a ticket first in the channel. |
| Max Assignment | The amount tickets assigned or handled for each user. |
