The Professor Bot - An advanced, versatile AI-powered Telegram bot built with Pyrogram
- πΌοΈ AI Image Generation - Convert text descriptions into stunning images using AI
- π¬ AI Chatbot - Powered by Google Gemma via Cloudflare AI
- π Meme Creation - Create custom memes (In Development)
- π QR Code Generator - Generate QR codes for any URL with custom icons
- π URL Shortener - Shorten long URLs for easy sharing
- π Text Encryption/Decryption - Secure your text with encryption
- π‘ Morse Code Converter - Convert text to/from Morse code
- π IP Tracker - Get detailed information about IP addresses
- π Domain Lookup - Comprehensive domain information and analysis
- π¦ Twitter Video Downloader - Download videos from Twitter/X
- π Website to PDF - Convert any webpage to PDF
- πΈ URL to Image - Generate screenshots of websites
- π Secure Configuration - Environment-based settings with .env support
- π Comprehensive Logging - Detailed logging for debugging
- π³ Docker Support - Easy deployment with Docker
- π― Modular Architecture - Clean, maintainable code structure
- β AI Image Generation - Text to image using Pollinations AI
- β AI Chatbot - Google Gemma 7B via Cloudflare AI
- β Text Analysis - Smart text processing and responses
- β QR Code Generator - Custom QR codes with domain-specific icons
- β URL Shortener - Link shortening service
- β Text Encryption/Decryption - Secure text encryption
- β Morse Code Converter - Text β Morse code conversion
- β IP Tracker - Detailed IP geolocation and information
- β Domain Lookup - WHOIS and domain analysis
- β Twitter Video Downloader - Download Twitter/X videos
- β Website to PDF - Convert webpages to PDF
- β URL to Screenshot - Generate website screenshots
- β Telegram Integration - Full Pyrogram bot implementation
- β Error Handling - Comprehensive error management
- β Logging System - Detailed logging for debugging
- β Docker Support - Containerized deployment
- π§ Meme Generation - Custom meme creation
- π§ Text Translation - Multi-language translation
- π§ Audio Processing - Text β Audio conversion
- π§ Video to GIF - Video format conversion
- π§ Speed Test - Internet speed testing
- π§ Instagram Downloader - Instagram media downloads
- π PDF Operations - Unlock, merge, convert PDF files
- π File Encryption - Encrypt/decrypt files
- π Face Search - Facial recognition capabilities
- π OCR (Image to Text) - Extract text from images
- π Email Search - Find emails across the internet
- π Torrent Tracker - Track torrent downloads
/start - Start the bot and see welcome message
/help - Display all available commands/imagine <text> - Generate AI image from text description
/img <text> - Alternative image generation command/qrcode <url> - Generate QR code for URL
/urlshortner <url> - Shorten long URLs
/encrypt <text> - Encrypt text securely
/decrypt <text> - Decrypt encrypted text
/morsecode <text> - Convert text to Morse code
/iptack <ip> - Track and analyze IP address
/dominlookup <domain> - Get domain information
/webtopdf <url> - Convert webpage to PDF
/urltoimage <url> - Generate website screenshot/twitter <url> - Download Twitter/X videos/see - Get photo file ID (for developers)Note: Any text message not starting with / will be processed by the AI chatbot.
- Python 3.8 or higher
- Telegram Bot Token (from @BotFather)
- API Keys for various services (see Configuration section)
-
Clone the repository:
git clone https://github.com/swadhinbiswas/AIBOT.git cd AIBOT -
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables: Create a
.envfile in the root directory with the following:# Required - Telegram Bot Configuration TELEGRAM_BOT_TOKEN=your_bot_token_here TELEGRAM_API_KEY=your_api_id_here TELEGRAM_HASH=your_api_hash_here # Required - AI Features CLOUDFLARE_API_KEY=your_cloudflare_api_key CLOUDFLARE_ID=your_cloudflare_account_id GEMINI_API_KEY=your_gemini_api_key # Optional - Additional Features SCREENSHOT_API_KEY=your_screenshot_api_key HTMLTOPDF_API_KEY=your_pdf_api_key HOSTIO=your_hostio_api_key
-
Run the bot:
python main.py
-
Build the Docker image:
docker build -t aibot . -
Run with environment file:
docker run -d --env-file .env --name aibot-container aibot
| Service | Purpose | Required | How to Get |
|---|---|---|---|
| Telegram Bot | Core bot functionality | β Yes | @BotFather |
| Telegram API | Pyrogram client | β Yes | my.telegram.org |
| Cloudflare AI | AI chatbot & image generation | β Yes | Cloudflare Dashboard |
| Service | Purpose | Required | How to Get |
|---|---|---|---|
| Google Gemini | Enhanced AI features | Google AI Studio | |
| Screenshot API | Website screenshots | Various providers | |
| HTML to PDF | PDF conversion | Various providers | |
| HostIO | Domain lookup | Host.io |
AIBOT/
βββ Bot/
β βββ API/ # External API integrations
β β βββ aiimage.py # AI image generation
β β βββ texttotext.py # AI chatbot
β β βββ encrypttext.py # Text encryption
β β βββ ...
β βββ BotFunction/ # Bot utilities
β β βββ helper.py # Message templates
β β βββ morsecode.py # Morse code converter
β β βββ qrcodehelper.py # QR code generation
β β βββ ...
β βββ settings/ # Configuration
β βββ bot.py # Main bot logic
βββ main.py # Entry point
βββ requirements.txt # Python dependencies
βββ Dockerfile # Docker configuration
βββ README.md # This file
/imagine A beautiful sunset over snow-capped mountains
/img Futuristic cityscape with flying cars at night
/qrcode https://github.com/swadhinbiswas/AIBOT
/urlshortner https://very-long-url-here.com/with/many/parameters
/encrypt "Secret message here"
/iptack 8.8.8.8
/twitter https://twitter.com/username/status/1234567890
/webtopdf https://example.com
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Name: Swadhin Biswas
- Telegram: @professor_idx
- GitHub: swadhinbiswas
- Email: [email protected]
- Repository: AIBOT on GitHub
- Issues: Report a Bug
- Discussions: GitHub Discussions
This project is licensed under the MIT License - see the LICENSE file for details.
- Pyrogram - Modern Telegram Bot API framework
- Cloudflare AI - AI model hosting
- Pollinations AI - Image generation API
- All contributors and users who help improve this project
Made with β€οΈ by Swadhin Biswas
β Star this repository if you found it helpful!