# Telegram Bot

{% hint style="info" %}
This bot is still in its experimental phase, and we are aiming at improving it over time.
{% endhint %}

### STARTING THE BOT

To start interacting with the bot, look for @bai\_tg\_bot directly on Telegram or [click here](https://telegram.me/bai_tg_bot)

Once the bot chat window opens, click on the start button:<br>

<figure><img src="/files/3mfARoO1LH7E6OnZMYAU" alt=""><figcaption></figcaption></figure>

You will receive the list of available commands:

### **HERE ARE THE AVAILABLE COMMANDS**

**/commands** - *click to get the list of commands.*

***

**WAVES**

**/buyw** - *click to buy $BAI token on Waves network*

*Type* **/imgw\_d** *followed by your prompt to generate an image with Dalle on the Waves Network*

*Type* **/imgw\_sd** *followed by your prompt to generate an image with Stable Diffusion on the Waves* *Network,*

***

**BASE**

**/buyba** - *click to buy $BAI token on Base network*

*Type* **/imgba\_d** *followed by your prompt to generate an image with Dalle on the Base Network*

***

**BNB**

**/buyb** - *click to buy $BAI token on BNB Chain network*

*Type* **/imgb\_d** *followed by your prompt to generate an image with Dalle on the BNB Chain Network*

***

### EXAMPLE

To generate an image using Dall-E 3 on the Base network, you will use the following prompt structure:

> /imgba\_d a hunter fighting a boss in an lovecraft world inspired of the Bloodborne video game

The bot will then generate a link for you to sign the request with your blockchain account:

<figure><img src="/files/OhaJMufTfbNZZ069KXYa" alt=""><figcaption></figcaption></figure>

By clicking the link, you will be redirected to a webpage to log into your blockchain account and sign the request:

**LOGIN**

Choose the login option you want to use.

<figure><img src="/files/JfWtfZvD2lVq4YSIdXr9" alt=""><figcaption></figcaption></figure>

**SIGN REQUEST**

Approve the spending first for EVM chain and then wait for the actual request to sign.

<figure><img src="/files/HJF92d8CnV7ZJH0WfoXp" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KZEcYu3cn1UcaOnQDaYH" alt=""><figcaption></figcaption></figure>

**WAIT FOR THE RESULT**

Once the request is signed, the web browser window will close, and you will be redirected to the Telegram window with the details of the pending request:

<figure><img src="/files/Y3tQj45BnPXhxKzNIJAG" alt=""><figcaption></figcaption></figure>

After a short wait, the result will be displayed in the Telegram windows:

<figure><img src="/files/kri9QdILFsUZg6CpvqUW" alt=""><figcaption></figcaption></figure>

This request is associated with your account and will also be available in the web UI if you connect there with the same account:

<figure><img src="/files/2zqQ6FwZ61GjZN6UDFJ0" alt=""><figcaption></figcaption></figure>


---

# 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.blockai.dev/bai/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.
