Skip to content

Secure Generation of Invite links for Private Telegram groups

License

Notifications You must be signed in to change notification settings

tembikelvin/securejoinbot

 
 

Repository files navigation

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.

About

Secure Generation of Invite links for Private Telegram groups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.6%
  • Shell 8.4%