Locks are the blunt instrument: lock url and every link from a regular member disappears. Lock sticker, forward, invitelink, reaction and so on, 51 types in all. Admins and approved members are never affected.
A punishment per lock#
On its own, a lock just deletes. Add a reason and an action after ### to punish the sender too, per type:
/lock invitelink ### No promoting other chats {ban}
/lock url ### No links please, {first} {rules} {warn}
Actions are {warn}, {mute}, {kick}, {ban}, the timed {tmute 6h} and {tban 3d}, and silent versions like {sban}.
The allowlist#
Lock links but still allow your own website? Add it to the allowlist. It takes sites, @usernames and chat ids, commands, cashtags, sticker packs and custom emoji packs.
Lock types#
| Type | What it covers |
|---|---|
all | Every message (service notices aside) |
album | Photos, videos or files sent together as an album |
anonchannel | Messages posted on behalf of a channel allowlist |
audio | Music and other audio files |
bot | Adding bots: bots added by non-admins are removed again |
botlink | Links to bots allowlist |
button | Messages that carry inline buttons |
cashtag | Cashtags such as $BTC allowlist |
checklist | Telegram checklists |
cjk | Chinese, Japanese or Korean characters |
collage | Rich messages containing a photo collage |
command | Messages that start with a /command allowlist |
comment | Comments on channel posts from people who haven't joined the group |
contact | Shared contacts |
cyrillic | Cyrillic letters (Russian, Ukrainian, Serbian...) |
document | Files, including photos and videos sent uncompressed |
email | Email addresses |
emoji | Any emoji, custom ones included |
emojicustom | Custom (premium) emoji allowlist |
emojigame | Dice, darts, bowling and the other emoji games |
emojionly | Messages made of nothing but emoji |
externalreply | Replies that quote a message from another chat allowlist |
forward | Anything forwarded, from anywhere allowlist |
forwardbot | Messages forwarded from bots allowlist |
forwardchannel | Messages forwarded from channels allowlist |
forwardstory | Forwarded stories allowlist |
forwarduser | Messages forwarded from people allowlist |
game | Bot games |
gif | GIFs and other animations |
guestbot | Messages from guest bots that someone called into the chat allowlist |
inline | Messages sent through an inline bot (like @gif) allowlist |
invitelink | Links to groups and channels allowlist |
location | Locations and venues |
outsidereaction | Reactions from people who aren't members of the group |
phone | Phone numbers |
photo | Photos |
poll | Polls and quizzes |
reaction | Reactions to messages |
richmessage | Rich messages with tables, slideshows and similar layouts |
rtl | Right-to-left text (Arabic, Persian, Hebrew...) |
slideshow | Rich messages containing a slideshow |
spoiler | Spoiler text and media hidden behind a spoiler |
sticker | Stickers of any kind allowlist |
stickeranimated | Animated and video stickers, premium ones included allowlist |
stickerpremium | Stickers with premium effects allowlist |
text | Any text, media captions included |
url | Web links allowlist |
video | Videos |
videonote | Round video messages |
voice | Voice messages |
zalgo | Text piled up with combining marks (zalgo) |
Commands#
Admins
/lock <types>
Locks one or more types.
/lock <types> ### [reason] [{action}]
Locks with a custom reason and action.
/unlock <types>
Unlocks them.
/unlock all unlocks everything./locks
What's locked, with custom reasons and actions.
/locks list shows every type./locktypes
Every lock type with a short explanation.
/lockwarns [on/off]
Also warn members who send locked content. Off by default.
/antichannelmode <on/off>
Delete messages sent as a channel and ban the channel. Also /antichannel.
/allowlist [items]
Lets specific things past the locks. Alone, shows the list. Also /whitelist.
/rmallowlist <items>
Takes items off the allowlist. Also /unallowlist.
Chat owner
/rmallowlistall
Clears the whole allowlist, after you confirm.
Examples#
/lock sticker gif url
Three types at once.
/lock invitelink ### no promoting other chats {ban}
Ban for invite links.
/allowlist example.com @GoodChannel
Let these through anyway.
/lockwarns on
Warnings that count towards the warn limit.
Good to know#
- Edited messages and rich messages (tables, collages) are checked too.
- Locking
photo,video,audio,document,voice,videonote,poll,reactionorallalso switches it off in the group's own permissions. - The
commandlock also silences commands sent to Marina. Allowlisted commands still work. - Marina needs Delete messages, plus Ban users for actions and the
botlock.