Smart Util is the most complete bot designed to assist you with a wide array of tools.
Source CodeSmartUtilBot 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!
API_ID
API_HASH
BOT_TOKEN
SESSION_STRING
/pyro
command, then follow the instructions./info
./info
./info
.SmartUtilBot/cookies.txt
).git clone https://github.com/TheSmartDevs/SmartUtilBot.git cd SmartUtilBot
pip3 install -r requirements.txt
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
python3 main.py
screen -S SmartUtilBot python3 main.py
Detach: Ctrl+A then D. Reattach: screen -r SmartUtilBot
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.
Deploying SmartUtilBot to Heroku is a straightforward process. Follow these steps to get your bot running on Heroku:
Sign up for a free account at Heroku if you don’t already have one.
Download and install the Heroku Command Line Interface (CLI) from Heroku Dev Center.
Verify installation by running:
heroku --version
Run the following command and follow the prompts to log in:
heroku login
If you haven’t already, clone the SmartUtilBot repository:
git clone https://github.com/TheSmartDevs/SmartUtilBot.git cd SmartUtilBot
Create a new Heroku app by running:
heroku create your-app-name
Replace your-app-name
with a unique name for your app.
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
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.
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
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.
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.
Avoid common user client errors by generating a fresh SESSION_STRING using ItsSmartToolBot 🌐
/pyro
to start Pyrogram session generation.env
or config.py
Frequent restarts using user accounts can trigger Telegram's security system 👀
.env
file for secure config managementContributions are always welcome! Please follow these steps:
git checkout -b feature-branch
). 🌿git commit -m 'Add new feature'
). 💾git push origin feature-branch
). 🚀The Main Author Is Abir Arafat Chawdhury Who Made The Base Development Of SmartUtilBot
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.
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.