Skip to content

Telegram Userbot Written in pyrogram in python By AK Hacker , program4hack .Name of the Bot is MR.ROBOT

Notifications You must be signed in to change notification settings

AKHACKER-program4hack/mrrobot

Repository files navigation

MR.ROBOT Userbot

Python Version Join Group Contributors Last Commit Issues Pull Requests

A Telegram Userbot based on Pyrogram

This repository contains the source code of a Telegram Userbot and the instructions for running a copy yourself. Beside its main purpose, the bot is featuring Pyrogram Asyncio and Smart Plugins; feel free to explore the source code to learn more about these topics.

I assume you will read this whole README.md file before continuing.

Development in progress.

Requirements

You're gonna need to get the following programs and services either installed on your server or signed up for. You must do all. It is a cardinal sin if you don't.

  • virtualenv installed so that the packages don't interfere with other system packages.

Installing

Quick Deploy on Heroku using the button down below:

Deploy

Quick Deploy on Railway using the button down below:

Deploy on Railway

To Get USERBOT_SESSION CLICK Blow Button :

Run on Repl.it

USE Termux To Get USERBOT_SESSION :

pkg install python && pkg install wget && python -m pip install Pyrogram==1.1.13 && wget https://raw.githubusercontent.com/AKHACKER-program4hack/mrrobot/main/sessioncreater.py && python sessioncreater.py

The way I deploy

git clone https://github.com/AKHACKER-program4hack/mrrobot.git
cd userbot
python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
python3 sessioncreater.py
python3 -m userbot.

Developing

To add extra modules to the bot, simply add the code into userbot/plugins.I have made to functions for it first is .download which download media you can see in general in help menu and other is .load_plugin which load_plugin from download directory to plugin directory .Each file that is added to the plugins directory should have the following code at a minimum.

from pyrogram import filters

from userbot import UserBot

@UserBot.on_message(filters.command('sample', ['.']))
async def module_name(client, message):
    await message.edit(
        "This is a sample module"
    )

This example is only for Pyrogram on_message events.

For New Plugins visit :

Plugins

Credits, and Thanks to


About

Telegram Userbot Written in pyrogram in python By AK Hacker , program4hack .Name of the Bot is MR.ROBOT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published