A powerful Telegram bot that saves and forwards restricted content from channels and groups with advanced login features
- ๐ Save restricted content from any Telegram channel/group
- ๐ Secure login system with string session management
- ๐ Multiple link formats support (public, private, bot links)
- ๐ฆ Bulk message forwarding with range support
- ๐ฏ Easy to use with simple commands
- ๐ง User-friendly interface with intuitive commands
Variable | Description | Get From |
---|---|---|
API_ID |
Your Telegram API ID | my.telegram.org |
API_HASH |
Your Telegram API Hash | my.telegram.org |
BOT_TOKEN |
Your Bot Token | @BotFather |
ADMINS |
Admin User IDs (comma-separated) | Your Telegram User ID |
DB_URI |
MongoDB Database URL | MongoDB Atlas |
ERROR_MESSAGE |
Show error messages (True /False ) |
Set to True or False |
- Go to MongoDB Atlas
- Create a free account
- Create a new cluster
- Get your connection string (replace
<password>
with your actual password)
Command | Description |
---|---|
/start |
Start the bot and check if it's working |
/help |
Get detailed usage instructions |
/login |
Login with your Telegram string session |
/logout |
Logout from your current session |
/cancel |
Cancel any ongoing operation |
Simply send the post link:
https://t.me/channelname/123
- First send the invite link (if not already a member):
https://t.me/+AbCdEfGhIjKlMnOp
- Then send the post link:
https://t.me/c/1234567890/123
Send the link in this format:
https://t.me/b/botusername/123
Send links with range format:
https://t.me/channelname/100-110
https://t.me/c/1234567890/50 - 60
- Fork this repository
- Create account on Scalingo
- Create new app
- Connect your GitHub repository
- Add environment variables in Settings
- Deploy!
- Fork this repository
- Create account on Back4App
- Create new app
- Connect GitHub repository
- Set environment variables
- Deploy container
- Fork this repository
- Create account on Koyeb
- Create new app from GitHub
- Select your repository
- Add environment variables in Settings
- Deploy with auto-scaling
- Fork this repository
- Create account on PythonAnywhere
- Open Bash console
- Clone your repository:
git clone https://github.com/UTK253/PERSONAL_SRCB
- Install requirements:
pip3.10 install --user -r requirements.txt
- Set environment variables in Files tab
- Create a task to run
python3.10 bot.py
# Clone repository
git clone https://github.com/UTK253/PERSONAL_SRCB
cd PERSONAL_SRCB
# Install dependencies
pip3 install -r requirements.txt
# Set environment variables
export API_ID="your_api_id"
export API_HASH="your_api_hash"
export BOT_TOKEN="your_bot_token"
export ADMINS="your_admin_id"
export DB_URI="your_mongodb_uri"
export ERROR_MESSAGE="True"
# Run the bot
python3 bot.py
- Open Google Colab
- Create new notebook
- Run this code:
!git clone https://github.com/UTK253/PERSONAL_SRCB
%cd PERSONAL_SRCB
!pip install -r requirements.txt
# Set your variables
import os
os.environ['API_ID'] = 'your_api_id'
os.environ['API_HASH'] = 'your_api_hash'
os.environ['BOT_TOKEN'] = 'your_bot_token'
os.environ['ADMINS'] = 'your_admin_id'
os.environ['DB_URI'] = 'your_mongodb_uri'
os.environ['ERROR_MESSAGE'] = 'True'
!python bot.py
# Build image
docker build -t personal-save-bot .
# Run container
docker run -e API_ID="your_api_id" \
-e API_HASH="your_api_hash" \
-e BOT_TOKEN="your_bot_token" \
-e ADMINS="your_admin_id" \
-e DB_URI="your_mongodb_uri" \
-e ERROR_MESSAGE="True" \
personal-save-bot
# Install Python 3.10+
# Clone repository
git clone https://github.com/UTK253/PERSONAL_SRCB
cd PERSONAL_SRCB
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Create .env file with your variables
echo "API_ID=your_api_id" > .env
echo "API_HASH=your_api_hash" >> .env
echo "BOT_TOKEN=your_bot_token" >> .env
echo "ADMINS=your_admin_id" >> .env
echo "DB_URI=your_mongodb_uri" >> .env
echo "ERROR_MESSAGE=True" >> .env
# Run the bot
python bot.py
- Never share your API credentials with anyone
- Use environment variables for sensitive data, don't hardcode them
- Keep your bot token secure and regenerate if compromised
- MongoDB URI should be kept private and secure
- Test with small message ranges before bulk forwarding
- Bot not responding: Check if bot token is correct
- Login issues: Verify API_ID and API_HASH
- Database errors: Ensure MongoDB URI is correct and accessible
- Permission errors: Make sure the account has access to the source chat
- Check the bot's
/help
command - Verify all environment variables are set correctly
- Check bot logs for error messages
- Ensure your account is not restricted
- Special Thanks: B3ASTX BOTS
This project is licensed under the MIT License - see the LICENSE file for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
If this project helped you, please give it a โญ star!
Need help? Contact @B3ASTX_BOTS
Made with โค๏ธ by BEAST X BOTS