Skip to content

A Simple And Public Telegram User Bot Built With Telethon (MTProto) That Supports Auto-Loading Handlers For Custom Handlers.

License

Notifications You must be signed in to change notification settings

TheKRDeveloper/telegram-userbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telethon UserBot

A Simple Open-Source Telegram UserBot Built With Telethon (MTProto).
This Bot Auto-Loads Handlers And Works With Any Telegram Account.

Features

  • UserBot (Works On Your Own Telegram Account, Not A Bot Account).
  • Built With Telethon (MTProto).
  • Auto-Loads Handlers From The Project.
  • Easy .env Configuration.

Setup

1. Clone the Repository

git clone https://github.com/TheKRDeveloper/telegram-userbot.git ubot
cd ubot

2. Install Requirements

pip install -r requirements.txt

3. Environment Setup

  • Rename .env.example To .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)

Run The Bot

python main.py

On The First Run

  • 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.

Disclaimer

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).

License

This Project Is Licensed Under MIT License -> See The LICENSE File For Details

About

A Simple And Public Telegram User Bot Built With Telethon (MTProto) That Supports Auto-Loading Handlers For Custom Handlers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages