Skip to content

cipher-attack/Super_telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

English Amharic

Project Akasha Hero

PROJECT AKASHA

A modular Telegram UserBot built on telethon. integrates Gemini LLM for context-aware automation, Edge-TTS for localized voice synthesis, and a custom media stack.

Installation Β· System Core Β· Modules Manual Β· Troubleshooting

Project Akasha Tools

𓏡 Overview

Project Akasha solves the problem of "dumb" auto-replies. Unlike static userbots, it uses a Neural engine (Google Gemini) to generate responses that actually fit the conversation context, mimicking your typing style.

it includes a TTS Wrapper for amharic/english voice notes, a Two-Stage Music Downloader to save RAM, and various administration tools. The codebase is structured for easy deployment on local machines or cloud instances (Heroku/Railway).

➜ Project Structure

ensure your directory matches this tree. The bot relies on relative paths for fonts and database persistence.

.
β”œβ”€β”€ .env                  # API keys & configuration
β”œβ”€β”€ config.py             # settings loader
β”œβ”€β”€ main.py               # event loope entry point
β”œβ”€β”€ requirements.txt      # python dependencies
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ Dockerfile            # docker container configuration
β”œβ”€β”€ Procfile              # cloud deployment instructions
β”œβ”€β”€ setup.sh              # linux VPS automated setup
β”œβ”€β”€ LICENSE               # Legal Usage Permissions
β”œβ”€β”€ core
β”‚   └── database.py       # JSON/Mongo handler
└── plugins
    β”œβ”€β”€ admin_tools.py    # group management
    β”œβ”€β”€ ai.py             # LLM & vision Logic
    β”œβ”€β”€ creative.py       # pillow-based image manipulation
    β”œβ”€β”€ master_voice.py   # edge-TTS & FFmpeg filters
    β”œβ”€β”€ music.py          # yt-dlp audio wrapper
    β”œβ”€β”€ security.py       # TTL capture
    └── system.py         # auto-reply logic

βš™ Installation

follow these steps to deploy. we use environment variables to prevent credential leaks.

1. Environment Prerequisites

Required: Python 3.9+ and FFmpeg (for audio conversion).

Ubuntu/Debian:

sudo apt update && sudo apt install python3 python3-pip ffmpeg -y

Windows:

  1. Install Python from python.org.
  2. Install FFmpeg and add it to System PATH.
2. Install Dependencies
pip install -r requirements.txt
3. Configuration (.env)

Create a .env file in the root directory. copy the structure below. Note: the bot supports API key rotation to bypass free tier rate limits. You can use a single list (GEMINI_KEYS) or individual variables (GEMINI_KEY1...).

# ---telegram core---
# get from my.telegram.org
API_ID=123456
API_HASH=your_api_hash
SESSION=1BVts... # telethon session

# --- AI engine ---
# method 1: single list
# Separate keys with commas (,)
GEMINI_KEYS=AIzaSy1...,AIzaSy2...,AIzaSy3...

# Method 2: individual variables
GEMINI_KEY1=AIzaSyD...
GEMINI_KEY2=AIzaSyF...
GEMINI_API_KEY=AIzaSy... # fallback

# --- database ---
# leave empty for local JSON
MONGO_URL=

⚠︎ security: never commit your .env or SESSION string to public repositories.

4. Execution
python main.py

Triggers Config.check_integrity() on startup to validate keys.


☁︎ Cloud Deployment

for Render, Railway, or Heroku, skip the .env file. Inject these variables directly into the dashboard's environment settings:

  • API_ID
  • API_HASH
  • SESSION
  • GEMINI_KEYS (paste all your keys here, separated by commas. Example: Key1,Key2,Key3).

π–‘Ž System Core

managed by plugins/system.py. handles the "Away State" logic.

Auto-Pilot (.auto)

controls the reply engine.

Command Logic
.auto ai neural mode: fetches context from the last 5 messages and generates a response via Gemini.
.auto static static mode: replies with a pre set string (e.g., "Busy").
.auto off passthrough: disables all automation.
.auto [text] updates the static mode variable.

Context Modes (.mode)

injects specific system prompts into the AI to alter tone.

  • sleep - short, groggy responses.
  • work - professional, concise.
  • gaming - dismissive/short.
  • default - standard conversational style.

Latency Simulation

to prevent bot detection:

  1. read delay: random 1-3s sleep before marking as read.
  2. typing: calculates len(response) * 0.1s to simulate human typing speed.

⊞ Modules Manual

1. Admin Tools (plugins/admin_tools.py)

standard group administration.

  • Whois: .whois @user. generates a user profile card (ID, DC, Scam Status, Bio).
  • Translator: Text //lang_code. replaces the message with the translation (e.g., Hey //am -> αˆ°αˆ‹αˆ).
  • moderation:
    • .purge: deletes messages recursively.
    • .ban / .mute: standard user restrictions.
    • .zombies: Scans for deleted accounts and cleans them to fix member counts.

Caution

Rate Limits: massive purges or zombie cleaning can trigger telegram's floodWait. use sparingly.


2. TTS engine (plugins/master_voice.py)

direct wrapper for Microsoft Edge TTS. supports SSML tags for pitch/rate control.

Command: .say [text] [flags]

  • auto detect: switches between Mekdes (Amharic) and Jenny (English) based on scrip.

Flags (FFmpeg Filters):

Flag Filter Applied
.f / .m Force Female/Male model.
.echo aecho filter (Hall effect).
.radio High-pass/Low-pass filter chain.
.demon Pitch shift -400Hz.
.kid Pitch shift +400Hz.

Shortcut: .whisper applies .slow + low volume.


3. Image Utils (plugins/creative.py)

pillow based image manipulation.

  • Meme Gen: .meme [Top];[Bottom].
    • logic: auto-fetches NotoSansEthiopic-Bold or NotoSansArabic if the text script requires it. caches fonts locally.
  • Sticker Kang: .kang. converts media to 512px WebP and appends to your sticker pack.
    • Limit: Skips files >5MB to prevent memory leaks on VPS.

4. Music Loader (plugins/music.py)

uses yt-dlp for soundCloud/youtube extraction.

Workflow:

  1. Search: .song [Query]. fetches metadata onlys. Caches result in RAM (SEARCH_STATE).
  2. Select: Reply 1 to 5.
  3. Process: Downloads -> converts to MP3 192kbps (FFmpeg) -> writes id3 tags -> uploads.

Note

Hard Limit: files >50MB are rejected to avoid telegram upload timeouts.


5. AI & Vision (plugins/ai.py)

  • Generative: .ai [prompt]. uses the rotated API key pool.
  • Vision: reply to an image with .ai explain. Downloads image to memory buffer -> sends to Gemini Vision API.
  • Image Search: .img or .imgs (Gallery). scrapes DuckDuckGo for images.

6. Security Modules (plugins/security.py)

TTL Capture (anti-view-once)

status: disabled by default.

  • function: hooks into the MessageMedia event. If ttl_period > 0:
    1. Downloads media to temp.
    2. Forwards to "Saved Messages".
    3. Appends "κ—ƒ vault capture" tag.

Fake Terminal

  • .hack @user: edits a message repeatedly to simulate a terminal breach. purely prank.

πŸ”§ Troubleshooting

1. FFmpeg Error: FileNotFoundError: ensure Ffmpeg is in your System PATH or installed via apt.

2. API Key Limits: If .ai fails, check if your Gemini keys are valid. the bot auto rotates, but if all are exhausted, it will return an error.

3. Dependency Issues: force reinstall: pip install --force-reinstall -r requirements.txt.


Telegram GitHub Status

Licensed under the MIT License.

Project Akasha v1.0
Built for the Unknown purpose β˜•οΈŽ.

About

Project Akasha: A human-mimicking Telegram UserBot powered by the Gemini Neural Engine. It automates conversations naturally, generates studio-quality voice notes, and manages media without revealing its bot identity.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages