Create a Telegram Bot with BotFather (5 Min)
By Bathyr Devs ยท Published June 24, 2026
5 minutes start to finish. You will create a Telegram bot, get its token, and find your chat ID so PumpStriker can DM you signals.
What we're building
A Telegram bot that only you can talk to. It will:
- Receive every signal the PumpStriker engine fires
- Show you Buy / Sell / Settings buttons
- Live-update your open position cards every 5 seconds
- Auto-sell when TP / SL / Trailing Stop hits
It's your bot, you own it, you control it, no one else can use it.
Part 1: Create the bot with @BotFather
Steps
- Open Telegram (phone or desktop, either works).
- In the search bar, type
@BotFatherand tap the verified result (blue checkmark, official Telegram account). - Tap Start.
- Type
/newbotand send it. - BotFather asks: "Alright, a new bot. How are we going to call it?"
- Send a friendly display name, e.g.:
My PumpStriker Bot
- BotFather asks: "Good. Now let's choose a username for your bot. It must end in
bot."
- Send a unique username, e.g.:
my_pumpstriker_alpha_botorjohnsmith_pumpstriker_bot - If it's taken, try again with something more specific.
- ๐ BotFather replies with: "Done! Congratulations on your new bot. Use this token to access the HTTP API:
1234567890:ABCdefghijklmno..." - Copy that token. Paste it into your
my-pumpstriker-keys.txtfile under:TG_BOT_TOKEN = 1234567890:ABC...
โ ๏ธ CRITICAL: This token is the master key to your bot. Anyone with it can decrypt your wallet file (the bot uses it as the encryption seed). Never share it. Never post it. Never commit it to git.
Part 2: Lock down your bot (1 minute)
While still chatting with @BotFather, run these commands to make your bot private and safe:
Disable joining groups
- Send
/mybotsto BotFather. - Tap your bot's name.
- Tap Bot Settings โ Allow Groups? โ tap to toggle OFF.
- Confirm: it should say "Done. Your bot can no longer be added to groups."
Set privacy mode ON
- Tap Group Privacy โ Turn on.
- Confirm: "Done. Privacy mode is enabled." (The bot only sees messages addressed to it.)
These two settings make sure no one can accidentally (or maliciously) add your bot to a group chat to spam or hijack it.
Part 3: Get your Telegram Chat ID
PumpStriker needs to know which chat to send signals to. That's your TG_CHAT_ID.
Easiest method: use @userinfobot
- In Telegram search, type
@userinfobotand tap the verified result. - Tap Start.
- It immediately replies with your info, including a number labeled Id, e.g.:
Id: 7216306668 First: John Last: Smith Lang: en
- Copy that Id number.
- Paste it into your text file:
TG_CHAT_ID = 7216306668
๐ก If your number is positive (no minus sign), you're set up as a personal chat. Perfect for a single-user bot. Leave it as-is.
If you want signals in a private group (e.g. so you can mute notifications independently), create a Telegram group, add your bot to it, then send the group a message and check the group ID via
@userinfobot(the group ID will start with-100...). Use that negative number instead.
Part 4: Start your bot once (required)
Telegram requires you to tap Start on your bot at least once before it can DM you. Otherwise nothing will arrive.
Steps
- In Telegram search, type the username you picked (e.g.
my_pumpstriker_alpha_bot). - Tap your bot.
- Tap Start.
That's it. Your bot is now reachable.
Part 5: Optional but pro, add slash commands
This makes your bot look professional by showing a / menu in Telegram with all the commands.
- In @BotFather, send
/setcommands. - Pick your bot from the list.
- Send this block, exactly:
menu - ๐ฆ Open main menu wallet - ๐ Wallet & balance positions - ๐ Open positions & live PnL orders - ๐ Active limit orders buy - ๐ข Buy a token: /buy <CA> [SOL] sell - ๐ด Sell a token: /sell <CA> [%] import - ๐ Import wallet private key rebates - ๐ฆ MEV backrun rebates check - ๐ Run safety check on a contract
BotFather will confirm: "Success! Command list updated."
Final check, your text file should now have
TG_BOT_TOKEN = 1234567890:ABCdefghijklmno... TG_CHAT_ID = 7216306668
What could go wrong?
| Problem | Fix |
|---|---|
| BotFather rejected my username | Pick something more unique. Must end in bot. Try adding numbers or your name. |
| @userinfobot doesn't reply | Type /start and send it manually. |
| I want to use a Telegram group, not a DM | Create the group, add the bot (after re-enabling "Allow Groups" temporarily), get the group ID with @userinfobot posted in the group. |
| I lost my bot token | Send /mybots to @BotFather, pick your bot, tap API Token, then Revoke current token to get a new one. You'll need to update .env and restart the bot. |
โก๏ธ Next chapter: 4. Install PumpStriker on Your Computer, we download the bot and run it locally.
PumpStriker, the self-hosted Solana memecoin striker.
Your keys. Your machine. One-time $350, MIT licensed, no subscription.
See pricing โ