- Notifications
You must be signed in to change notification settings - Fork22
A modern telegram userbot based on pyrogram, light weight and smooth
License
TronUb/Tron
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a Telegram userbot written in pure Python, based onPyrogram.
A userbot is a program that automates your Telegram account, similar to Telegram bots but operating through a user account. It can perform actions like downloading YouTube videos, creating stickers, preventing unknown users from messaging, image processing, and more. The functionality of a userbot can be extended indefinitely.
API_ID# Get from https://my.telegram.orgAPI_HASH# Get from https://my.telegram.orgSESSION# Create a session using the methods belowLOG_CHAT# Create a private group and get its chat IDBOT_TOKEN# Create a bot at https://t.me/BotFather and get its token
winget install -e --id Python.Python.3.10python3 -m venv tronuserbottronuserbot/Scripts/activatepip install setuptoolsgit clone https://github.com/TronUb/Troncd Tronnotepad .env# Fill in the necessary detailspython3 -m main
apt-get update -y&& apt-get upgrade -yapt-get install python3 -ypython3 -m venv tronuserbotsource tronuserbot/bin/activatepip install setuptoolsgit clone https://github.com/TronUb/Troncd Tronnano .env# Fill in the necessary detailspython3 -m main
API_ID=1234567API_HASH=ad2gb7h9jd99jdu9bdid9jsh8s7h7eo9kbopzSUDO_USERS=[1252773, 7737382, 1721726]
apt update&& apt upgrade&& pkg install python3 gitcd$HOME&& git clone https://github.com/TronUb/Tron.gitcd Tron&& python3 session.py
frommainimportappfrommain.coreimportfiltersfrommain.core.enumsimportHandlerType# Userbot decorator@app.on_update(handler_type=HandlerType.MESSAGE,filters=filters.gen(commands="check",usage="Check if bot is active." ))asyncdefuserbot_check_handler(client,message):awaitmessage.edit("Bot is Active!")# Bot decorator@app.bot.on_update(handler_type=HandlerType.MESSAGE,filters=filters.command(commands="check" ))asyncdefbot_check_handler(bot,message):awaitbot.send_message(message.chat.id,"Bot is Active!")
Will be updated soon.
I am not responsible for any consequences of using this bot, including bans or restrictions on your account.
Made With Fun By࿇•ẞᗴᗩSԵ•࿇
Feel free to contribute and improve!
About
A modern telegram userbot based on pyrogram, light weight and smooth
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.