Sniffer Mode
Sniffer mode is one of BozoBot's most powerful features, allowing you to automatically detect and buy tokens as soon as they are mentioned in Telegram channels or Discord servers. This gives you a significant speed advantage over manual traders.
How It Works
- BozoBot monitors specified Telegram channels/groups or Discord servers for messages
- When a Solana token address is detected in a message, the bot verifies the token
- If the token passes your configured filters, BozoBot automatically purchases it
- The bot then monitors the token's price, executing your predefined exit strategy
Setting Up Telegram Sniffer
First-Time Setup
When you first run BozoBot in sniffer mode for Telegram, it will guide you through the authentication process:
- You'll be prompted to enter your phone number (include country code)
- Telegram will send you a verification code to enter
- If you have two-factor authentication enabled, you'll need to enter your password
- Your Telegram session will be saved in a
telegram-session
file
The telegram-session
file contains sensitive information. Do not share it with anyone.
Finding Channel IDs
To monitor specific Telegram channels:
- Use the GetMyId Bot on Telegram to find channel IDs
- Forward a message from the channel you want to monitor to this bot
- The bot will return the channel's ID
- Add these IDs to your
.env
file
TELEGRAM_IDS_TO_SNIFF=-100171231100,-1014452123,-123123123
You must forward an actual message from the channel to GetMyId Bot, not just send a link.
Configuration Parameters
Key parameters for Telegram sniffer mode:
# Sniffer
TELEGRAM_IDS_TO_SNIFF=-100123456789,-100987654321
TELEGRAM_CHECK_INTERVAL_MS=2000
SNIFFER_SKIP_MESSAGES_POSTED_MORE_THAN_SECONDS=25
SNIFFER_PROCESS_SAME_TOKEN_EVERY_SECONDS=120
SNIFFER_BLACKLIST_WORDS=sell,update,closed,sold
SNIFFER_WHITELIST_WORDS=
SNIFFER_WHITELIST_USER_IDS=
Setting Up Discord Sniffer
To monitor Discord channels:
- Enable Developer Mode in Discord settings
- Get your Discord authorization token (guide)
- Right-click on the desired channel and copy the Channel ID
- Configure in your
.env
file:
DISCORD_AUTHORIZATION_TOKEN=your_discord_token
DISCORD_IDS_TO_SNIFF=123456789012345678,987654321098765432
Token Filtering
Sniffer mode includes various filters to help you avoid scams and risky tokens:
# Social filters
HAS_ANY_SOCIAL=false
HAS_TELEGRAM=false
HAS_TWITTER=false
HAS_WEBSITE=false
CHECK_MUTABLE=false
HAS_IMAGE=false
HAS_DESCRIPTION=false
# Pool filters
MIN_SOL_IN_POOL=5
MAX_SOL_IN_POOL=0
# Other filters
CHECK_RENOUNCED_AND_FREEZABLE=true
TOP_20_HOLDERS_MAX_HOLD_PERCENT=0
BURNT_PERCENT=0
Recommended Settings for Beginners
If you're new to sniffer mode, start with these conservative settings:
QUOTE_AMOUNT=0.01
MAX_OPEN_POSITIONS=3
TRADING_LEVELS=-30%:100%,40%:100%
SNIFFER_SKIP_MESSAGES_POSTED_MORE_THAN_SECONDS=10
MIN_SOL_IN_POOL=5
SELL_SLIPPAGE=30
BUY_SLIPPAGE=20
Tips for Effective Sniffer Use
- Channel Selection: Subscribe to reputable channels that share quality tokens
- Filter Tuning: Adjust filters based on your risk tolerance
- Capital Management: Start with small trade amounts until you gain confidence
- Backtesting: Monitor channels without trading to see how tokens perform
- Multiple Channels: Diversify your signal sources for better results
Common Issues
- Authentication Problems: Ensure your Telegram account isn't banned from using bots
- Missed Tokens: Check your TELEGRAM_CHECK_INTERVAL_MS setting (lower = more frequent checks)
- False Positives: Adjust your blacklist words to filter out sell signals or token discussions
- Rate Limiting: If tracking many channels, increase your check interval to avoid Telegram API limitations
Real World Example
Imagine a scenario where a Telegram channel posts: "New gem alert! Token: 7xKXtg2CW1Hm/94 HsyQJw+vmAA4gjxrf/qSrSh21Tg= on Raydium!"
BozoBot will:
- Detect the token address in the message
- Check if it meets your filter criteria
- Purchase the token if criteria are met
- Monitor and execute your exit strategy based on TRADING_LEVELS