Back to Features
Content Locks
Block specific types of content with simple toggles. Keep your group focused by restricting links, media, and other content types.
Overview
Content locks allow you to restrict what members can post in your group. When a lock is enabled, any message containing that content type is automatically deleted.
Admins and whitelisted users are exempt from content locks.
Available Locks
Lock Links
Delete messages containing URLs and external links. Useful for preventing spam, phishing, and self-promotion.
Lock Media
Delete photos, videos, GIFs, and documents. Keep discussions text-only or prevent inappropriate media.
Mini App Configuration
Open /app → Settings → Content Locks
Lock Links
Delete messages containing URLs
Toggle
Lock Media
Delete photos, videos, documents
Toggle
Bot Commands
/lock linksBlock all external links/lock mediaBlock photos, videos, and documents/unlock linksAllow links again/unlock mediaAllow media again/unlock allRemove all content locks/locksView current lock statusTechnical Details
- • Database fields: lock_links (boolean), lock_media (boolean)
- • Detection: URL regex for links, Telegram message entity types for media
- • Logging: Blocked content is logged to admin logs with action "link_blocked" or "media_blocked"
- • Exemptions: Group admins and bot administrators bypass locks