# Creating bot and channel in Telegram

## Creating bot in Telegram

* Go to the [@Botfather](https://t.me/Botfather)
* Text there /newbot
* Come up with and write the name of the bot. It will be displayed in contacts and chats. For example: Golden Drainer Logs
* Come up with and write a username. The username must be unique in Latin and end with bot For example: "golden\_drainer\_logs\_bot"

Save the Token bot for future settings

## Creating channel in Telegram

* Create a private channel, name how convenient it will be for you
* Add your bot created before into channel
* Assign bot as administrator. It is necessary to make sure that the bot has a privilege to place new records in the channel

## **Getting channel ID in telegram**

* Write any message in the channel
* Go to bot [@getmyid\_bot](https://t.me/getmyid_bot)
* Send to it a message from the channel
* Get the channel ID that always starts with "-100"

Save the channel ID for future settings


---

# 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://golden-drainer.gitbook.io/golden-drainer/fundamentals/getting-set-up/creating-bot-and-channel-in-telegram.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.
