Channel Subscription
Requires users to be subscribed to a Telegram channel in order to write in the group.
How does it work?
- A non-subscribed user sends a message
- The bot deletes the message
- Displays a notice with a button to subscribe to the channel
- The notice auto-deletes after 30 seconds
- 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