Skip to main content

Build a Telegram Scam Alert Bot

In this guide, you will build a Python Telegram bot that automatically listens to messages in your crypto trading group, extracts Ethereum/EVM contract addresses, queries the CrypTech API, and replies with a clean security report.

Step 1: Install Dependencies

Install pyTelegramBotAPI and requests:

Step 2: Bot Script (bot.py)

Create a file named bot.py and replace YOUR_TELEGRAM_BOT_TOKEN and YOUR_CRYPTECH_API_KEY:

Step 3: Run the Bot

Run the script in your terminal:
Now invite your bot into your Telegram group or send it a direct message containing any contract address (e.g., 0x514910771AF9Ca656af840dff83E8264EcF986CA). The bot will reply with a risk card.