Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TronUb/Tron
A modern telegram userbot based on pyrogram, light weight and smooth
https://github.com/TronUb/Tron
beastzx bot pyrogram pyrogram-userbot python telegram telegram-bot termux tronbot tronub tronuserbot userbot
Last synced: 3 months ago
JSON representation
A modern telegram userbot based on pyrogram, light weight and smooth
- Host: GitHub
- URL: https://github.com/TronUb/Tron
- Owner: TronUb
- License: mit
- Created: 2021-08-20T04:23:21.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-03T07:29:34.000Z (3 months ago)
- Last Synced: 2024-08-03T08:36:45.036Z (3 months ago)
- Topics: beastzx, bot, pyrogram, pyrogram-userbot, python, telegram, telegram-bot, termux, tronbot, tronub, tronuserbot, userbot
- Language: Python
- Homepage: https://t.me/tronuserbot
- Size: 4.13 MB
- Stars: 27
- Watchers: 1
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tron Userbot
![Repo Size](https://img.shields.io/github/repo-size/TronUb/Tron)
![License](https://img.shields.io/github/license/TronUb/Tron)
![Python Version](https://img.shields.io/badge/python-3.x.x-aqua)
![Release](https://img.shields.io/github/v/release/TronUb/Tron)
![Maintained](https://img.shields.io/badge/Maintained%20%3F-Yes-orange)
![Files](https://img.shields.io/github/directory-file-count/TronUb/Tron?label=repo%20files)
![Commit since](https://img.shields.io/github/commits-since/TronUb/Tron/0.0.1/master)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 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
```python
API_ID
# get this value from https://my.telegram.orgAPI_HASH
# get this value from https://my.telegram.orgSESSION
# create session from session methods given belowTRIGGER
# by default its dot (.)
# change it to any single symbol you likeLOG_CHAT
# make a private group and get its chat idTIME_ZONE
# by default its Asia/Kolkata, change it
# your time zoneBOT_TOKEN
# create a bot at https://t.me/BotFather
# and get its bot token
```• Deployment ( 2 methods )
1. Deploy on Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/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``` & install setuptools ```pip install setuptools```
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``` & create config.txt file ```notepad config.txt``` & fill all details.
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``` & install setuptools ```pip install setuptools```
5. Install git ```apt-get install git```
6. Clone tronuserbot repo ```git clone https://github.com/TronUb/Tron```
7. Change directory ```cd Tron``` & create a config.txt file
8. Paste your keys and values in config.text file ```nano config.text``` & fill all details.
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](https://img.shields.io/badge/REPL%20RUN-Click%20Here-aqua.svg)](https://replit.com/@beastzx18/Tron-Userbot?v=1)
---
2. Termux method
* Run the given command in termux
``` shell
apt update && apt upgrade && pkg install python3 git && cd $HOME && git clone https://github.com/TronUb/Tron.git && cd Tron && python3 session.py
```---
• Examples
``` python3
from main import app
from main.core import filters
from main.core.enums import HandlerType# userbot decorator
@app.on_update(
handler_type=HandlerType.MESSAGE,
filters=filters.gen(
commands="check",
usage="Check Bot is active or not."
)
)
async def userbot_check_handler(client, message):
await message.edit("Bot is Active !")# The gen filter can be only used by the userbot
# bot decorator
@app.bot.on_update(
handler_type=HandlerType.MESSAGE,
filters=filters.command(
commands="check"
)
)
async def bot_check_handler(bot, message):
await bot.send_message(m.chat.id, "Bot is Active !")```
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Ե•࿇](https://t.me/beastzx)