# Create the Telegram Bot

## Create the bot in Telegram

* Open Telegram and start a chat with[ BotFather](https://t.me/BotFather).
* Type `/start` to begin, then follow these steps:
* Type `/newbot` to create a new bot.
* Provide a name for your bot, e.g., "AI Doge."
* Provide a unique username for your bot, e.g., "awe\_ai\_doge\_bot."
* BotFather will generate a token (not a cryptocurrency token). Copy this token, which looks like `2874385:HDH-2sue_Cweu`.
* Set the Botpic in bot settings.

## Enable Group Sharing (Optional)

If you want to add the bot to the group chats, and let the bot interact with the group members, you must enable the group sharing of the bot in Telegram.

In a DM with the BotFather, navigate to: Menu > Edit > Your Bot > Bot Settings.

Turn Group Privacy to Off.

{% hint style="info" %}
You need to kick off the bot from the group, and add it back again for the existing groups  after turning off the group privacy setting to make the bot working properly.
{% endhint %}

## Configure your Memegent

* Paste the unique username (e.g. `awe_ai_doge_bot`) of your bot into the designated field on the Awe! platform.
* Paste the BotFather token (e.g. `2874385:HDH-2sue_Cweu`) into the designated field on the Awe! platform.
* Write a welcome message: This will appear as the first message when players interact with your Memegent and on the leaderboard. Be clear and engaging, describing how players can interact with the bot.


---

# 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.aweai.fun/memegent-guide/create-the-telegram-bot.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.
