Telegram Mini Apps
How to create a Web3 Game from scratch and add it to Telegram Mini Apps
Before we add our Web3 game to Telegram Mini Apps you can create a Web3 game in 1 minute.
You need to go to BotFather to create a bot and app in Telegram.

Create New Bot
To start you need to press the Start button or send:
/start
To create a new bot you need to send:
/newbot
Give your bot a name and send it to chat:
MyTgGame
Now we need to give username to the bot so it ends in “bot” and send:
MyTgGame_bot
Your bot has been created. Now you can move on to creating the app.
Create New App
To create a new web app you need to send:
/newapp
The app binds to a specific bot, you need to send its name with an @ sign:
@MyTgGame_bot
Next, enter the name of the web application:
My Tg Game
After that, you need to enter a short description:
My Tg Game description
Next, you need to send a picture of your app with a strict resolution of 640×360 pixels.
After that you need to upload the GIF or send it:
/empty
Now we need to paste the link to the game we got here, you need to copy the link belonging to the yellow “Play Now Web Application” button, which is in Dashboard

Now please choose a short name for your web app: 3-30 characters, a-zA-Z0-9_. This short name will be used in URLs like t.me/MyTgGame_bot/myapp and serve as a unique identifier for your web app.
myapp
Now you have your own game in Telegram!
Server settings
Now we need to get a Bot Token:
/mybots
Select your bot by clicking on the bot name and click API Token.
The obtained API token should be inserted into your Title Settings. To do this, go to Settings -> Integrations in the menu.

In the Telegram section there is a field “Telegram Bot Token”, there you need to insert your API token obtained from @BotFather and click “Save Settings” button.
After successfully saving the settings, click on the “Register Telegram Webhook” button.
And in “Platform Settings” under “Telegram Mini Apps”, change the “Referral App Link” field to the link of your Telegram game. This is necessary for the referral link to work correctly in your Telegram Mini App.

Congratulations! You now have a game in Telegram Mini Apps! Now you can set up advertising and start earning from your game!
Last updated
Was this helpful?