Getting started

Clara is a Telegram group management bot. Add @goclarabot to your group, then make her an admin so she can delete messages, restrict users and pin.

Quick start
/start Say hello to Clara in a private chat.
/help Browse every module from the bot itself.
/adminlist Check who the admins are in a group.

Commands marked coming soon below are documented already and are on their way to the live bot. Need help? Join the support channel.

Admin

Make it easy to promote and demote users with the admin module!

Admin commands
/promote <reply/username/mention/userid> Promote a user.
/demote <reply/username/mention/userid> Demote a user.
/adminlist List the admins in the current chat.
/admincache Update the admin cache, to take into account new admins/admin permissions.
/anonadmin <yes/no/on/off> Allow anonymous admins to use all commands without checking their permissions. Not recommended.
/adminerror <yes/no/on/off> Send error messages when normal users use admin commands. Default: on.

Sometimes, you promote or demote an admin manually, and Clara doesn't realise it immediately. This is because to avoid spamming telegram servers, admin status is cached locally.
This means that you sometimes have to wait a few minutes for admin rights to update. If you want to update them immediately, you can use the /admincache command; that'll force Clara to check who the admins are again.

Antiflood

You know how sometimes, people join, send 100 messages, and ruin your chat? With antiflood, that happens no more!

Antiflood allows you to take action on users that send more than x messages in a row. Actions are: ban/mute/kick/tban/tmute

Admin commands
/flood Get the current antiflood settings
/setflood <number/off/no> Set the number of consecutive messages to trigger antiflood. Set to '0', 'off', or 'no' to disable.
/setfloodtimer <count> <duration> Set the number of messages and time required for timed antiflood to take action on a user. Set to just 'off' or 'no' to disable.
/floodmode <action type> Choose which action to take on a user who has been flooding. Possible actions: ban/mute/kick/tban/tmute
/clearflood <yes/no/on/off> Whether to delete the messages that triggered the flood.
Examples
Set antiflood to trigger after 7 messages:
/setflood 7
Disable antiflood:
/setflood off
Set timed antiflood to trigger after 10 messages in 30 seconds:
/setfloodtimer 10 30s
Disabled timed antiflood:
/setfloodtimer off
Set the antiflood action to mute:
/floodmode mute
Set the antiflood action to a 3 day ban:
/floodmode tban 3d

AntiRaid

Some people on telegram find it entertaining to "raid" chats. During a raid, hundreds of users join a chat to spam.

The antiraid module allows you to quickly stop anyone from joining when such a raid is happening.
All new joins will be temporarily banned for the next few hours, allowing you to wait out the spam attack until the trolls stop.

Admin commands
/antiraid <optional time/off/no> Toggle antiraid. All new joins will be temporarily banned for the next few hours.
/raidtime <time> View or set the desired antiraid duration. Default 6h.
/raidactiontime <time> View or set the time for antiraid to tempban users for. Default 1h.
/autoantiraid <number/off/no> Set the number of joins per minute after which to enable automatic antiraid. Set to '0', 'off', or 'no' to disable.
Examples
Enable antiraid for 3 hours:
/antiraid 3h
Disable antiraid:
/antiraid off
Automatically enable antiraid if over 15 users join in under a minute:
/autoantiraid 15
Disable automatic antiraid:
/autoantiraid off

Approvalcoming soon

Sometimes, you might trust a user not to send unwanted content.
Maybe not enough to make them admin, but you might be ok with locks, blocklists, and antiflood not applying to them.

That's what approvals are for - approve of trustworthy users to allow them to send

User commands
/approval Check a user's approval status in this chat.
Admin commands
/approve Approve of a user. Locks, blocklists, and antiflood won't apply to them anymore.
/unapprove Unapprove of a user. They will now be subject to locks, blocklists, and antiflood again.
/approved List all approved users.
/unapproveall Unapprove ALL users in a chat. This cannot be undone.

Bans

Some people need to be publicly banned; spammers, annoyances, or just trolls.

This module allows you to do that easily, by exposing some common actions, so everyone will see!

User commands
/kickme Users that use this, kick themselves.
Admin commands
/ban Ban a user.
/dban Ban a user by reply, and delete their message.
/sban Silently ban a user, and delete your message.
/tban: Temporarily ban a user. Example time values 4m = 4 minutes, 3h = 3 hours, 6d = 6 days, 5w = 5 weeks.
/unban Unban a user.
/mute Mute a user.
/dmute Mute a user by reply, and delete their message.
/smute Silently mute a user, and delete your message.
/tmute: Temporarily mute a user. Example time values 4m = 4 minutes, 3h = 3 hours, 6d = 6 days, 5w = 5 weeks.
/unmute Unmute a user.
/kick Kick a user.
/dkick Kick a user by reply, and delete their message.
/skick Silently kick a user, and delete your message.
Examples
Mute the user with username '@username' for two hours.
/tmute @username 2h
Silently ban the user with ID 1234 for two hours.
/sban 1234 2h

Blocklists

Want to stop people asking stupid questions? or ban anyone saying censored words? Blocklists is the module for you!

From blocking rude words, filenames/extensions, to specific emoji, everything is possible.

Admin commands
/addblocklist <blocklist trigger> <reason> Add a blocklist trigger. You can blocklist an entire sentence by putting it in "quotes".
/rmblocklist <blocklist trigger> Remove a blocklist trigger.
/unblocklistall Remove all blocklist triggers - chat creator only.
/blocklist List all blocklisted items.
/blocklistmode <blocklist mode> Set the desired action to take when someone says a blocklisted item. Available: nothing/ban/mute/kick/warn/tban/tmute.
/blocklistdelete <yes/no/on/off> Set whether blocklisted messages should be deleted. Default: on.
/setblocklistreason <reason> Set the default blocklist reason to warn people with.
/resetblocklistreason Reset the default blocklist reason to default - nothing.
Top tip

Blocklists allow you to use some modifiers to match "unknown" characters. The following patterns can be used:

? matches a single occurrence of any non-whitespace character.
* matches any number of any non-whitespace character. If you want to blocklist urls, this will allow you to match the full thing.
** matches any number of any character (including spaces).

CAPTCHA

Some chats get a lot of users joining just to spam. This could be because they're trolls, or part of a spam network.
To slow them down, you could try enabling CAPTCHAs. New users joining your chat will be required to complete a test to confirm that they're real people.'

Admin commands
/captcha <yes/no/on/off> All users that join will need to solve a CAPTCHA. This proves they aren't a bot! If you use join requests, the CAPTCHA will be sent in PM.
/captchamode <button/math/text/text2> Choose which CAPTCHA type to use for your chat.
/captcharules <yes/no/on/off> Require new users accept the rules before being able to speak in the chat.
/captchamutetime <Xw/d/h/m> Unmute new users after X time. If a user hasn't solved the CAPTCHA yet, they get automatically unmuted after this period.
/captchakick <yes/no/on/off> Kick users that haven't solved the CAPTCHA. In the case of JoinRequests, users will be dismissed.
/captchakicktime <Xw/d/h/m> Set the time after which to kick CAPTCHA'd users.
/setcaptchatext <text> Customise the CAPTCHA button.
/resetcaptchatext Reset the CAPTCHA button to the default text.
Examples
Enable CAPTCHAs
/captcha on
Change the CAPTCHA mode to text.
/captchamode text
Enable CAPTCHA rules, forcing users to read the rules before being allowed to speak.
/captcharules on
Disable captcha time; users will stay muted until they solve the captcha.
/captchamutetime off
NOTE

For CAPTCHAs to be enabled, you MUST have enabled welcome messages. If you disable welcome messages, CAPTCHAs will also stop.

Clean Commands

Keep your chat clean by cleaning up commands from both users and admins!

This module allows you to delete certain command categories, for both users and admins, to ensure your chat is kept clean.
For example, you might choose to delete all user commands; this will stop users from accidentally pressing on blue-text commands in other people's messages.

Available options are:

all: Delete ALL commands sent to the group.
admin: Delete any admin-only commands sent to the group (eg /ban, /mute, or any settings changes).
user: Delete any user commands sent to the group (eg /id, /info, or /get). These commands will also be cleaned when admins use them.
other: Delete any commands which aren't recognised as being valid Clara commands.
Admin commands
/cleancommand <type> Select which command types to delete.
/keepcommand <type> Select which command types to stop deleting.
/cleancommandtypes List the different command types which can be cleaned.
Examples
Delete all commands, but still respond to them:
/cleancommand all
Delete all users commands (but still respond), as well as commands for other bots:
/cleancommand user other
Stop deleting all commands:
/keepcommand all

Note: If you are looking to stop your users from using any commands altogether, and don't want Clara to reply to them, have a look at the locks module instead. You may also want to set up log channels, to track the settings changes that your admins are making!

Clean Service

Clean up automated telegram service messages! The available categories are:

all: All service messages.
join: When a new user joins, or is added. eg: 'X joined the chat'
leave: When a user leaves, or is removed. eg: 'X left the chat'
other: Miscellaneous items; such as chat boosts, successful telegram payments, proximity alerts, webapp messages, message auto deletion changes, or checklist updates.
photo: When chat photos or chat backgrounds are changed.
pin: When a new message is pinned. eg: 'X pinned a message'
title: When chat or topic titles are changed.
videochat: When a video chat action occurs - eg starting, ending, scheduling, or adding members to the call.
Admin commands
/cleanservice <type/yes/no/on/off> Select which service messages to delete.
/keepservice <type> Select which service messages to stop deleting.
/nocleanservice <type> (same as keepservice)
/cleanservicetypes List all the available service messages, with a brief explanation.
Examples
Stop all telegram service messages:
/cleanservice all
Stop telegrams 'x joined the chat' messages:
/cleanservice join
Keep telegrams 'x pinned a message' messages:
/keepservice pin

Connections

Sometimes, you just want to add some notes and filters to a group chat, but you don't want everyone to see; This is where connections come in...

This allows you to connect to a chat's database, and add things to it without the chat knowing about it! For obvious reasons, you need to be an admin to add things; but any member can view your data. (banned/kicked users can't!)

Admin commands
/connect <chatid/username> Connect to the specified chat, allowing you to view/edit contents.
/disconnect Disconnect from the current chat.
/reconnect Reconnect to the previously connect chat
/connection See information about the currently connected chat.
Tips
Connect to a chat by ID (obtained from /id).
/connect -1001235155926
Connect to a chat by username.
/connect @ClaraSupportChat
When in a group, the connect command will create a connection to the current chat.
(in a group) /connect
When in private, the connect command will list recently connected chats.
(in private) /connect

You can retrieve the chat id by using the /id command in your chat. Don't be surprised if the id is negative; all super groups have negative ids.

Disabling

Not everyone wants every feature that Clara offers. Some commands are best left unused; to avoid spam and abuse.

This allows you to disable some commonly used commands, so no one can use them. It'll also allow you to autodelete them, stopping people from bluetexting.

Admin commands
/disable <commandname> Stop users from using "commandname" in this group.
/enable <commandname> Allow users from using "commandname" in this group.
/disableable List all disableable commands.
/disabledel <yes/no/on/off> Delete disabled commands when used by non-admins.
/disableadmin <yes/no/on/off> Stop admins from using disabled commands too.
/disabled List the disabled commands in this chat.
Examples
Stop people from using the info command:
/disable info
Enable the info command (eg, undo a disable):
/enable info
Disable all commands listed in the /disableable:
/disable all
Delete disabled commands that get used:
/disabledel on
Make sure that disabled commands are also disabled for admins:
/disableadmin on
Note

By default, disabling a command only disables it for non-admins. To stop admins from using disabled commands too, check the /disableadmin toggle.
Disabled commands are still accessible through the /connect feature.

Federationscoming soon

Ah, group management. It's all fun and games, until you start getting spammers in, and you need to ban them. Then you need to start banning more, and more, and it gets painful.
But then you have multiple groups, and you don't want these spammers in any of your groups - how can you deal? Do you have to ban them manually, in all your groups?

No more! With federations, you can make a ban in one chat overlap to all your other chats.
You can even appoint federation admins, so that your trustworthiest admins can ban across all the chats that you want to protect.

Filters

Make your chat more lively with filters; The bot will reply to certain words!

Filters are case insensitive; every time someone says your trigger words, Clara will reply something else! can be used to create your own commands, if desired.

Commands
/filter <trigger> <reply> Every time someone says "trigger", the bot will reply with "sentence". For multiple word filters, quote the trigger.
/filters List all chat filters.
/stop <trigger> Stop the bot from replying to "trigger".
/stopall Stop ALL filters in the current chat. This cannot be undone.

Formatting

Clara supports a large number of formatting options to make your messages more expressive. Take a look!

Greetings

Give your members a warm welcome with the greetings module! Or a sad goodbye... Depends!

Admin commands
/welcome <yes/no/on/off> Enable/disable welcomes messages.
/goodbye <yes/no/on/off> Enable/disable goodbye messages.
/setwelcome <text> Set a new welcome message. Supports markdown, buttons, and fillings.
/resetwelcome Reset the welcome message.
/setgoodbye <text> Set a new goodbye message. Supports markdown, buttons, and fillings.
/resetgoodbye Reset the goodbye message.
/cleanwelcome <yes/no/on/off> Delete old welcome messages after 5 minutes, or when a new person joins.

Import/Export

Some people just want to see the world burn. Others, just want to have a way of grouping their chat data in one place so they can export their configuration to other chats!

Clara allows you to import/export settings for chat, so you can quickly set up other chats using a preexisting template. Instead of setting the same settings over and over again in different chats, you can use this feature to copy the general configuration across groups.
The generated file is in standard JSON format, so if there are any settings you don't want to import to your other chats, just open the file and edit it before importing.
Exporting settings can be done by any administrator, but for security reasons, importing can only be done by the group creator.

The following modules will have their data exported:

admin
antiflood
blocklists
clean_command
clean_service
disabled
federations
filters
greetings
locks
notes
pins
raids
reports
rules
translations
warns
Chat owner commands
/export Generate a file containing all your chat data.
/import Import the settings in the replied to data file.
/reset Reset all the chat settings. This means removing all settings; federation, blocklist, filters, notes, greetings, etc.
Examples
To export only specific categories, use:
/export notes filters
Or, to import only specific categories from a file, use:
/import rules greetings

Note: To avoid abuse, this command is heavily rate limited; this is to make sure that people importing/exporting data don't slow down the bot.

Languages

Not every group speaks fluent english; some groups would rather have Clara respond in their own language.

This is where translations come in; you can change the language of the bot's replies to be in the language of your choice!

Available languages are:

AR (العربية)
AZ (azərbaycan)
BE (беларуская)
BG (български)
CA (català)
DE (Deutsch)
EL (Ελληνικά)
EN-GB (British English)
EN-PT (Pirate)
ES (español)
ES-AR (español)
ES-CO (español)
FA (فارسی)
FI (suomi)
FIL (Filipino)
FR (français)
HE (עברית)
HI (हिन्दी)
HU (magyar)
ID (Indonesia)
IT (italiano)
KO (한국어)
ML-IN (മലയാളം)
MS (Melayu)
NL (Nederlands)
PL (polski)
PT (português europeu)
PT-BR (português)
RO (română)
RU (русский)
SR (српски)
SR-CS (srpskohrvatski)
TA (தமிழ்)
TE (తెలుగు)
TR (Türkçe)
UK (українська)
UZ (o‘zbek)
VI (Tiếng Việt)
ZH-CN (中文)
ZH-TW (繁體中文)

Note: The /help and /start commands are not translated.

Admin commands
/setlang <language> Set the bot language.

Locks

Do stickers annoy you? or want to avoid people sharing links? or pictures? You're in the right place!

The locks module allows you to lock away some common items in the Telegram world; the bot will automatically delete them!

Admin commands
/lock <item(s)> Lock one or more items. Now, only admins can use this type!
/unlock <item(s)> Unlock one or more items. Everyone can use this type again!
/locks List currently locked items.
/lockwarns <yes/no/on/off> Enabled or disable whether a user should be warned when using a locked item.
/locktypes Show the list of all lockable items.
/allowlist <url/id/command/@username(s)> Allowlist a URL, group ID, channel @, bot @, command, cashtag, or stickerpack link to stop them being deleted by URL, forward, invitelink, inline, command, externalreply, anonchannel, cashtag, and sticker locks. Separate these with a space to add multiple items at once. If no arguments are given, returns the current allowlist.
/rmallowlist <url/id/@channelname(s)> Remove an item from the allowlist - url, invitelink, and forward locking will now take effect on messages containing it again. Separate with a space to remove multiple items.
/rmallowlistall Remove all allowlisted items.

Log Channels

Recent actions are nice, but they don't help you log every action taken by the bot. This is why you need log channels!

Log channels can help you keep track of exactly what the other admins are doing. Bans, Mutes, warns, notes - everything can be moderated.

Setting a log channel is done by the following steps:
- Add Clara to your channel, as an admin. This is done via the "add administrators" tab.
- Send /setlog to your channel.
- Forward the /setlog command to the group you wish to be logged.
- Congrats! all done :)

Admin commands
/logchannel Get the name of the current log channel.
/setlog Set the log channel for the current chat.
/unsetlog Unset the log channel for the current chat.
/log <category> Enable a log category - actions of that type will now be logged.
/nolog <category> Disable a log category - actions of that type will no longer be logged.
/logcategories List all support categories, with information on what they refer to.

Misc

An "odds and ends" module for small, simple commands which don't really fit anywhere.

Commands
/runs Respond with a randomly generated "run away" string.
/id Get the ID of a user, group, or channel. Can be used by reply, username, or mention.
/info Get a user's info.
/donate Donate to the bot creator.
/markdownhelp Information on how to use markdown with the bot. PM only.
/limits Show the bot's limits.

Notes

Save data for future users with notes!

Notes are great to save random tidbits of information; a phone number, a nice gif, a funny picture - anything!

User commands
/get <notename> Get a note.
#notename: Same as /get.
Admin commands
/save <notename> <note text> Save a new note called "word". Replying to a message will save that message. Even works on media!
/clear <notename> Delete the associated note.
/notes List all notes in the current chat.
/saved Same as /notes.
/clearall Delete ALL notes in a chat. This cannot be undone.
/privatenotes Whether or not to send notes in PM. Will send a message with a button which users can click to get the note in PM.

Pin

All the pin related commands can be found here; keep your chat up to date on the latest news with a simple pinned message!

User commands
/pinned Get the current pinned message.
Admin commands
/pin Pin the message you replied to. Add 'loud' or 'notify' to send a notification to group members.
/permapin <text> Pin a custom message through the bot. This message can contain markdown, buttons, and all the other cool features.
/unpin Unpin the current pinned message. If used as a reply, unpins the replied to message.
/unpinall Unpins all pinned messages.
/antichannelpin <yes/no/on/off> Don't let telegram auto-pin linked channels. If no arguments are given, shows current setting.
/cleanlinked <yes/no/on/off> Delete messages sent by the linked channel.

Privacy

The privacy module allows you to see the bot privacy policy, as well as view and delete the data the bot stores about you.

The single command which can only be used in PM:

/privacy Provides all the tools relating to privacy, such as listing the privacy policy, retrieving, and deleting your data.

Purges

Need to delete lots of messages? That's what purges are for!

Admin commands
/purge Delete all messages from the replied to message, to the current message.
/purge <X> Delete the following X messages after the replied to message.
/spurge Same as purge, but doesn't send the final confirmation message.
/del Deletes the replied to message.
/purgefrom Reply to a message to mark the message as where to purge from - this should be used followed by a /purgeto.
/purgeto Delete all messages between the replied to message, and the message marked by the latest /purgefrom.
Examples
Delete all messages from the replied to message, until now.
/purge
Mark the first message to purge from (as a reply).
/purgefrom
Mark the message to purge to (as a reply). All messages between the previously marked /purgefrom and the newly marked /purgeto will be deleted.
/purgeto

Reports

We're all busy people who don't have time to monitor our groups 24/7. But how do you react if someone in your group is spamming?

Presenting reports; if someone in your group thinks someone needs reporting, they now have an easy way to call all admins.

User commands
/report Reply to a message to report it for admins to review.
admin: Same as /report
Admin commands
/reports <yes/no/on/off> Enable/disable user reports.

To report a user, simply reply to his message with @admin or /report; Clara will then reply with a message stating that admins have been notified. This message tags all the chat admins; same as if they had been @'ed.

Note that the report commands do not work when admins use them; or when used to report an admin. Clara assumes that admins don't need to report, or be reported!

Rules

Every chat works with different rules; this module will help make those rules clearer!

User commands
/rules Check the current chat rules.
Admin commands
/setrules <text> Set the rules for this chat. Supports markdown, buttons, fillings, etc.
/privaterules <yes/no/on/off> Enable/disable whether the rules should be sent in private.
/resetrules Reset the chat rules to default.
/setrulesbutton Set the rules button name when using {rules}.
/resetrulesbutton Reset the rules button name from {rules} to default.
Examples
Get the unformatted rules text, to make them easier to edit.
/rules noformat
Set the name of the button to use when using the {rules} filling.
/setrulesbutton Press me for the chat rules

Topicscoming soon

Manage your topic settings through Clara!

Topics introduce lots of small differences to normal supergroups; this could affect how you would usually manage your chat.
For example, certain forums might want to customise which topic the bot sends welcome messages in, so they don't end up in the default "general" chat.

You can also use the bot to create, rename, close and delete your topics.

Admin commands
/actiontopic Get the action topic for this forum.
/setactiontopic Set the current topic as the default action topic for this forum.
/newtopic <name> Create a new topic.
/renametopic <name> Rename the current topic.
/closetopic Close the current topic.
/reopentopic Reopen the current closed topic.
/deletetopic Delete the current topic, and all the topic messages. Cannot be undone!

Warnings

Keep your members in check with warnings; stop them getting out of control!

If you're looking for automated warnings, go read about the blocklist module.

Admin commands
/warn <reason> Warn a user.
/dwarn <reason> Warn a user by reply, and delete their message.
/swarn <reason> Silently warn a user, and delete your message.
/warns See a user's warnings.
/rmwarn Remove a user's latest warning.
/resetwarn Reset all of a user's warnings to 0.
/resetallwarns Delete all the warnings in a chat. All users return to 0 warns.
/warnings Get the chat's warning settings.
/warnmode <ban/mute/kick/tban/tmute> View or set the chat's warn mode.
/warnlimit <number> View or set the number of warnings before users are punished.
/warntime <time> View or set how long warnings should last. Example time values: 4m = 4 minutes, 3h = 3 hours, 6d = 6 days, 5w = 5 weeks.
Examples
Warn a user.
/warn @user For disobeying the rules
Change the warning limit to 5; after 5 warnings, the warn action will trigger.
/warnlimit 5
Set all warnings to expire after 4 weeks.
/warntime 4w
Disable warn time; warnings will no long expire.
/warntime off