Skip to content

IvanZhutyaev/Masslooking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Telegram Stories Automation Bot

An advanced Python script for automated viewing and reacting to Telegram stories with multi-account support and detailed analytics.

πŸš€ Features

  • Multi-Account Support: Run with 1 to 1000+ accounts simultaneously
  • Smart Story Processing: Views stories and sends reactions based on story count
  • Advanced Statistics: Real-time analytics with efficiency metrics
  • Proxy Support: MTProto and SOCKS5 proxy configuration for each account
  • Session Management: Automatic session persistence
  • Error Handling: Robust error handling with graceful recovery
  • Detailed Logging: Comprehensive logging with emoji indicators

πŸ“Š Smart Reaction System

  • 2+ stories: Views all stories, reacts to the second story
  • 1 story: Views and reacts to the single story
  • Random reactions: ❀, πŸ”₯, πŸ‘ (randomly selected)
  • Configurable delays: Random delays between 3-7 seconds to avoid detection

πŸ›  Requirements

  • Python 3.7 or newer
  • Dependencies listed in requirements.txt

πŸ“¦ Installation

  1. Clone or download the project:
git clone https://github.com/IvanZhutyaev/Masslooking.git
cd Masslooking
  1. Install dependencies:
pip install -r requirements.txt
  1. Create necessary directories:
mkdir sessions

βš™οΈ Configuration

Single Account Mode

Run the script and enter credentials when prompted:

python main.py

Multi-Account Mode

Create accounts.txt file:

# Format: api_id|api_hash|phone|proxy_json
123456|abcdef123456|+79991234567|
789012|ghijkl789012|+79997654321|{"server": "proxy.server.com", "port": 443, "secret": "eeeeeeeeeeeeeeeeeeee"}

Proxy Configuration Examples

MTProto Proxy:

{"server": "proxy.server.com", "port": 443, "secret": "eeeeeeeeeeeeeeeeeeee"}

SOCKS5 Proxy:

{"proxy_type": "socks5", "addr": "127.0.0.1", "port": 1080, "username": "user", "password": "pass"}

🎯 Usage

First Run Setup

  1. The script will create session files in sessions/ directory
  2. Enter verification code for each account (first time only)
  3. Sessions are automatically saved for future runs

Normal Operation

python main.py

The script will:

  • Rotate through all configured accounts
  • Process stories in all accessible groups and channels
  • Display real-time statistics
  • Handle errors gracefully

πŸ“ˆ Statistics Tracking

  • Total stories viewed
  • Total reactions sent
  • New subscribers gained
  • Efficiency percentage
  • Reactions by type
  • Stories by dialog
  • Session duration

πŸ”§ Advanced Features

Account Rotation

  • Automatic switching between multiple accounts
  • Configurable delays between cycles
  • Session persistence

Error Handling

  • Chat admin permission errors
  • Network timeouts
  • Invalid proxy handling
  • Rate limiting protection

Real-time Monitoring

πŸ“Š [REAL-TIME] | ⏱️ 0:15:30 | πŸ‘€ 45 | ❀️ 28 | πŸ“ˆ +5

⚠️ Important Notes

  • Rate Limiting: Random delays help avoid Telegram limits
  • Account Safety: Use proxies for mass operations
  • Permissions: Admin rights required for participant lists in some chats
  • Legal Compliance: Use in accordance with Telegram ToS

πŸ›‘οΈ Security Recommendations

  1. Use different phone numbers for multiple accounts
  2. Implement proxies for IP rotation
  3. Monitor account activity regularly
  4. Start with small delays and gradually increase

πŸ“ Project Structure

Masslooking/
β”œβ”€β”€ main.py                 # Main script
β”œβ”€β”€ accounts.txt           # Account configurations
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ sessions/             # Session storage
β”‚   β”œβ”€β”€ +123456789.session
β”‚   └── +987654321.session
└── README.md            # This file

πŸ› Troubleshooting

Common Issues

  • "pip not recognized": Use python -m pip install -r requirements.txt
  • Session errors: Delete session files and re-authenticate
  • Proxy errors: Verify proxy configuration and connectivity

Getting API Credentials

  1. Visit my.telegram.org
  2. Go to "API Development Tools"
  3. Create new application
  4. Copy api_id and api_hash

πŸ“„ License

ATTENTION: This project is protected by a Limited Access License Agreement (LAA). Any use, copying, modification or distribution is strictly prohibited without a signed Permission Agreement from the owner.

πŸ”„ Updates

For updates and additional configurations, check the project repository or contact the maintainer.


Disclaimer: Use this tool responsibly and in compliance with Telegram's Terms of Service. The developers are not responsible for any account restrictions or bans.

About

Masslooking for Telegram

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages