Skip to content

Telegram report automatize | sessions | scraping web | smtp

Notifications You must be signed in to change notification settings

uixss/MASSACRE-TG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

97 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎫 Coding Services SEND DM 🎫

πŸ“ Requirements

  • Python 3.8+
  • Telethon Library (pip install telethon)

πŸ“‘ Entity Processor

Processes Telegram entities (users, channels, and groups) and saves detailed information in a JSON file.

  • πŸ› οΈ Automatically loads or creates Telegram sessions.
  • πŸ“‚ Processes users, groups, and channels (public or private).
  • πŸ“Š Retrieves member, admin, and statistical information.
  • πŸ’Ύ Saves processed data to valid_data.json.
async def process_entity(client, entity_input, admin_limit=100):
    if not entity_input:
        return {"status": "invalid_input", "details": "Empty or None input", "link": "N/A", "input": entity_input}

    try:
        entity = await client.get_entity(entity_input)
        link = f"https://t.me/{entity.username}" if hasattr(entity, 'username') and entity.username else "N/A"

        if isinstance(entity, types.User):
            return {
                "status": "success",
                "input": entity_input,
                "type": "user",
                "link": link,
                "info": {
                    "id": entity.id,
                    "user": entity_input,  
                    "username": entity.first_name or "N/A",
                    "name": f"{entity.first_name or ''} {entity.last_name or ''}".strip(),
                    "is_bot": "Yes" if entity.bot else "No",
                },
            }

        # Procesar canales o grupos
        elif isinstance(entity, types.Channel):
            full_chat = await client(functions.channels.GetFullChannelRequest(entity))
            chat_type = "public" if entity.username else "private"
            metadata = {
                "id": entity.id,
                "title": entity.title,
                "username": f"@{entity.username or 'N/A'}",
                "members": full_chat.full_chat.participants_count,
                "description": full_chat.full_chat.about or "N/A",
                "admins": [],
            }

            try:
                offset, total_admins = 0, []
                while True:
                    admins_data = await client(functions.channels.GetParticipantsRequest(
                        channel=entity,
                        filter=types.ChannelParticipantsAdmins(),
                        offset=offset,
                        limit=admin_limit,
                        hash=0,
                    ))
                    total_admins.extend([
                        {
                            "id": admin.user_id,
                            "username": admin.user.first_name or "N/A",  # Nombre real del admin
                            "user": f"@{admin.user.username or 'N/A'}",  # Identificador como @username
                            "arorab": admin.rank if hasattr(admin, 'rank') else "N/A",
                            "link": f"https://t.me/{admin.user.username}" if admin.user.username else "N/A",
                        }
                        for admin in admins_data.participants if isinstance(admin, types.ChannelParticipantAdmin)
                    ])
                    if len(admins_data.participants) < admin_limit:
                        break
                    offset += admin_limit

                metadata["admins"] = total_admins
            except errors.ChatAdminRequiredError:
                metadata["admins"] = "Restricted (Admin privileges required)"
            except Exception as e:
                metadata["admins"] = f"Error retrieving admins: {str(e)}"

            return {
                "status": "success",
                "input": entity_input,
                "type": "channel" if not entity.megagroup else "group",
                "privacy": chat_type,
                "link": link,
                "info": metadata,
            }

        # Entidad desconocida
        else:
            return {"status": "unknown_entity", "input": entity_input, "link": link, "details": "Entity type not recognized"}

    except (errors.UserDeactivatedError, errors.AuthKeyInvalidError) as e:
        return {"status": "account_issue", "details": str(e), "link": "N/A", "input": entity_input}
    except errors.ChannelPrivateError:
        return {"status": "private_channel", "link": "N/A", "details": "Channel is private or access is denied", "input": entity_input}
    except errors.FloodWaitError as e:
        print(f"FloodWaitError: Esperando {e.seconds} segundos...")
        await asyncio.sleep(e.seconds)
        return {"status": "flood_wait", "link": "N/A", "details": f"Flood wait for {e.seconds} seconds", "input": entity_input}
    except errors.RPCError as e:
        return {"status": "rpc_error", "link": "N/A", "details": str(e), "input": entity_input}
    except Exception as e:
        return {"status": "error", "link": "N/A", "details": str(e), "input": entity_input}

REPORT CONTENT

import random

headers = [
    "Dear Telegram Compliance Monitoring Team,",
    "Hello Telegram Policy Team,",
    "To the Telegram Trust Enforcement Team,",
]

footers = [
    "Warmly,",
    "With heartfelt thanks,",
    "Ever grateful,",
]

static_message = "We have detected irregular activity in the following account."
details = "Account ID: 123456"

header = random.choice(headers)
footer = random.choice(footers)
message = f"""{header}\n\n{static_message}\n\n{details}\n\n{footer}\nBye"""

πŸ“§ MASSACRE TG SMTP

sms@telegram.org
dmca@telegram.org
abuse@telegram.org
sticker@telegram.org
stopCA@telegram.org
recover@telegram.org
support@telegram.org
security@telegram.org
MASSACRE_SMTP_1 MASSACRE_SMTP_2

πŸ“Š MASSACRE TG SESSIONS

This project automates reporting users, channels, and groups on Telegram using multiple sessions. It loads session credentials, user lists, and configuration files to perform reports based on predefined criteria.

πŸš€ Features

  • Multi-Session Management: Supports multiple Telegram sessions for reporting.
  • Automated User and Channel Reports: Reports users and channels with specified reasons.
  • Customizable Report Reasons: Supports various report types like spam, fake, copyright, etc.
  • Randomized Messaging: Randomized report messages for variation.
  • Error Handling: Handles session errors like banned numbers and unauthorized access.

Prepare Session Credentials

(api_id, api_hash, phone_number)
(api_id, api_hash, phone_number)

Add Users to Report

[
  {
    "status": "success",
    "info": {
      "id": 123456789,
      "user": "@username"
    }
  }
]

Configure Report Messages

Create a report.json file with report reasons and messages:

{
  "SPAM": ["This is spam!", "Inappropriate content", "Unwanted messages"]
}

The script will:

  1. Validate all sessions.
  2. Report users or channels based on main.json.
  3. Display the results in a tabular format.

πŸ“ˆ Results

Reports will be displayed in the terminal as a table:

+-------------+-------------------+-----------+
| Session     | User/Channel      | Report    |
+-------------+-------------------+-----------+
| +1234567890 | @username         | SPAM      |
+-------------+-------------------+-----------+
MASSACRE_SESSION MASSACRE_SESSION2

🌐 MASSACRE TG WEB v2

https://telegram.org/support

Automated script to process email addresses, send messages via HTTP requests, and manage users with multi-threading. Perfect for handling bulk actions efficiently! ⚑

πŸ“‚ Features

  • Dynamic User Agents πŸ€–
  • Multi-threading 🧡
  • Real-time Logging πŸ“
  • Email and User Processing πŸ“§
  • JSON Configuration πŸ“„

πŸ“¦ File Structure

File/Folder Description
emails.txt List of email addresses to process.
report.json JSON containing messages (SPAM key).
main.json User details (id, username, etc.).
results.log Log file for process results.

πŸ“§ Example Data

emails.txt

email1@example.com
email2@example.com

report.json

{
  "SPAM": ["Message 1", "Message 2"]
}

main.json

[
  {"info": {"id": 1, "username": "user1"}, "status": "success"}
]

MASSACRE_SESSION2

⚠️ Disclaimer

This tool is for educational purposes only. Use responsibly and ensure compliance with Telegram's terms of service.

🀝 Contributing

Feel free to submit issues or pull requests to improve the project!

About

Telegram report automatize | sessions | scraping web | smtp

Topics

Resources

Stars

Watchers

Forks

Languages