# 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="https://3128375213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN1uU0cDkNOi4bUJxnLY%2Fuploads%2F5b1XZCjyFBO4F6Z651aZ%2Fimage.png?alt=media&#x26;token=a4ba2e6a-4d76-4b78-a72b-41fee11698f7" 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="https://3128375213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN1uU0cDkNOi4bUJxnLY%2Fuploads%2F04t4BBi9C0Orp3iLx1zS%2Fimage.png?alt=media&#x26;token=5a82aefd-5456-4595-a635-1c3878ec95a9" 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="https://3128375213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN1uU0cDkNOi4bUJxnLY%2Fuploads%2FYJgmJMq63Fa4Pdgaefxh%2Fimage.png?alt=media&#x26;token=d6c9225b-d69f-4c94-9f4c-f14baaedc19d" 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="https://3128375213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN1uU0cDkNOi4bUJxnLY%2Fuploads%2FUZSovuVe9DH0qNnsWIEY%2Fimage.png?alt=media&#x26;token=788d8948-c3c6-4d1f-a613-f9eac4ac1dab" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3128375213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN1uU0cDkNOi4bUJxnLY%2Fuploads%2F0ZBzNJ9nIteZf2YaLcpS%2Fimage.png?alt=media&#x26;token=85eae93e-9507-44e6-b9ac-f1908e50ce49" 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="https://3128375213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN1uU0cDkNOi4bUJxnLY%2Fuploads%2FXjyV2EARY8kxyuHtNaOy%2Fimage.png?alt=media&#x26;token=9a59e596-c71a-4467-9b99-55a0fadc943d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3128375213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN1uU0cDkNOi4bUJxnLY%2Fuploads%2FIHaydMXojGLz9OAMuqD1%2Fimage.png?alt=media&#x26;token=9c7778d9-a1b6-4f08-ab68-a4d7215a5654" 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="https://3128375213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN1uU0cDkNOi4bUJxnLY%2Fuploads%2FvYnEmRkWtu0OrZjVMf2m%2Fimage.png?alt=media&#x26;token=2b425866-e364-4ff1-a8d7-6896bd9d11d8" alt=""><figcaption></figcaption></figure>
