# Telegram Custom Bot

### Fields that require additional information

* ***How to Connect your Telegram Bot Account***

Create a Telegram group or use one in which you are an administrator.

Create a Telegram bot (BotFahter), configure it and add it to the group. Follow the steps in the video below to set up the bot and get the token.

<figure><img src="https://981869043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH7wmsn1nJwb7LlBvIwed%2Fuploads%2F0p6bqcxxGbrLiF3sqx5F%2FGIFTelegram.gif?alt=media&#x26;token=b8dbeea8-fa15-4ff5-a44b-b0a05e44898c" alt=""><figcaption></figcaption></figure>

1 - Go to @BOTFATHER on Telegram\
2 - To begin creating your bot, press START. Select NEW BOT from the bot's menu and pick a name for it, and then the username ends in "bot".\
3 - Here, it will show you the token ID:

<figure><img src="https://981869043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH7wmsn1nJwb7LlBvIwed%2Fuploads%2FvHPlKNHY4TVj5KaZ7ejp%2FTelegram-Token.png?alt=media&#x26;token=c8128820-232a-4412-a979-e1287abece63" alt=""><figcaption></figcaption></figure>

4 - To add the bot to your Telegram group, go to ADD MEMBER and look for your bot with the user name you've given it and add it.

* ***How to get the CHAT ID***

If the Telegram group is **public**, simply add @ to the beginning of the group name found in the link to join. Example: if the link is: t.me/chainjet the ID will be @chainjet.

<figure><img src="https://981869043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH7wmsn1nJwb7LlBvIwed%2Fuploads%2FGkA7VlFtTvAqwEUP1yo3%2FTelegram-ChatID.png?alt=media&#x26;token=70d5d3ae-3d01-44ca-b12a-1374d26ebe50" alt=""><figcaption></figcaption></figure>

For **private groups**, you must use the telegram bot, [RawDataBot](https://t.me/raw_data_bot). Search for that user in telegram and share the group invitation link. The bot will return a message with the ID, just copy it and paste in the corresponding field in your workflow.

<figure><img src="https://981869043-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH7wmsn1nJwb7LlBvIwed%2Fuploads%2FX9oMKtGDBpivciWHDkdk%2FTelegram-RawDataBot.png?alt=media&#x26;token=b0f50790-60ed-4db4-8c29-6c5050077a7a" alt=""><figcaption></figcaption></figure>

* ***Give format to Telegram texts***

For Telegram format, you have to choose the formatting style in Parse Mode. You can use HTML, MarkdownV2 and Markdown. Remember to use in the text box the same style that you selected in Parse Mode.

Here is a [link](https://core.telegram.org/bots/api#formatting-options) where you can see all the options from these three styles.
