SmartUtilBot

Smart Util is the most complete bot designed to assist you with a wide array of tools.

Source Code

Introduction Of SmartUtilBot

SmartUtilBot is a powerful Telegram bot built with Python and Pyrogram, designed to provide a wide range of utilities including credit card scraping, media downloading, AI-powered tools, and more. This bot leverages multiple APIs and services to deliver robust functionality for both casual and advanced users. ✨ Built With Python Language And Pyrogram Telethon Frameworks!

SmartUtilBot's Features 🌟

  • CC Generator: ᴄᴄ_✘_ɢᴇɴᴇʀᴀᴛᴏʀ↯
  • Check BIN: ᴄʜᴇᴄᴋ_✘_ʙɪɴ↯
  • Check Multiple BINs: ᴄʜᴇᴄᴋ_ᴍᴜʟᴛɪᴘʟᴇ_✘_ʙɪɴꜱ↯
  • Extrapolate Credit Card Data from BIN: ᴇxᴛʀᴀᴘᴏʟᴀᴛᴇ_ᴄʀᴇᴅɪᴛ_✘_ᴄᴀʀᴅ_ᴅᴀᴛᴀ_ꜰʀᴏᴍ_ʙɪɴ↯
  • Find Top BIN from Combo: ꜰɪɴᴅ_ᴛᴏᴘ_✘_ʙɪɴ_ꜰʀᴏᴍ_ᴄᴏᴍʙᴏ↯
  • CC Scrape: ᴄᴄ_✘_ꜱᴄʀᴀᴘᴇ↯
  • Filter CCs: ꜰɪʟᴛᴇʀ_✘_ᴄᴄꜱ↯
  • Multi CC Generator: ᴍᴜʟᴛɪ_ᴄᴄ_✘_ɢᴇɴᴇʀᴀᴛᴏʀ↯
  • Multi CC Scrape: ᴍᴜʟᴛɪ_ᴄᴄ_✘_ꜱᴄʀᴀᴘᴇ↯
  • Find BIN Database: ꜰɪɴᴅ_ʙɪɴ_✘_ᴅᴀᴛᴀʙᴀꜱᴇ↯
  • Filter Specific BIN Cards: ꜰɪʟᴛᴇʀ_ꜱᴘᴇᴄɪꜰɪᴄ_✘_ʙɪɴ_ᴄᴀʀᴅꜱ↯
  • Remove Specific BIN Cards: ʀᴇᴍᴏᴠᴇ_ꜱᴘᴇᴄɪꜰɪᴄ_✘_ʙɪɴ_ᴄᴀʀᴅꜱ↯

  • Talk to SmartAI: ᴛᴀʟᴋ_ᴛᴏ_✘_ꜱᴍᴀʀᴛᴀɪ↯
  • Ask Question to ChatGPT-3.5: ᴀꜱᴋ_ǫᴜᴇꜱᴛɪᴏɴ_✘_ᴛᴏ_ᴄʜᴀᴛɢᴘᴛ_3.5↯
  • Ask Question to ChatGPT-4: ᴀꜱᴋ_ǫᴜᴇꜱᴛɪᴏɴ_✘_ᴛᴏ_ᴄʜᴀᴛɢᴘᴛ_4↯
  • Ask Question to Gemini AI: ᴀꜱᴋ_ǫᴜᴇꜱᴛɪᴏɴ_✘_ᴛᴏ_ɢᴇᴍɪɴɪ_ᴀɪ↯
  • Image Analysis: ɪᴍᴀɢᴇ_ᴀɴᴀʟʏꜱɪꜱ_✘_ʀᴇᴀᴅ_ɪᴍᴀɢᴇ↯

  • Download Facebook Video: ᴅᴏᴡɴʟᴏᴀᴅ_✘_ꜰᴀᴄᴇʙᴏᴏᴋ_ᴠɪᴅᴇᴏ↯
  • Download Pinterest Video: ᴅᴏᴡɴʟᴏᴀᴅ_✘_ᴘɪɴᴛᴇʀᴇꜱᴛ_ᴠɪᴅᴇᴏ↯
  • Download YouTube Video: ᴅᴏᴡɴʟᴏᴀᴅ_✘_ʏᴏᴜᴛᴜʙᴇ_ᴠɪᴅᴇᴏ↯
  • Download Instagram Reels: ᴅᴏᴡɴʟᴏᴀᴅ_✘_ɪɴꜱᴛᴀɢʀᴀᴍ_ʀᴇᴇʟꜱ↯
  • Download Spotify Track: ᴅᴏᴡɴʟᴏᴀᴅ_✘_ꜱᴘᴏᴛɪꜰʏ_ᴛʀᴀᴄᴋ↯
  • Download YouTube Audio: ᴅᴏᴡɴʟᴏᴀᴅ_✘_ʏᴏᴜᴛᴜʙᴇ_ᴀᴜᴅɪᴏ↯
  • Convert Video to Audio: ᴄᴏɴᴠᴇʀᴛ_ᴠɪᴅᴇᴏ_✘_ᴛᴏ_ᴀᴜᴅɪᴏ↯
  • Extract YouTube Video Tags: ᴇxᴛʀᴀᴄᴛ_✘_ʏᴏᴜᴛᴜʙᴇ_ᴠɪᴅᴇᴏ_ᴛᴀɢꜱ↯
  • Download YouTube Thumbnail: ᴅᴏᴡɴʟᴏᴀᴅ_✘_ʏᴏᴜᴛᴜʙᴇ_ᴛʜᴜᴍʙɴᴀɪʟ↯

  • Base64 Encode: ʙᴀꜱᴇ64_✘_ᴇɴᴄᴏᴅᴇ↯
  • Base64 Decode: ʙᴀꜱᴇ64_✘_ᴅᴇᴄᴏᴅᴇ↯
  • Base32 Encode: ʙᴀꜱᴇ32_✘_ᴇɴᴄᴏᴅᴇ↯
  • Base32 Decode: ʙᴀꜱᴇ32_✘_ᴅᴇᴄᴏᴅᴇ↯
  • Binary Encode: ʙɪɴᴀʀʏ_✘_ᴇɴᴄᴏᴅᴇ↯
  • Binary Decode: ʙɪɴᴀʀʏ_✘_ᴅᴇᴄᴏᴅᴇ↯
  • Hex Encode: ʜᴇx_✘_ᴇɴᴄᴏᴅᴇ↯
  • Hex Decode: ʜᴇx_✘_ᴅᴇᴄᴏᴅᴇ↯
  • Octal Encode: ᴏᴄᴛᴀʟ_✘_ᴇɴᴄᴏᴅᴇ↯
  • Octal Decode: ᴏᴄᴛᴀʟ_✘_ᴅᴇᴄᴏᴅᴇ↯
  • Reverse Text: ʀᴇᴠᴇʀꜱᴇ_✘_ᴛᴇxᴛ↯
  • Transform to Capital Letters: ᴛʀᴀɴꜱꜰᴏʀᴍ_ᴛᴏ_✘_ᴄᴀᴘɪᴛᴀʟ_ʟᴇᴛᴛᴇʀꜱ↯
  • Transform to Small Letters: ᴛʀᴀɴꜱꜰᴏʀᴍ_ᴛᴏ_✘_ꜱᴍᴀʟʟ_ʟᴇᴛᴛᴇʀꜱ↯
  • Count Words: ᴄᴏᴜɴᴛ_✘_ᴡᴏʀᴅꜱ↯
  • Fix Word Spelling: ꜰɪx_✘_ᴡᴏʀᴅ_ꜱᴘᴇʟʟɪɴɢ↯
  • Fix Grammatical Issues: ꜰɪx_✘_ɢʀᴀᴍᴍᴀᴛɪᴄᴀʟ_ɪꜱꜱᴜᴇꜱ↯
  • Check Synonyms and Antonyms: ᴄʜᴇᴄᴋ_✘_ꜱʏɴᴏɴʏᴍꜱ_ᴀɴᴅ_ᴀɴᴛᴏɴʏᴍꜱ↯
  • Check Pronunciation: ᴄʜᴇᴄᴋ_✘_ᴘʀᴏɴᴜɴᴄɪᴀᴛɪᴏɴ↯

  • Filter/Extract Mails: ꜰɪʟᴛᴇʀ_✘_ᴇxᴛʀᴀᴄᴛ_ᴍᴀɪʟꜱ↯
  • Filter/Extract Mail Passwords: ꜰɪʟᴛᴇʀ_✘_ᴇxᴛʀᴀᴄᴛ_ᴍᴀɪʟ_ᴘᴀꜱꜱᴡᴏʀᴅꜱ↯
  • Mail-Pass Scrape for GC Targets: ᴍᴀɪʟ-ᴘᴀꜱꜱ_✘_ꜱᴄʀᴀᴘᴇ_ꜰᴏʀ_ɢᴄ_ᴛᴀʀɢᴇᴛꜱ↯
  • Mail Scrape: ᴍᴀɪʟ_✘_ꜱᴄʀᴀᴘᴇ↯
  • Generate Random Mail with Password: ɢᴇɴᴇʀᴀᴛᴇ_✘_ʀᴀɴᴅᴏᴍ_ᴍᴀɪʟ_ᴡɪᴛʜ_ᴘᴀꜱꜱᴡᴏʀᴅ↯
  • Check Recent 10 Mails: ᴄʜᴇᴄᴋ_✘_ʀᴇᴄᴇɴᴛ_10_ᴍᴀɪʟꜱ↯

  • Start Smart Tool: ꜱᴛᴀʀᴛ_ꜱᴍᴀʀᴛ_✘_ᴛᴏᴏʟ↯
  • Pyrogram Telegram String Session: ᴘʏʀᴏɢʀᴀᴍ_✘_ᴛᴇʟᴇɢʀᴀᴍ_ꜱᴛʀɪɴɢ_ꜱᴇꜱꜱɪᴏɴ↯
  • Telethon Telegram String Session: ᴛᴇʟᴇᴛʜᴏɴ_✘_ᴛᴇʟᴇɢʀᴀᴍ_ꜱᴛʀɪɴɢ_ꜱᴇꜱꜱɪᴏɴ↯
  • Real-Time Token Prices: ʀᴇᴀʟ-ᴛɪᴍᴇ_✘_ᴛᴏᴋᴇɴ_ᴘʀɪᴄᴇꜱ↯
  • Latest P2P Trades in BDT: ʟᴀᴛᴇꜱᴛ_✘_ᴘ2ᴘ_ᴛʀᴀᴅᴇꜱ_ɪɴ_ʙᴅᴛ↯
  • Top Gainers List: ᴛᴏᴘ_✘_ɢᴀɪɴᴇʀꜱ_ʟɪꜱᴛ↯
  • Top Losers List: ᴛᴏᴘ_✘_ʟᴏꜱᴇʀꜱ_ʟɪꜱᴛ↯
  • Get Info About Stripe Key: ɢᴇᴛ_✘_ɪɴꜰᴏ_ᴀʙᴏᴜᴛ_ꜱᴛʀɪᴘᴇ_ᴋᴇʏ↯
  • Check Stripe Key Live or Dead: ᴄʜᴇᴄᴋ_✘_ꜱᴛʀɪᴘᴇ_ᴋᴇʏ_ʟɪᴠᴇ_ᴏʀ_ᴅᴇᴀᴅ↯
  • Get IP Information: ɢᴇᴛ_✘_ɪᴘ_ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ↯
  • Proxy Checker: ᴘʀᴏxʏ_✘_ᴄʜᴇᴄᴋᴇʀ↯
  • Take Website Screenshot: ᴛᴀᴋᴇ_✘_ᴡᴇʙꜱɪᴛᴇ_ꜱᴄʀᴇᴇɴꜱʜᴏᴛ↯
  • Download Website Source Code: ᴅᴏᴡɴʟᴏᴀᴅ_✘_ᴡᴇʙꜱɪᴛᴇ_ꜱᴏᴜʀᴄᴇ_ᴄᴏᴅᴇ↯
  • Extract Text from Image: ᴇxᴛʀᴀᴄᴛ_✘_ᴛᴇxᴛ_ꜰʀᴏᴍ_ɪᴍᴀɢᴇ↯
  • Generate Random Address: ɢᴇɴᴇʀᴀᴛᴇ_✘_ʀᴀɴᴅᴏᴍ_ᴀᴅᴅʀᴇꜱꜱ↯
  • Check Weather: ᴄʜᴇᴄᴋ_✘_ᴡᴇᴀᴛʜᴇʀ↯
  • Get User/Group/Channel Info: ɢᴇᴛ_✘_ᴜꜱᴇʀ_ɢʀᴏᴜᴘ_ᴄʜᴀɴɴᴇʟ_ɪɴꜰᴏ↯
  • Get Full Help: ɢᴇᴛ_✘_ꜰᴜʟʟ_ʜᴇʟᴘ↯
  • Broadcast Admin: ʙʀᴏᴀᴅᴄᴀꜱᴛ_✘_ᴀᴅᴍɪɴ↯
  • Restart Me: ʀᴇꜱᴛᴀʀᴛ_✘_ᴍᴇ↯
  • Change Entire Database Settings: ᴄʜᴀɴɢᴇ_✘_ᴇɴᴛɪʀᴇ_ᴅᴀᴛᴀʙᴀꜱᴇ↯

SmartUtilBot Requirements 💥🌟

Environment Variables ⚙️

Mandatory Vars ⁉️

Recommended Optional Vars 🌟

Optional Vars ❄️

Installation 🚀

  1. Clone the Repository:
    git clone https://github.com/TheSmartDevs/SmartUtilBot.git
    cd SmartUtilBot
  2. Install Dependencies:
    pip3 install -r requirements.txt
  3. Set Up Environment Variables:

    Create a .env file or edit config.py. Example:

    API_ID=your_api_id
    API_HASH=your_api_hash
    BOT_TOKEN=your_bot_token
    SESSION_STRING=your_session_string
  4. Deploy the Bot:
    • Direct Deployment:
      python3 main.py
    • Run with Screen:
      screen -S SmartUtilBot
      python3 main.py

      Detach: Ctrl+A then D. Reattach: screen -r SmartUtilBot

    • Docker Compose:
      docker compose up --build --remove-orphans

      Stop: docker compose down

Note: Configure variables in .env or config.py. Default YouTube cookies path: SmartUtilBot/cookies.txt. Use /settings command for dynamic adjustments.

Deploy to Heroku With One Click

Deploy

Heroku Deployment Tutorial With CLI

Deploying SmartUtilBot to Heroku is a straightforward process. Follow these steps to get your bot running on Heroku:

  1. Create a Heroku Account:

    Sign up for a free account at Heroku if you don’t already have one.

  2. Install Heroku CLI:

    Download and install the Heroku Command Line Interface (CLI) from Heroku Dev Center.

    Verify installation by running:

    heroku --version
  3. Log in to Heroku:

    Run the following command and follow the prompts to log in:

    heroku login
  4. Clone the Repository:

    If you haven’t already, clone the SmartUtilBot repository:

    git clone https://github.com/TheSmartDevs/SmartUtilBot.git
    cd SmartUtilBot
  5. Create a Heroku App:

    Create a new Heroku app by running:

    heroku create your-app-name

    Replace your-app-name with a unique name for your app.

  6. Install FFmpeg Buildpack:

    Heroku requires a buildpack to install FFmpeg. Add the FFmpeg buildpack to your app:

    heroku buildpacks:add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git -a your-app-name

    Add the Python buildpack as well:

    heroku buildpacks:add heroku/python -a your-app-name
  7. Set Environment Variables:

    Configure the mandatory and optional environment variables (see Environment Variables) in Heroku:

    heroku config:set API_ID=your_api_id -a your-app-name
    heroku config:set API_HASH=your_api_hash -a your-app-name
    heroku config:set BOT_TOKEN=your_bot_token -a your-app-name
    heroku config:set SESSION_STRING=your_session_string -a your-app-name
    heroku config:set OPENAI_API_KEY=your_openai_key -a your-app-name
    heroku config:set MONGO_URL=your_mongo_url -a your-app-name
    heroku config:set DATABASE_URL=your_database_url -a your-app-name
    heroku config:set DB_URL=your_db_url -a your-app-name

    Add optional variables as needed, such as GOOGLE_API_KEY, GROQ_API_KEY, etc.

  8. Deploy the Bot:

    Push the code to Heroku:

    git push heroku main

    Scale the dyno to run the bot:

    heroku ps:scale worker=1 -a your-app-name
  9. Verify Deployment:

    Check the logs to ensure the bot is running:

    heroku logs --tail -a your-app-name

    Interact with your bot on Telegram to confirm it’s operational.

  10. Managing FFmpeg on Heroku:

    The FFmpeg buildpack automatically installs FFmpeg during deployment. No manual installation is required, unlike local setups.

    If you encounter issues with FFmpeg, ensure the buildpack was added correctly and redeploy:

    git commit --allow-empty -m "Redeploy for FFmpeg"
    git push heroku main

Note: Heroku’s free tier has limitations, such as dyno hours and sleep periods. Consider upgrading to a paid plan for persistent bot availability. Ensure your .env or config.py settings are correctly mirrored in Heroku’s config vars.

Handling YouTube Download Errors with Cookies 🍪

To avoid YouTube sign-in or bot protection errors, use a cookie file:

Steps to Export and Use Cookies

  1. Create a Dedicated Chrome Profile: Use a new profile for security.
  2. Install a Cookie Management Extension: E.g., "Cookie Editor".
  3. Export Cookies from YouTube: Log in, export in Netscape format.
  4. Save the Cookies File: Place as cookies.txt in SmartUtilBot/cookies.txt.

Managing Cookies 💡

🌟 Handling Scrapper Utils Errors with SESSION_STRING 💫

Avoid common user client errors by generating a fresh SESSION_STRING using ItsSmartToolBot 🌐

✨ Quick Steps to Generate SESSION_STRING

  1. 🚀 Go to 👉 @ItsSmartToolBot
  2. 💬 Send /pyro to start Pyrogram session generation
  3. 🆔 Enter your API ID from my.telegram.org
  4. 🔐 Enter your API HASH
  5. 📞 Input your phone number in international format (e.g., +880...) 🇧🇩
  6. ✅ Send the OTP you receive (e.g., AB2 BC4 CD5 EF6 GH6) — the bot auto-extracts it as 24566
  7. 💾 Check Saved Messages for your SESSION_STRING
  8. 🛠️ Add it to your .env or config.py

❄️ Important Notice: Avoid Frequent Restarts ⚠️

Frequent restarts using user accounts can trigger Telegram's security system 👀

💥 You Might Face:

⭐️ To Stay Safe:

✅ Pro Tips

Contributing 🌟

Contributions are always welcome! Please follow these steps:

  1. Fork the repository. 🍴
  2. Create a new branch (git checkout -b feature-branch). 🌿
  3. Commit your changes (git commit -m 'Add new feature'). 💾
  4. Push to the branch (git push origin feature-branch). 🚀
  5. Open a Pull Request. 📬

Project Contributors

Main Author 🧑‍💻

The Main Author Is Abir Arafat Chawdhury Who Made The Base Development Of SmartUtilBot

Contributing Author 🧑‍💻

The Contributor For Many Features Adding Scripts AND APIS He Is Just A PRO

For inquiries or feedback, please feel free to reach out via Telegram.

Ethical Notice 🔔

Ethics Reminder: Simply modifying a few lines of code does not constitute original authorship. When forking a project, always fork responsibly and give proper credit to the original creators.