chat-locks

Restrict specific message types for non-admin members in Telegram groups.

2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/adraalabs/skills --skill chat-locks
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: chat-locks
Source: https://github.com/adraalabs/skills/tree/main/chat-locks
Command: npx skills add https://github.com/adraalabs/skills --skill chat-locks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Admins need an easy way to temporarily restrict certain message types to manage chaos, protect chats, or enforce rules in Telegram groups.

Core Features & Use Cases

  • Lock or unlock specific message types (media, links, stickers, polls, all, or messages) for all non-admin members.
  • Provide a /locks overview to display current active locks and their scope.
  • Store lock state and apply permissions via Telegram's setChatPermissions or per-user restrictions to enforce the policy.

Quick Start

Ask the bot to enable a lock on media for all non-admin members in the group.

Frequently Asked Questions about chat-locks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I restrict specific message types like media and stickers in a Telegram group?▼

You can restrict specific message types in a Telegram group by locking chat activity for all non-admin members. This applies Telegram's setChatPermissions to block media, links, stickers, polls, or all messages.

What is the best way to temporarily lock a Telegram chat to manage spam?▼

Locking a Telegram chat to manage spam involves restricting specific message types for non-admin members. You can selectively lock media, links, stickers, or polls to manage chaos and enforce group rules without banning users.

How can I check which chat restrictions are currently active in my Telegram group?▼

You can check active chat restrictions in your Telegram group by issuing the /locks command. This displays an overview of current locks and their scope, showing exactly which message types are restricted for non-admin members.

Does Telegram setChatPermissions support locking individual message types like polls?▼

Yes, Telegram setChatPermissions supports locking individual message types like polls. The system stores the lock state and enforces the policy by restricting specific message types or applying per-user restrictions for non-admin members.

Are per-user restrictions applied when locking chat activity for non-admin members?▼

Yes, per-user restrictions are applied when locking chat activity for non-admin members. The system uses Telegram's setChatPermissions or per-user restrictions to enforce the lock policy across the group.