Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

TronUb/Tron

Repository files navigation

TronUb Logo

Tron Userbot

Repo SizeLicensePython VersionReleaseMaintainedFilesCommit since

About

This is a Telegram userbot written in pure Python, based onPyrogram.

What is a Userbot?

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.

Necessary Variables

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

Deployment Methods

1. Deploy on Heroku

Deploy

2. Deploy on Local Machines

Windows

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

Linux

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

Environment Variables Format

API_ID=1234567API_HASH=ad2gb7h9jd99jdu9bdid9jsh8s7h7eo9kbopzSUDO_USERS=[1252773, 7737382, 1721726]

Session Creation Methods

1. Repl.it Method

Repl.it

2. Termux Method

apt update&& apt upgrade&& pkg install python3 gitcd$HOME&& git clone https://github.com/TronUb/Tron.gitcd Tron&& python3 session.py

Examples

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!")

Support

🌍 Join the Community

Telegram

FAQ

Will be updated soon.

Warning⚠️

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!


[8]ページ先頭

©2009-2025 Movatter.jp