Developing a Telegram Bot for Token Sniping
A new token is added to a liquidity pool on Uniswap v2 — the addLiquidityETH transaction enters the mempool. You have 1–2 blocks, at most 3, to buy before the price skyrockets. Manual monitoring is out of the question: a human physically cannot react in time. You need a bot that listens to the mempool, decodes pending transactions, and sends a buy transaction with the appropriate gasPrice within 50–200 milliseconds of detection. This isn't about buying cheaper — it's about buying before anyone else realizes the token exists.
We develop such bots — fast, reliable, with honeypot verification and MEV protection. Our team has 10+ years of blockchain development experience and has completed 50+ sniping projects. We use our own nodes, Flashbots bundles, and buy/sell simulation via eth_call, reducing latency to 20–50 ms and increasing trade success by 40–60%.
"Flashbots is a system for sending transactions directly to the validator, bypassing the public mempool." — Wikipedia
Why Latency Is the Biggest Enemy in Sniping?
Most open-source snipers are written with ethers.js using standard WebSocket connections to public nodes (Infura, Alchemy). The delay between a network event and receiving a notification via Infura is 300–800 ms. By that time, MEV bots on co-located servers have already executed 2–3 transactions. A real sniper architecture requires:
- A dedicated node (go-ethereum or Erigon) with a direct WebSocket to
localhost— latency drops to 20–50 ms. - Subscribing to
newPendingTransactionsinstead oflogs— catching the transaction before it's included in a block. - Decoding the
input dataof pending transactions using the Uniswap Router ABI.
Without a dedicated node or access to a private mempool (Flashbots, bloXroute), competing with professional MEV bots is nearly impossible. We use Erigon with --txpool.lifetime 1m for memory optimization, and on BSC we use geth with parallel block loading.
How to Protect Against Honeypot Tokens?
Out of 100 new tokens per day on BSC or Ethereum, roughly 60–70 are outright scams. A contract can:
- Block
transferfor any address except the owner (classic honeypot: you can buy, but you can't sell). - Impose a 99% tax on sales through custom logic in
_transfer. - Add a blacklist after sniping.
Without simulating both a buy and a sell before execution, a bot regularly loses money on honeypot contracts. We use eth_call to simulate two consecutive transactions: swap ETH→Token and immediately Token→ETH. If the sell simulation reverts or returns less than 50% of the input, the token is skipped. Additional checks include static bytecode analysis of the token contract for functions with signatures characteristic of blacklist/whitelist patterns, and verification via the HoneyPot.is API.
| Honeypot Type | How to Detect |
|---|---|
| Blacklist after purchase | Bytecode analysis for mapping(address => bool) and require(!blacklisted[msg.sender]) |
| High tax on sale | Sell simulation: if return < 50% |
| Time-based restrictions | Analysis of onlyOwner modifiers and timestamp conditions |
We ensure your bot never falls for a honeypot through a combination of dynamic simulation and static analysis.
Why Solana Requires a Separate Approach?
Solana uses a slot confirmation mechanism rather than a mempool. There are no pending transactions like on EVM. We connect via gRPC Yellowstone, a Google service that streams new blocks and transactions. Our Solana architecture:
- Subscription to
SubscribeRequestwith a filter for programs (Raydium, Pump.fun). - Instruction decoding via Anchor IDL.
- Sending a buy transaction with
computeUnitPricefor priority inclusion.
| Component | EVM | Solana |
|---|---|---|
| Data source | newPendingTransactions |
gRPC Yellowstone |
| Prioritization | Flashbots / bloXroute | computeUnitPrice |
| Token analysis | eth_call simulation |
Static bytecode analysis of SPL token |
How Do We Protect the Trade from Sandwich Attacks?
MEV bots can intercept your transaction, placing a buy before it and a sell after — this is a sandwich attack. On Ethereum, we use Flashbots bundles: the transaction is sent directly to the validator, invisible to the public mempool. On BSC, we use bloXroute BDN with a private stream. This eliminates frontrunning and sandwich attacks.
Additionally, we configure slippage and deadline to minimize losses from price slippage. We use multicall for atomic transaction bundles.
What Is Included in the Development?
- Analysis of target chains, DEXes, and strategy (pure sniping, listing, presale).
- Mempool monitoring and transaction decoding.
- Token analysis module (buy/sell simulation, bytecode).
- Executor with Flashbots bundle / direct tx support.
- Telegram interface for management and notifications.
- Node deployment and configuration (Erigon/geth), monitoring via Prometheus + Grafana.
- Documentation and training for the client's team.
- Post-launch support (1 month).
The Development and Setup Process
- Analysis (1–2 days). Determine target chains, DEXes, and strategy (pure sniping on liquidity addition, listing event sniping, presale sniping). Different strategies require different entry points in the mempool.
- Development (5–10 days). Build the monitor, decoder, token analyzer, and executor. Parallel integration with Telegram Bot API for management and notifications. Request development and we'll configure the bot for your infrastructure.
- Testnet Testing (2–3 days). Deploy our own Uniswap v2 on Sepolia, simulate liquidity addition, verify the entire pipeline. Test honeypot scenarios with contracts where selling is blocked.
- Deployment and Node Setup. Help with hosting selection (proximity to validators is critical), Erigon/geth configuration, firewall, monitoring via Prometheus + Grafana. Train the team on how to operate the bot.
How Long Does Development Take?
A basic bot for one chain and one DEX — 1–1.5 weeks. Multi-chain with Flashbots integration, Solana via Yellowstone, and advanced anti-honeypot analysis — 2–3 weeks. Timelines also depend on client infrastructure: availability of own node, UI management requirements. Cost is determined after discussing the stack and target chains.
| Stack | Estimated Timeline |
|---|---|
| Single chain (Ethereum / BSC / Base / Arbitrum) + single DEX | 1–1.5 weeks |
| Multi-chain (2+ chains) | 2–2.5 weeks |
| Full stack (EVM + Solana) | 2–3 weeks |
Get a consultation for your project — contact us via Telegram. Reach out for a detailed discussion of the stack and receive a preliminary estimate within a day.







