๐Ÿ’ฌChapter 3 ยท Setup ยท 5 min read

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

  1. Open Telegram (phone or desktop, either works).
  2. In the search bar, type @BotFather and tap the verified result (blue checkmark, official Telegram account).
  3. Tap Start.
  4. Type /newbot and send it.
  5. BotFather asks: "Alright, a new bot. How are we going to call it?"
  • Send a friendly display name, e.g.: My PumpStriker Bot
  1. 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_bot or johnsmith_pumpstriker_bot
  • If it's taken, try again with something more specific.
  1. ๐ŸŽ‰ BotFather replies with: "Done! Congratulations on your new bot. Use this token to access the HTTP API: 1234567890:ABCdefghijklmno..."
  2. Copy that token. Paste it into your my-pumpstriker-keys.txt file 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

  1. Send /mybots to BotFather.
  2. Tap your bot's name.
  3. Tap Bot Settings โ†’ Allow Groups? โ†’ tap to toggle OFF.
  4. Confirm: it should say "Done. Your bot can no longer be added to groups."

Set privacy mode ON

  1. Tap Group Privacy โ†’ Turn on.
  2. 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

  1. In Telegram search, type @userinfobot and tap the verified result.
  2. Tap Start.
  3. It immediately replies with your info, including a number labeled Id, e.g.:
Id: 7216306668 First: John Last: Smith Lang: en
  1. Copy that Id number.
  2. 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

  1. In Telegram search, type the username you picked (e.g. my_pumpstriker_alpha_bot).
  2. Tap your bot.
  3. 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.

  1. In @BotFather, send /setcommands.
  2. Pick your bot from the list.
  3. 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?

ProblemFix
BotFather rejected my usernamePick something more unique. Must end in bot. Try adding numbers or your name.
@userinfobot doesn't replyType /start and send it manually.
I want to use a Telegram group, not a DMCreate 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 tokenSend /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 โ†’