A Simple Open-Source Telegram UserBot Built With Telethon (MTProto).
This Bot Auto-Loads Handlers And Works With Any Telegram Account.
- UserBot (Works On Your Own Telegram Account, Not A Bot Account).
- Built With Telethon (MTProto).
- Auto-Loads Handlers From The Project.
- Easy
.envConfiguration.
git clone https://github.com/TheKRDeveloper/telegram-userbot.git ubot
cd ubotpip install -r requirements.txt- Rename
.env.exampleTo.env - Fill In Your Details:
API_ID=123456 # Get This From https://my.telegram.org/apps
API_HASH=your_api_hash # Get This From https://my.telegram.org/apps
SESSION_NAME=KRBot # Session Name (Any Name For Your Saved Session File)
TARGET_ID=-100123... # Example: For A Channel Or Group, Use -100... (Bot Api)python main.py- Enter Your Phone Number (Linked To Telegram).
- Telegram Will Send OTP -> Enter It.
- If Your Account Has 2FA Password, Enter That Too.
Once Login Is Successful, A .session File Will Be Created -> Next Time You Won't Need To Login Again.
This Is A User Bot
- It Logs In Using Your Personal Telegram Account.
- Be Careful: Misuse Can Get Your Account Limited/Banned By Telegram.
- Use At Your Own Risk (For Any Misuse).
This Project Is Licensed Under MIT License -> See The LICENSE File For Details