Giter Site home page Giter Site logo

cobraskane / tron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tronub/tron

0.0 0.0 0.0 4.2 MB

A modern telegram userbot based on pyrogram, light weight and smooth

Home Page: https://t.me/tronuserbot

License: MIT License

Shell 0.01% Python 99.92% Dockerfile 0.07%

tron's Introduction

TronUb

Tron Userbot

Repo Size License Python Version Release Maintained Files Commit since

click below to expand

• About
This is a telegram userbot which is written in pure python language and it is based on Dan's [pyrogram](https://github.com/pyrogram/pyrogram) library.

Now let's understand what is a userbot ?

A userbot is simple program to automate your telegram account. Userbots are same as telegram bots. the difference is that all the functionality & features of a bot is provided in a telegram user account.

You might be thinking, what can a userbot do ? well userbots can do a lots of things for example downloading a video/audio from YouTube, making telegram stickers, stopping unknown users from messaging us, image processing, etc. A userbot is not limited to its features it can be extended more and more, it can do more beyond its limits.

• Necessary vars

API_ID

get this value from https://my.telegram.org

API_HASH

get this value from https://my.telegram.org

SESSION

create session from session methods given below

TRIGGER

by default its dot (.) change it to any single symbol you like

LOG_CHAT

make a private group and get its chat id

TIME_ZONE

by default its Asia/Kolkata, change it your time zone

BOT_TOKEN

create a bot at https://t.me/BotFather and get its bot token
• Deployment ( 2 methods )

1. Deploy on Heroku

Deploy



2. Deploy on Local Machine

Windows:

  1. Install python winget install -e --id Python.Python.3.10

  2. Create virtual environment python -m venv tronuserbot

  3. Activate the virtual environment tronuserbot/Scripts/activate

  4. Go to home path cd

  5. Install git winget install -e --id Git.Git

  6. Clone tronuserbot repo git clone https://github.com/TronUb/Tron

  7. change directory cd Tron

  8. Start the tronuserbot installation setup python -m main

Linux:

  1. Update and upgrade apt-get update && apt-get upgrade

  2. Install python apt-get install python

  3. Create python virtual environment python -m venv tronuserbot

  4. Activate python virtual environment source tronuserbot/bin/activate

  5. Install git apt-get install git

  6. Clone tronuserbot repo git clone https://github.com/TronUb/Tron

  7. Change directory cd Tron

  8. Paste your keys and values in config.text file nano config.text

  9. After pasting all of your information, use Ctrl + X and enter Y and again hit enter button.

  10. Start the tronuserbot installation setup python -m main

Note: You have to add keys & values in config.txt file same as given below 👇

API_ID=1234567
API_HASH=ad2gb7h9jd99jdu9bdid9djd9jsh8s7h7eo9kbopz
SUDO_USERS=[1252773, 7737382, 1721726]

🎉 Done, Have fun using tronuserbot.



• Session ( 2 methods )
1. Repl method

Repl.it



2. Termux method

  • Run the given command in termux
apt update && apt upgrade && pkg install python3 git && cd $HOME && git clone https://github.com/TronUb/Tron.git && cd Tron && python3 session.py 


• Examples
from main import app
from main.core import filters
from main.core.enums import HandlerType


@app.on_update(
    handler_type=HandlerType.MESSAGE,
    filters=filters.gen(
        commands="check",
        usage="Check Bot is active or not."
    )
)
async def check_handler(client, message):
    await message.edit("Bot is Active !")

# The gen filter is only made for userbot

Warning ⚠️: I will not be responsible for anything that happens with your account, channels, groups, friends, etc, if you get banned or limited it will be your fault, most of time nothing happens.


• MADE WITH 🎉 BY ࿇•ẞᗴᗩSԵ•࿇

tron's People

Contributors

vikramisdev avatar deepsource-autofix[bot] avatar deepsourcebot avatar sonzaiekkusu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.