thedkm / securejoinbot

Secure Generation of Invite links for Private Telegram groups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Secure Generation of Invite links for Private Telegram groups

You own a private group but don't want to have a single public link which can be easily propogated 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.

Features:

  1. Admins can generate limited expiry links via inline mode using "@<yourbotname> link"
  2. Users can generate links that expire in specified number of days/hours/seconds and is only valid for them (customizable to allow more users per link, check sample.env).
  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 works 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.

About

Secure Generation of Invite links for Private Telegram groups

License:GNU General Public License v3.0


Languages

Language:Python 91.3%Language:Shell 8.7%