Skip to content

Latest commit

 

History

History
84 lines (59 loc) · 1.58 KB

File metadata and controls

84 lines (59 loc) · 1.58 KB

🚀 Quick Start Guide

Get your API Resource Availability Bot running in 5 minutes!

Prerequisites

  • Python 3.9+
  • Telegram account

Setup Steps

1️⃣ Get Bot Token (2 min)

  1. Open Telegram → Search @BotFather
  2. Send /newbot and follow instructions
  3. Copy your bot token

2️⃣ Install Dependencies (2 min)

cd d:\API_Bot

# Create virtual environment
python -m venv venv

# Activate (Windows)
venv\Scripts\activate

# Install packages
pip install -r requirements.txt

# Install Playwright
playwright install chromium

3️⃣ Configure Bot (1 min)

# Copy example environment file
copy .env.example .env

# Edit .env and add your token
TELEGRAM_BOT_TOKEN=your_token_here

4️⃣ Run Bot

# Option 1: Direct
python bot.py

# Option 2: Using script (Windows)
run_bot.bat

# Option 3: Using script (Linux/Mac)
chmod +x run_bot.sh
./run_bot.sh

5️⃣ Test Bot

  1. Open Telegram
  2. Search for your bot
  3. Send /start
  4. Send a URL: https://github.com
  5. See the magic! ✨

Common Issues

"Token is invalid" → Check .env file for correct token

"Module not found" → Run pip install -r requirements.txt

"Playwright not found" → Run playwright install chromium

Next Steps

Need Help?

  1. Check logs: bot.log
  2. Enable debug: Set LOG_LEVEL=DEBUG in .env
  3. Review documentation files

That's it! Your bot is ready to scan! 🎉