Skip to content

This is a project that will transform your user account or an alternative number belonging to Telegram, into a bot account.

License

Notifications You must be signed in to change notification settings

VycktorStark/Userbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

This is a project that will transform your user account or an alternate number into a bot account that will allow you to perform the "welcome" function on your group, ban, remove the ban, restrict a user from speaking in your group, remove the restriction and you can have more resources in the future

Below I am providing instructions for you to have a copy of the project, these instructions will show you how to start using it for learning, development and testing purposes.

⚠️ Note: This project is for learning, development and testing purposes, I am not responsible for any use that has other purposes!

Configuring the bot to run on the terminal

You must have your machine up to date and have Python 3 installed, as well as modules such as: telethon, if you don't have it, you will need to install it this way here:

# Tested on Ubuntu 14.04, 15.04 and 16.04, Debian 7, Linux Mint 17.2
$ sudo apt-get update && sudo apt-get upgrade   
$ sudo apt install python3 && python3-pip
$ sudo pip3 install telethon

With everything installed, we will clone the repository like this:

$ git clone https://github.com/VycktorStark/Userbot.git

To add your token to the project, I advise you to configure your ".bashrc", putting something like:

export APIKEYHASID="12918981"
export APIKEYHASID="dFwnfweFw2oju28ru239r8389iEJOIJO"
export YOURID="-10001291898109"
export GROUPSNAME="MEU GRUPO"

Or just configure the tools.py, to obtain a key and ID to use this project, you must follow these steps:

  • Log in to your Telegram account with the phone number of the developer account to be used.
  • Click on API Development Tools.
  • A Create new application window will be displayed. Fill in your registration details. It is not necessary to enter any URL and only the first two fields (application title and short name) can be changed at this time.
  • Click on Create application at the end. Remember that your API hash is secret and Telegram cannot revoke it. Don't post anywhere!

⚠️ Note: This ID and the API hash are used by the application, not the phone number. You can use this API ID and hash with any phone number or even for bot accounts

Boot process

  • To start the bot, run: sudo ./main.py
  • To stop the bot, press Ctrl + C. You can also start the bot with python3 main.py, to stop the bot, press Ctrl + C.

Also read the Telethon, lib documentation used to create this project.

About

This is a project that will transform your user account or an alternative number belonging to Telegram, into a bot account.

Topics

Resources

License

Stars

Watchers

Forks

Languages