help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
telegram-bot
/
__pycache__
RSK World
telegram-bot
Telegram Bot - Python + Telegram Bot API + SQLite + PHP Dashboard + Bot Commands + Automation
__pycache__
  • bot.cpython-313.pyc6 KB
  • config.cpython-313.pyc802 B
  • database.cpython-313.pyc10.8 KB
  • handlers.cpython-313.pyc30.8 KB
  • utils.cpython-313.pyc11.8 KB
styles.csssetup.pystyle.cssindex.htmlhandlers.cpython-313.pyc
setup.py
Raw Download
Find: Go to:
"""
Setup script for Telegram Bot
This script helps verify the installation and setup.
"""

# Project: Telegram Bot
# Author: Molla Samser
# Designer & Tester: Rima Khatun
# Website: https://rskworld.in
# Contact: hello@rskworld.in | +91 93305 39277
# Address: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India, 713147
# Copyright: © 2026 RSK World. All rights reserved.

import os
import sys

def check_files():
    """Check if all required files exist."""
    required_files = [
        'bot.py',
        'config.py',
        'handlers.py',
        'database.py',
        'utils.py',
        'requirements.txt',
        '.gitignore',
        'README.md',
        'dashboard.php',
        'index.html',
        'project_info.php',
        'assets/css/style.css',
        'assets/js/script.js'
    ]
    
    missing_files = []
    for file in required_files:
        if not os.path.exists(file):
            missing_files.append(file)
    
    return missing_files

def check_directories():
    """Check if all required directories exist."""
    required_dirs = [
        'assets',
        'assets/css',
        'assets/js'
    ]
    
    missing_dirs = []
    for dir_path in required_dirs:
        if not os.path.isdir(dir_path):
            missing_dirs.append(dir_path)
    
    return missing_dirs

def main():
    """Main setup check function."""
    print("=" * 50)
    print("Telegram Bot - Setup Verification")
    print("=" * 50)
    
    # Check files
    print("\n[1] Checking required files...")
    missing_files = check_files()
    if missing_files:
        print(f"[X] Missing files: {', '.join(missing_files)}")
    else:
        print("[OK] All required files are present")
    
    # Check directories
    print("\n[2] Checking required directories...")
    missing_dirs = check_directories()
    if missing_dirs:
        print(f"[X] Missing directories: {', '.join(missing_dirs)}")
    else:
        print("[OK] All required directories are present")
    
    # Check .env file
    print("\n[3] Checking configuration...")
    if os.path.exists('.env'):
        print("[OK] .env file found")
    else:
        print("[!] .env file not found (create it from .env.example)")
    
    # Check Python version
    print("\n[4] Checking Python version...")
    version = sys.version_info
    if version.major >= 3 and version.minor >= 8:
        print(f"[OK] Python {version.major}.{version.minor}.{version.micro}")
    else:
        print(f"[X] Python 3.8+ required (found {version.major}.{version.minor}.{version.micro})")
    
    # Summary
    print("\n" + "=" * 50)
    if not missing_files and not missing_dirs:
        print("[OK] Setup verification complete!")
        print("\nNext steps:")
        print("1. Install dependencies: pip install -r requirements.txt")
        print("2. Create .env file with your bot token")
        print("3. Run the bot: python bot.py")
    else:
        print("[!] Some files or directories are missing")
    print("=" * 50)

if __name__ == '__main__':
    main()

109 lines•3.1 KB
python
handlers.cpython-313.pyc

This file cannot be displayed in the browser.

Download File

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer