Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kol-tweet-alert-bot

License: MIT Last commit CI Built for 1322.io PRs welcome

1322 real-time feed demo

▶ The 1322 dashboard these clients stream from — API keys, WebSocket & REST endpoints, live feed.

A real-time crypto KOL tweet alert bot in ~50 lines of Python. Watches the X (Twitter) accounts you track over a WebSocket, detects contract addresses and tickers the instant a tweet lands, and fires a Telegram alert in under a second.

Polling the X API v2 caps your worst-case latency at the poll interval and burns read quota. This bot holds a persistent WebSocket and reacts the moment a tracked KOL posts, which is the whole point for memecoin entries and KOL-driven trades.

It runs against the 1322 feed (X posts in ~150-250ms; Binance Square on the same socket with coin pairs parsed). The consumer pattern is generic.

What you need

  • Python 3.10+ and pip install websockets aiohttp
  • A 1322 API key + your WebSocket path (dashboard, after signup, from $250/mo)
  • A Telegram bot token (free, from @BotFather) and your chat id

Run

pip install websockets aiohttp
API_KEY=your-key WS_URL=wss://1322.io/your-ws-path \
TELEGRAM_TOKEN=your-bot-token TELEGRAM_CHAT=your-chat-id \
python main.py

How it works

  1. Open a WebSocket to the 1322 feed (no polling, no X developer account).
  2. For each tweet event, match a regex for Solana / EVM contract addresses.
  3. On a hit, forward the tweet + address to Telegram.

Filter on platform == "binance" too and you get Binance Square posts on the same connection.

Related

MIT licensed.

About

Real-time crypto KOL tweet alert bot (Python). WebSocket -> contract-address detection -> Telegram alert in under a second.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages