Skip to main content
Docs / Protection / Channel Sub

Channel Subscription

Requires users to be subscribed to a Telegram channel in order to write in the group.

How does it work?

  1. A non-subscribed user sends a message
  2. The bot deletes the message
  3. Displays a notice with a button to subscribe to the channel
  4. The notice auto-deletes after 30 seconds
  5. Once subscribed, the user can write normally

Configuration

Command Usage
/setchannel @channelname Enable mandatory subscription
/unsetchannel Disable mandatory subscription

Requirements: - The bot must be an administrator of the channel (to be able to verify subscriptions) - Use the channel's @ handle (e.g.: /setchannel @mychannel)

Notes

  • Group administrators are exempt
  • Verification is cached for 5 minutes (not checked on every message)
  • If the bot cannot verify the subscription (API error), the message passes normally