Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
file: ./Dockerfile
push: true
tags: |
ghcr.io/itz-fork/meganzbot:latest
ghcr.io/itz-fork/meganzbot:${{ github.sha }}
ghcr.io/partiallywritten/meganzbot:latest
ghcr.io/partiallywritten/meganzbot:${{ github.sha }}
2 changes: 1 addition & 1 deletion .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Notify the commit on Telegram
uses: Itz-fork/github-telegram-notify@main
uses: partiallywritten/github-telegram-notify@main
Copy link

Copilot AI Mar 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow uses a mutable ref (@main) for the third-party action. Pinning to a specific tag or commit SHA improves supply-chain security and ensures the workflow remains reproducible if main changes.

Suggested change
uses: partiallywritten/github-telegram-notify@main
uses: partiallywritten/github-telegram-notify@v1

Copilot uses AI. Check for mistakes.
with:
bot_token: '${{ secrets.BOT_TOKEN }}'
chat_id: '${{ secrets.CHAT_ID }}'
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A simple telegram bot to download, upload files or folders from [Mega.nz](https:
Deploy your own Bot ♥️! **Star 🌟 Fork 🍴 and Deploy**

### Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://github.com/Itz-fork/X-Bin-Patch#deployment)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://github.com/partiallywritten/X-Bin-Patch#deployment)

### Local

Expand All @@ -44,28 +44,28 @@ Use official Docker image to run Mega.nz-Bot 🐳
- Create the .env file (see [env sample](/.env.sample) and [config vars](https://itz-fork.gitbook.io/mega.nz-bot/config-vars))
- Pull the docker image
```
docker pull ghcr.io/itz-fork/meganzbot:latest
docker pull ghcr.io/partiallywritten/meganzbot:latest
```
- Run it! (`.env` is path to .env file you created)
```
docker run --env-file .env ghcr.io/itz-fork/meganzbot
docker run --env-file .env ghcr.io/partiallywritten/meganzbot
```

**Legacy Metods,**

1) Using installer script

If you're using a linux distro with `apt`, `apk`, `pacman` or `dnf` as the package manager, you can use the official installer script to setup [Mega.nz-Bot](https://github.com/Itz-fork/Mega.nz-Bot).
If you're using a linux distro with `apt`, `apk`, `pacman` or `dnf` as the package manager, you can use the official installer script to setup [Mega.nz-Bot](https://github.com/partiallywritten/Mega.nz-Bot).

```bash
curl -sS -O https://raw.githubusercontent.com/Itz-fork/Mega.nz-Bot/main/installer.sh && chmod +x installer.sh && ./installer.sh
curl -sS -O https://raw.githubusercontent.com/partiallywritten/Mega.nz-Bot/main/installer.sh && chmod +x installer.sh && ./installer.sh
```

2) Using classic git clone

- Clone the Repo
```
git clone https://github.com/Itz-fork/Mega.nz-Bot
git clone https://github.com/partiallywritten/Mega.nz-Bot
```
- Enter the directory
```
Expand Down
2 changes: 1 addition & 1 deletion installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function show_error() {
# CLone git repo
function clone_repo() {
show_process "Cloning Mega.nz-Bot repository"
git clone https://github.com/Itz-fork/Mega.nz-Bot.git || show_error "git: Clone failed"
git clone https://github.com/partiallywritten/Mega.nz-Bot.git || show_error "git: Clone failed"

show_process "Changing current working directory"
cd Mega.nz-Bot || show_error "fs: 'Mega.nz-Bot' not found"
Expand Down
6 changes: 3 additions & 3 deletions megadl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: __init__.py

import os
Expand Down
6 changes: 3 additions & 3 deletions megadl/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: __main__.py

from pyrogram import idle
Expand Down
8 changes: 4 additions & 4 deletions megadl/helpers/crypt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Decryption functions
# Credits: https://github.com/Itz-fork/pyro-mega.py/blob/master/src/mega/crypto.py
# Credits: https://github.com/partiallywritten/pyro-mega.py/blob/master/src/mega/crypto.py

import re
import json
Expand Down
8 changes: 4 additions & 4 deletions megadl/helpers/cypher.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Custom pyrogram client useful methods

import os
Expand Down Expand Up @@ -126,7 +126,7 @@ def __init__(self):
print("> Checking for updates")
try:
remote_updates = requests.get(
"https://raw.githubusercontent.com/Itz-fork/Mega.nz-Bot/main/updates.json",
"https://raw.githubusercontent.com/partiallywritten/Mega.nz-Bot/main/updates.json",
timeout=10
).json()

Expand Down
6 changes: 3 additions & 3 deletions megadl/helpers/database.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Database functions

from os import getenv
Expand Down
6 changes: 3 additions & 3 deletions megadl/helpers/files.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: File system functions

from time import time
Expand Down
6 changes: 3 additions & 3 deletions megadl/helpers/pyros.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Tools and helper functions related to pyrogram

from time import time
Expand Down
6 changes: 3 additions & 3 deletions megadl/helpers/sysfncs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Shell, loops and other sys functions

import asyncio
Expand Down
6 changes: 3 additions & 3 deletions megadl/lib/ddl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Downloader for direct download links and gdrive
# Optimized for handling thousands of simultaneous connections

Expand Down
14 changes: 7 additions & 7 deletions megadl/lib/megatools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Wrapper for megatools cli with extended features

import os
Expand Down Expand Up @@ -51,8 +51,8 @@ class MegaTools:
"""
Helper class for pyrogram bots to interact with megatools cli

Author: https://github.com/Itz-fork
Project: https://github.com/Itz-fork/Mega.nz-Bot
Author: https://github.com/partiallywritten
Project: https://github.com/partiallywritten/Mega.nz-Bot
"""

def __init__(self, tg_client, pre_conf=None) -> None:
Expand Down Expand Up @@ -360,7 +360,7 @@ def __genErrorMsg(self, bs):

Please make sure that you've provided the correct username and password.

You can open a new issue if the problem persists - https://github.com/Itz-fork/Mega.nz-Bot/issues
You can open a new issue if the problem persists - https://github.com/partiallywritten/Mega.nz-Bot/issues
"""

async def __checkErrors(self, out):
Expand Down Expand Up @@ -434,7 +434,7 @@ def __init__(self) -> None:
class LoginError(Exception):
def __init__(self) -> None:
super().__init__(
"Unable to login to your mega.nz account. \n\nYou can open a new issue if the problem persists - https://github.com/Itz-fork/Mega.nz-Bot/issues"
"Unable to login to your mega.nz account. \n\nYou can open a new issue if the problem persists - https://github.com/partiallywritten/Mega.nz-Bot/issues"
)


Expand Down
6 changes: 3 additions & 3 deletions megadl/lib/splitter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Optimized async file splitter for resource-constrained environments
import os
import asyncio
Expand Down
6 changes: 3 additions & 3 deletions megadl/modules/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Admin functions

from pyrogram import filters
Expand Down
6 changes: 3 additions & 3 deletions megadl/modules/auth.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Authorize mega account of users


Expand Down
6 changes: 3 additions & 3 deletions megadl/modules/bonus.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Bonus functions such as file/folder info, proxy setting and account status

from pyrogram import filters
Expand Down
6 changes: 3 additions & 3 deletions megadl/modules/callbacks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Callbacks that can be used globally

import logging
Expand Down
8 changes: 4 additions & 4 deletions megadl/modules/generals.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: General commands of the bot


Expand All @@ -15,7 +15,7 @@
async def start_msg(_: CypherClient, msg: Message):
await msg.reply_text(
f"""
Hi `{msg.from_user.first_name}` 👋, I'm [Mega.nz-Bot](https://github.com/Itz-fork/Mega.nz-Bot)!
Hi `{msg.from_user.first_name}` 👋, I'm [Mega.nz-Bot](https://github.com/partiallywritten/Mega.nz-Bot)!

I can help you download, upload files or folders from telegram.
Not sure what to do? Check /help for more info 😇
Expand Down
6 changes: 3 additions & 3 deletions megadl/modules/mega_dl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Handle mega.nz download function


Expand Down
6 changes: 3 additions & 3 deletions megadl/modules/mega_up.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 - Present Itz-fork
# Author: https://github.com/Itz-fork
# Project: https://github.com/Itz-fork/Mega.nz-Bot
# Copyright (c) 2021 - Present partiallywritten
# Author: https://github.com/partiallywritten
# Project: https://github.com/partiallywritten/Mega.nz-Bot
# Description: Handle mega.nz upload function

from time import time
Expand Down
2 changes: 1 addition & 1 deletion scripts/clear_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Header
start() {
echo -e "\e[1m\e[101m Script by Itz-fork \e[0m \n"
echo -e "\e[1m\e[101m Script by partiallywritten \e[0m \n"
}

# Write down all sub dirs to one text file
Expand Down
Loading