Get real-time notifications when your liquidation bot finds opportunities and executes trades!
- Open Telegram and search for @BotFather
- Send
/newbotcommand - Follow the prompts:
- Choose a name for your bot (e.g., "My Liquidation Bot")
- Choose a username (must end in 'bot', e.g., "my_liquidation_bot")
- Save the bot token - you'll need this for your
.envfile
Example token format: 123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ
- Search for @userinfobot on Telegram
- Send
/startcommand - The bot will reply with your user ID - this is your TELEGRAM_CHAT_ID
- Send a message to your newly created bot (the one from Step 1)
- Visit this URL in your browser (replace TOKEN with your bot token):
https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates - Look for
"chat":{"id":123456789- that number is your TELEGRAM_CHAT_ID
Add these lines to your .env file:
# Telegram Bot Token from @BotFather
TELEGRAM_BOT_TOKEN=123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ
# Your Telegram Chat ID
TELEGRAM_CHAT_ID=123456789Restart your bot:
npm run devYou should receive a notification when the bot starts!
Your bot will send notifications for:
🚀 Bot Started - When the bot initializes
- Shows wallet address
- Shows minimum profit threshold
🔔 Opportunity Found - When a liquidatable position is detected
- Estimated profit
- Vault details
- Timestamp
✅ Liquidation Successful - When a liquidation completes
- Actual profit earned
- Transaction link to Solscan
- Vault and signature details
❌ Liquidation Failed - If a liquidation attempt fails
- Expected profit
- Error message
- Vault details
🛑 Bot Stopped - When you stop the bot (Ctrl+C)
- Total statistics
- Success/failure counts
- Total profit earned
- Check bot token: Make sure it's copied correctly with no extra spaces
- Check chat ID: Use @userinfobot to verify your chat ID
- Start your bot: Send
/startto your bot in Telegram first - Check logs: Look for "Telegram notifications: ENABLED" in console output
- Verify your bot token is valid
- Make sure you've sent
/startto your bot - Check your internet connection
- Ensure the chat ID is a number (no quotes needed in .env)
To disable Telegram notifications, simply:
- Remove or comment out the
TELEGRAM_BOT_TOKENandTELEGRAM_CHAT_IDlines in.env - Or leave them empty
The bot will work fine without Telegram - it just won't send notifications.
- Your bot token is like a password - keep it secure!
- Never share your
.envfile or commit it to git - Only you and your bot can see the messages
- The bot uses Telegram's secure API
Happy liquidating! 🚀