Giter Site home page Giter Site logo

tg-userbot's Introduction

TG-UserBot

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.

Documentation Status

Deploy to Heroku Directly

  • Go to https://redislabs.com/ and make a free 30 MB database and copy it's endpoint and password.
  • Clone the repository and install the requirements. Read the procedure section below.
  • Add your API keys and Redis endpoint and password in your config's telethon section.
  • Run the bot, login once till the bot running. Finally, exit the script with Ctrl + C and use the button below to deploy.
  • If the deploy button doesn't work for you, use this template link.

Deploy to Heroku

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.

Requirements

  • Python 3.7.3 or above.
  • A Telegram API key (API ID and hash).

Procedure

Clone the repository.

$ git clone https://github.com/kandnub/TG-UserBot/

Change the current directory to the cloned one.

$ cd TG-UserBot

Edit the sample_config.ini with your API key, save it and rename it to config.ini. 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

Resources

Contributing

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.

Copyright & License

tg-userbot's People

Contributors

kandnub avatar shreyansh8184 avatar shxnpie avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.