shuxiaokai / cfworker-tgbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Block Members Not In Telegram Channel

  • This is made to work without need of a Server.
  • If a user is not subscribed to the specific channel or leaves the channel, they'll be kicked out as soon as they do any activity in the groups.

Setup

  • After deploying script, update the variables, channel id, admin id and bot token.
  • Add Bot in both channel and any number of groups.
  • Setup webhook to the Workers URL eg. https://api.telegram.org/botBOTTOKEN/setWebhook?url=https://yourworker.yourworkerhandle.workers.dev&drop_pending_updates=true&max_connections=100
  • Enjoy your Bot.

Credits

About


Languages

Language:JavaScript 100.0%