# Telegram Bot Guide

### Step 1 - Create a new Telegram bot for your project

* Open official Telegram bot [@BotFather](https://t.me/BotFather)&#x20;
* Create a new bot with command **/newbot**

<figure><img src="/files/eTf09kPcLy4xSTf9L89i" alt="" width="375"><figcaption></figcaption></figure>

* BotFather will send you API token of your new bot

<figure><img src="/files/eXIVGLlkkKMw4Vjy2xeM" alt="" width="375"><figcaption></figcaption></figure>

### Step 2 - Add your bot to private channels and groups

* Add your bot as admin

<figure><img src="/files/q1IozXrAty0VO232Rrxn" alt="" width="375"><figcaption></figcaption></figure>

* Add role "Add subscribers''. Any other roles are not required and not recommended

<figure><img src="/files/6u9vXvLweZCbZd2S3DVN" alt="" width="375"><figcaption></figcaption></figure>

### Step 3 - Connect your project bot to @GetPassOfficial\_bot

Go to [@GetPassOfficial\_bot](https://t.me/GetPassOfficial_bot) and send both Telegram API token and the token of your project. Done!


---

# 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.getpass.io/getpass/resources/telegram-bot-guide.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.
