{"id":13826302,"url":"https://github.com/TronUb/Tron","last_synced_at":"2025-07-09T00:32:57.801Z","repository":{"id":36981408,"uuid":"398153645","full_name":"TronUb/Tron","owner":"TronUb","description":"A modern telegram userbot based on pyrogram, light weight and smooth","archived":false,"fork":false,"pushed_at":"2024-08-23T11:28:35.000Z","size":4374,"stargazers_count":28,"open_issues_count":0,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-24T08:29:38.459Z","etag":null,"topics":["beastzx","bot","pyrogram","pyrogram-userbot","python","telegram","telegram-bot","termux","tronbot","tronub","tronuserbot","userbot"],"latest_commit_sha":null,"homepage":"https://t.me/tronuserbot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TronUb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-20T04:23:21.000Z","updated_at":"2024-08-23T11:28:38.000Z","dependencies_parsed_at":"2023-02-17T22:15:33.283Z","dependency_job_id":"8679f0c6-5cd8-4630-a728-aa6eace898b5","html_url":"https://github.com/TronUb/Tron","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TronUb%2FTron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TronUb%2FTron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TronUb%2FTron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TronUb%2FTron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TronUb","download_url":"https://codeload.github.com/TronUb/Tron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476384,"owners_count":17480215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beastzx","bot","pyrogram","pyrogram-userbot","python","telegram","telegram-bot","termux","tronbot","tronub","tronuserbot","userbot"],"created_at":"2024-08-04T09:01:35.343Z","updated_at":"2024-11-20T05:30:36.869Z","avatar_url":"https://github.com/TronUb.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/TronUb/Tron\"\u003e\n        \u003cimg src=\"main/others/resources/images/tron-round.png\" height=\"300\" width=\"300\" alt=\"TronUb Logo\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003eTron Userbot\u003c/h2\u003e\n\n![Repo Size](https://img.shields.io/github/repo-size/TronUb/Tron)\n![License](https://img.shields.io/github/license/TronUb/Tron)\n![Python Version](https://img.shields.io/badge/Python-3.9-aqua)\n![Release](https://img.shields.io/github/v/release/TronUb/Tron)\n![Maintained](https://img.shields.io/badge/Maintained%20%3F-Yes-orange)\n![Files](https://img.shields.io/github/directory-file-count/TronUb/Tron?label=Repo%20Files)\n![Commit since](https://img.shields.io/github/commits-since/TronUb/Tron/0.0.1/master)\n\n\n\u003ch2\u003eClick below on text to show\u003c/h2\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003e• About\u003c/b\u003e\u003c/summary\u003e\n\n\u003cbr /\u003e\n\u003cb\u003eThis is a telegram userbot which is written in pure python language and it is based on Dan's\u003c/b\u003e \u003ca href=\"https://github.com/pyrogram/pyrogram\"\u003ePyrogram\u003c/a\u003e \u003cb\u003elibrary.\u003c/b\u003e\n\n\u003cb\u003eNow let's understand what is a userbot ?\u003c/b\u003e\n\n\u003cb\u003eA userbot is simple program to automate your telegram account. Userbots are same as telegram bots.\u003c/b\u003e\n\u003cb\u003ethe difference is that all the functionality \u0026 features of a bot is provided in a telegram user account.\u003c/b\u003e\n\n\u003cb\u003eYou might be thinking, what can a userbot do ? well userbots can do a lots of things for example downloading a video/audio from\nYouTube, making telegram stickers, stopping unknown users from messaging us, image processing, etc. A userbot is not limited\nto its features it can be extended more and more, it can do more beyond its limits.\u003c/b\u003e\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n    \u003csummary\u003e\n        \u003cb\u003e• Necessary vars\u003c/b\u003e\n    \u003c/summary\u003e\n\u003cbr\u003e\u003c/br\u003e\n\n```python\nAPI_ID\n# get this value from https://my.telegram.org\n\nAPI_HASH\n# get this value from https://my.telegram.org\n\nSESSION\n# create session from session methods given below\n\nLOG_CHAT\n# make a private group and get its chat id\n\nBOT_TOKEN\n# create a bot at https://t.me/BotFather\n# and get its bot token\n```\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003e• Deployment ( 2 methods )\u003c/b\u003e\u003c/summary\u003e\n\n\u003cbr /\u003e\n\n\u003cb\u003e1. Deploy on Heroku\u003c/b\u003e\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n---\n\n\u003cbr /\u003e\n\n\u003cb\u003e2. Deploy on Local Machines\u003c/b\u003e\n\n\n• \u003ci\u003eWindows:\u003c/i\u003e\n\n1. Install python ```winget install -e --id Python.Python.3.10```\n\n2. Create virtual environment ```python3 -m venv tronuserbot```\n\n3. Activate the virtual environment ```tronuserbot/Scripts/activate``` \u0026 install setuptools ```pip install setuptools```\n\n4. Go to home path ```cd```\n\n5. Install git ```winget install -e --id Git.Git```\n\n6. Clone tronuserbot repo ```git clone https://github.com/TronUb/Tron```\n\n7. change directory ```cd Tron``` \u0026 create config.txt file ```notepad config.txt``` \u0026 fill all details.\n\n8. Start the tronuserbot installation setup ```python3 -m main```\n\n\n• \u003ci\u003eLinux:\u003c/i\u003e\n\n1. Update and upgrade ```apt-get update -y \u0026\u0026 apt-get upgrade -y```\n\n2. Install python ```apt-get install python3 -y```\n\n3. Create python virtual environment ```python3 -m venv tronuserbot```\n\n4. Activate python virtual environment ```source tronuserbot/bin/activate``` \u0026 install setuptools ```pip install setuptools```\n\n5. Install git ```apt-get install git```\n\n6. Clone tronuserbot repo ```git clone https://github.com/TronUb/Tron```\n\n7. Change directory ```cd Tron``` \u0026 create a config.txt file\n\n8. Paste your keys and values in config.text file ```nano config.txt``` \u0026 fill all details.\n\n9. After pasting all of your information, use \u003cb\u003eCtrl + X\u003c/b\u003e and enter \u003cb\u003eY\u003c/b\u003e and again hit enter button.\n\n10. Start the tronuserbot installation setup ```python3 -m main```\n\n\n\u003cb\u003eNote:\u003c/b\u003e You have to add keys \u0026 values in config.txt file same as given below 👇\n\n```API_ID=1234567```\u003cbr /\u003e\n```API_HASH=ad2gb7h9jd99jdu9bdid9djd9jsh8s7h7eo9kbopz```\u003cbr /\u003e\n```SUDO_USERS=[1252773, 7737382, 1721726]```\n\n\u003cp\u003e🎉 Done, Have fun using tronuserbot.\u003c/p\u003e\n\n---\n\n\u003cbr /\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e• Session ( 2 methods )\u003c/b\u003e\u003c/summary\u003e\n\n\u003cbr /\u003e\n\u003cb\u003e1. Repl method\u003c/b\u003e\n\n[![Repl.it](https://img.shields.io/badge/REPL%20RUN-Click%20Here-aqua.svg)](https://replit.com/@beastzx18/Tron-Userbot?v=1)\n\n---\n\n\u003cbr /\u003e\n\n\u003cb\u003e2. Termux method\u003c/b\u003e\n\n* Run the given command in termux\n\n```shell\napt update \u0026\u0026 apt upgrade \u0026\u0026 pkg install python3 git \u0026\u0026 cd $HOME \u0026\u0026 git clone https://github.com/TronUb/Tron.git \u0026\u0026 cd Tron \u0026\u0026 python3 session.py\n```\n\n---\n\n\u003cbr /\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e\n        \u003cb\u003e• Examples\u003c/b\u003e\n    \u003c/summary\u003e\n\n``` python3\nfrom main import app\nfrom main.core import filters\nfrom main.core.enums import HandlerType\n\n\n# userbot decorator\n@app.on_update(\n    handler_type=HandlerType.MESSAGE,\n    filters=filters.gen(\n        commands=\"check\",\n        usage=\"Check Bot is active or not.\"\n    )\n)\nasync def userbot_check_handler(client, message):\n    await message.edit(\"Bot is Active !\")\n\n# The gen filter can be only used by the userbot\n\n\n\n# bot decorator\n@app.bot.on_update(\n    handler_type=HandlerType.MESSAGE,\n    filters=filters.command(\n        commands=\"check\"\n    )\n)\nasync def bot_check_handler(bot, message):\n    await bot.send_message(m.chat.id, \"Bot is Active !\")\n\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003e• FAQ\u003c/b\u003e\u003c/summary\u003e\n    Will be edited soon.\n\u003c/details\u003e\n\n\n\u003cb\u003eWarning ⚠️:\u003c/b\u003e\nI 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.\n\n\u003cbr /\u003e\n\n\u003cb\u003e• MADE WITH 🎉 BY\u003c/b\u003e [࿇•ẞᗴᗩSԵ•࿇](https://t.me/beastzx)\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTronUb%2FTron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTronUb%2FTron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTronUb%2FTron/lists"}