A modular Telegram UserBot for Python which uses the Telethon library. It is made to help you do your usual client tasks without the hassle and also has some additional useful features.
Ctrl + Cand use the button below to deploy.
Incase your session becomes invalid, just run the bot locally again, it will delete your old session from Redis. Then run it again, login and exit it and restart your dyno on Heroku.
Clone the repository.
$ git clone https://github.com/kandnub/TG-UserBot/
Change the current directory to the cloned one.
$ cd TG-UserBot
sample_config.ini with your API key, save it and rename it to
You can use nano/vim or do it manually using a text editor.
$ nano sample_config.ini $ mv sample_config.ini config.ini
Install all the requirements using pip.
$ pip3 install --user -r requirements.txt
Run the UserBot once you have a valid configuration file.
$ python3 -m userbot
Either submit pull requests or create an issue on here, if not, you can join the support group and let us know. Module/command requests or ways to improve the current code is also appreciated.