This is a Telegram userbot written in pure Python, based on Pyrogram.
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.org
API_HASH # Get from https://my.telegram.org
SESSION # Create a session using the methods below
LOG_CHAT # Create a private group and get its chat ID
BOT_TOKEN # Create a bot at https://t.me/BotFather and get its token
winget install -e --id Python.Python.3.10
python3 -m venv tronuserbot
tronuserbot/Scripts/activate
pip install setuptools
git clone https://github.com/TronUb/Tron
cd Tron
notepad .env # Fill in the necessary details
python3 -m main
apt-get update -y && apt-get upgrade -y
apt-get install python3 -y
python3 -m venv tronuserbot
source tronuserbot/bin/activate
pip install setuptools
git clone https://github.com/TronUb/Tron
cd Tron
nano .env # Fill in the necessary details
python3 -m main
API_ID=1234567
API_HASH=ad2gb7h9jd99jdu9bdid9jsh8s7h7eo9kbopz
SUDO_USERS=[1252773, 7737382, 1721726]
apt update && apt upgrade && pkg install python3 git
cd $HOME && git clone https://github.com/TronUb/Tron.git
cd Tron && python3 session.py
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 if bot is active."
)
)
async def userbot_check_handler(client, message):
await message.edit("Bot is Active!")
# 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(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!