Giter Site home page Giter Site logo

securejoinbot's Introduction

Secure Generation of Invite links for Private Telegram groups

Deploy

Do you own a private group but don't want to have a single public link which can be easily circulated and be misused? Here's your solution. Using this bot you can generate limited user, limited time links for users to join your private group while maintaining security.

How to create your own bot using this repository:

  1. Clone or Fork this repository.
  2. Create a heroku app and connect to your forked repository. (Alternatively you can also host it on your VPS or Raspberry Pi)
  3. Create a redis database in redislabs.com or use Redis addon on heroku.
  4. Rename the sample.env file to .env and fill in all the required details.
  5. Create a bot in @Botfather and get the BOT_TOKEN and paste it in .env
  6. Customize the bot messages in strings.py according to your wish.
  7. Start the bot.

OR just click on the "Deploy to Heroku" button above.

Features:

  1. Admins can generate limited expiry links via inline mode using @\<yourbotname\> link. Supports if admin approval is required for users to join the group using the link. (To turn this on, set ADMIN_APPROVAL to True)
  2. Users can generate links using /link command, that expires in specified number of days/hours/seconds and is only valid for a single user (customizable to allow more users per link, check sample.env). https://t.me/<yourbotname>?start=link will take the user to the bot and automatically generate a link without having to send /link.
  3. Admins can view the logs in their log channels (NOTIF_CHANNEL_ID needs to be specified in .env) where the bot should added as an admin.
  4. Admins can reset the limit to generate more invite links in the bot PM using /resetlimit command.
  5. Admins can revoke any link by clicking on "Revoke" button under inline generated links or user generated links in the log channel. (/revoke command still work as a reply to any invite link generated by the bot)
  6. Admins can view stats related to how many users have started the bot and generated invite links using /stats command.

securejoinbot's People

Contributors

suhasa010 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.