Skip to content

Command Reference

This page provides a complete reference of all commands available in Alita Robot.

  • Total Modules: 29 (27 user-facing + 2 internal)
  • Total Commands: 158
CommandDescriptionPermissionDisableableAliases
/admincacheRefresh the admin cacheAdmin
/adminlistList chat adminsEveryone
/anonadminToggle anonymous admin modeAdmin
/clearadmincacheClear the admin cacheAdmin
/demoteDemote an adminAdmin
/invitelinkGet the chat invite linkAdmin
/promotePromote a user to adminAdmin
/titleSet a custom admin titleAdmin
CommandDescriptionPermissionDisableableAliases
/delfloodToggle flood message deletionAdmin
/floodShow current flood settingsEveryone
/setfloodSet the flood trigger limitAdmin
/setfloodmodeSet the flood action modeAdmin
CommandDescriptionPermissionDisableableAliases
/antiraidToggle or configure anti-raid modeAdmin
/raidtimeSet the raid durationAdmin
/raidactiontimeSet the ban duration for raidersAdmin
/autoantiraidSet auto-raid trigger thresholdAdmin

This module has no user-facing commands. It runs as a passive background watcher.

CommandDescriptionPermissionDisableableAliases
/approveApprove a user in the groupAdmin
/unapproveRemove a user from approved listAdmin
/approvalCheck a user’s approval statusAdmin
/approvedList all approved usersAdmin
/unapproveallRemove all approved usersOwner
CommandDescriptionPermissionDisableableAliases
/banBan a userAdmin
/dbanBan a user and delete their messageAdmin
/dkickKick a user and delete their messageAdmin
/kickKick a user from the groupAdmin
/kickmeKick yourself from the groupEveryone
/restrictRestrict a user’s permissionsAdmin
/sbanSilently ban a userAdmin
/tbanTemporarily ban a userAdmin
/unbanUnban a userAdmin
/unrestrictRemove restrictions from a userAdmin
CommandDescriptionPermissionDisableableAliases
/addblacklistAdd a word to the blacklistAdmin
/blacklistAdd a word to the blacklistAdmin
/blacklistactionSet the blacklist trigger actionAdmin
/blacklistsList all blacklisted wordsEveryone
/blactionSet the blacklist trigger actionAdmin
/remallblRemove all blacklisted wordsAdmin/rmallbl
/rmallblAlias of /remallblAdmin/remallbl
/rmblacklistRemove a word from the blacklistAdmin
CommandDescriptionPermissionDisableableAliases
/captchaToggle captcha verificationAdmin
/captchaactionSet the captcha failure actionAdmin
/captchaclearClear pending captcha messagesAdmin
/captchamaxattemptsSet max captcha attemptsAdmin
/captchamodeSet captcha challenge modeAdmin
/captchapendingView pending captcha usersAdmin
/captchatimeSet captcha timeout durationAdmin
CommandDescriptionPermissionDisableableAliases
/lockLock a permission typeAdmin
/locksShow current lock settingsAdmin
/locktypesList available lock typesAdmin
/unlockUnlock a permission typeAdmin
CommandDescriptionPermissionDisableableAliases
/dmuteMute a user and delete their messageAdmin
/muteMute a userAdmin
/smuteSilently mute a userAdmin
/tmuteTemporarily mute a userAdmin
/unmuteUnmute a userAdmin
CommandDescriptionPermissionDisableableAliases
/delDelete a replied-to messageAdmin
/purgePurge messages from replied-to onwardsAdmin
/purgefromSet purge start pointAdmin
/purgetoPurge to a specific messageAdmin
CommandDescriptionPermissionDisableableAliases
/dwarnWarn a user and delete their messageAdmin
/resetallwarnsReset all warnings for all usersAdmin
/resetwarnReset warnings for a userAdmin
/resetwarnsReset warnings for a userAdmin
/rmwarnRemove a warning from a userAdmin
/setwarnlimitSet the warn limit before actionAdmin
/setwarnmodeSet the warn action modeAdmin
/swarnSilently warn a userAdmin
/unwarnRemove a warning from a userAdmin
/warnWarn a userAdmin
/warningsGet the chat’s warning settingsAdmin
/warnsShow warning count for a userEveryone
CommandDescriptionPermissionDisableableAliases
/addfilterAdd a keyword filterAdmin
/filterAdd a keyword filterAdmin
/filtersList all active filtersEveryone
/removefilterRemove a keyword filterAdmin
/rmfilterRemove a keyword filterAdmin
/stopRemove a keyword filterAdmin
/stopallRemove all filtersAdmin
CommandDescriptionPermissionDisableableAliases
/markdownhelpShow markdown formatting guideEveryone/formatting
/formattingAlias of /markdownhelpEveryone/markdownhelp
CommandDescriptionPermissionDisableableAliases
/addreactionAdd an auto-reaction for a keywordAdmin
/removereactionRemove a reaction for a keywordAdmin
/reactionsList configured reactionsEveryone
/resetreactionsClear all reactionsAdmin
CommandDescriptionPermissionDisableableAliases
/autoapproveToggle auto-approve join requestsAdmin
/cleangoodbyeToggle goodbye message cleanupAdmin
/cleanserviceToggle service message deletionAdmin
/cleanwelcomeToggle welcome message cleanupAdmin
/goodbyeShow current goodbye settingsAdmin
/resetgoodbyeReset goodbye to defaultAdmin
/resetwelcomeReset welcome to defaultAdmin
/setgoodbyeSet the goodbye messageAdmin
/setwelcomeSet the welcome messageAdmin
/welcomeShow current welcome settingsAdmin
CommandDescriptionPermissionDisableableAliases
/addnoteSave a noteAdmin
/clearRemove a noteAdmin
/clearallRemove all notesAdmin
/getRetrieve a saved noteEveryone
/notesList all saved notesEveryone
/privnoteToggle private note deliveryAdmin/privatenotes
/privatenotesAlias of /privnoteAdmin/privnote
/rmnoteRemove a noteAdmin
/saveSave a noteAdmin
/savedList all saved notesEveryone
CommandDescriptionPermissionDisableableAliases
/clearrulesbtnReset the rules button textAdmin
/clearrulesbuttonReset the rules button textAdmin
/privaterulesToggle private rules deliveryAdmin
/resetrulesReset all group rulesAdmin/clearrules
/clearrulesAlias of /resetrulesAdmin/resetrules
/resetrulesbtnReset the rules button textAdmin
/resetrulesbuttonReset the rules button textAdmin
/rulesShow the group rulesEveryone
/rulesbtnSet the rules button textAdmin
/rulesbuttonSet the rules button textAdmin
/setrulesSet the group rulesAdmin
CommandDescriptionPermissionDisableableAliases
/idGet user or chat IDEveryone
/infoGet user informationEveryone
/pingCheck bot response latencyEveryone
/removebotkeyboardRemove a stuck bot keyboardEveryone
/statShow message count for the chatEveryone
/tellEcho a message via the botEveryone
/trTranslate text to another languageEveryone
CommandDescriptionPermissionDisableableAliases
/reportReport a user to adminsEveryone
/reportsToggle reporting for the groupAdmin
CommandDescriptionPermissionDisableableAliases
/allowconnectToggle connection permissionsAdmin
/connectConnect to a group from PMEveryone
/connectionShow current connection statusEveryone
/disconnectDisconnect from current groupEveryone
/reconnectReconnect to last connected groupEveryone
CommandDescriptionPermissionDisableableAliases
/disableDisable a command in this chatAdmin
/disableableList commands that can be disabledAdmin
/disabledList currently disabled commandsAdmin
/disabledelToggle deletion of disabled commandsAdmin
/enableRe-enable a disabled commandAdmin
CommandDescriptionPermissionDisableableAliases
/aboutShow bot information and linksEveryone
/donateShow donation informationEveryone
/helpShow help menu with module listEveryone
/startShow welcome message with navigation menuEveryone
CommandDescriptionPermissionDisableableAliases
/langChange the bot languageUser/Admin
CommandDescriptionPermissionDisableableAliases
/exportExport all group settings to a JSON fileAdmin
/importRestore settings from a backup fileOwner
/resetReset all settings to defaultOwner
CommandDescriptionPermissionDisableableAliases
/antichannelpinToggle anti-channel pin modeAdmin
/cleanlinkedToggle linked channel message cleanupAdmin
/permapinPin a message permanentlyAdmin
/pinPin a replied-to messageAdmin
/pinnedGet the current pinned messageEveryone
/unpinUnpin the current pinned messageAdmin
/unpinallUnpin all pinned messagesAdmin
CommandDescriptionPermissionDisableableAliases
/addsudoGrant sudo permissions to a userOwner
/adddevGrant developer permissions to a userOwner
/chatinfoDisplay detailed information about a chatDev/Owner
/chatlistGenerate and send a list of all active chatsDev/Owner
/leavechatForce the bot to leave a specified chatDev/Owner
/remdevRevoke developer permissions from a userOwner
/remsudoRevoke sudo permissions from a userOwner
/statsDisplay bot statistics and system infoDev/Owner
/teamusersList all team membersTeam

No commands — passive background tracker. See module page for details.

CommandModuleDescriptionPermission
/aboutHelpShow bot information and linksEveryone
/addblacklistBlacklistsAdd a word to the blacklistAdmin
/addreactionReactionsAdd an auto-reaction for a keywordAdmin
/adddevDevsGrant developer permissions to a userOwner
/addfilterFiltersAdd a keyword filterAdmin
/addnoteNotesSave a noteAdmin
/admincacheAdminRefresh the admin cacheAdmin
/adminlistAdminList chat adminsEveryone
/addsudoDevsGrant sudo permissions to a userOwner
/allowconnectConnectionsToggle connection permissionsAdmin
/anonadminAdminToggle anonymous admin modeAdmin
/antiraidAntiRaidToggle or configure anti-raid modeAdmin
/antichannelpinPinsToggle anti-channel pin modeAdmin
/approvalApprovalsCheck a user’s approval statusAdmin
/approveApprovalsApprove a user in the groupAdmin
/approvedApprovalsList all approved usersAdmin
/autoantiraidAntiRaidSet auto-raid trigger thresholdAdmin
/autoapproveGreetingsToggle auto-approve join requestsAdmin
/banBansBan a userAdmin
/blacklistBlacklistsAdd a word to the blacklistAdmin
/blacklistactionBlacklistsSet the blacklist trigger actionAdmin
/blacklistsBlacklistsList all blacklisted wordsEveryone
/blactionBlacklistsSet the blacklist trigger actionAdmin
/captchaCaptchaToggle captcha verificationAdmin
/captchaactionCaptchaSet the captcha failure actionAdmin
/captchaclearCaptchaClear pending captcha messagesAdmin
/captchamaxattemptsCaptchaSet max captcha attemptsAdmin
/captchamodeCaptchaSet captcha challenge modeAdmin
/captchapendingCaptchaView pending captcha usersAdmin
/captchatimeCaptchaSet captcha timeout durationAdmin
/chatinfoDevsDisplay detailed information about a chatDev/Owner
/chatlistDevsGenerate and send a list of all active chatsDev/Owner
/cleangoodbyeGreetingsToggle goodbye message cleanupAdmin
/cleanlinkedPinsToggle linked channel message cleanupAdmin
/cleanserviceGreetingsToggle service message deletionAdmin
/cleanwelcomeGreetingsToggle welcome message cleanupAdmin
/clearNotesRemove a noteAdmin
/clearadmincacheAdminClear the admin cacheAdmin
/clearallNotesRemove all notesAdmin
/clearrulesRulesAlias of /resetrulesAdmin
/clearrulesbtnRulesReset the rules button textAdmin
/clearrulesbuttonRulesReset the rules button textAdmin
/connectConnectionsConnect to a group from PMEveryone
/connectionConnectionsShow current connection statusEveryone
/dbanBansBan a user and delete their messageAdmin
/delPurgesDelete a replied-to messageAdmin
/delfloodAntifloodToggle flood message deletionAdmin
/demoteAdminDemote an adminAdmin
/disableDisablingDisable a command in this chatAdmin
/disableableDisablingList commands that can be disabledAdmin
/disabledDisablingList currently disabled commandsAdmin
/disabledelDisablingToggle deletion of disabled commandsAdmin
/disconnectConnectionsDisconnect from current groupEveryone
/dkickBansKick a user and delete their messageAdmin
/dmuteMutesMute a user and delete their messageAdmin
/donateHelpShow donation informationEveryone
/dwarnWarnsWarn a user and delete their messageAdmin
/enableDisablingRe-enable a disabled commandAdmin
/exportBackupExport all group settings to a JSON fileAdmin
/filterFiltersAdd a keyword filterAdmin
/filtersFiltersList all active filtersEveryone
/floodAntifloodShow current flood settingsEveryone
/formattingFormattingAlias of /markdownhelpEveryone
/getNotesRetrieve a saved noteEveryone
/goodbyeGreetingsShow current goodbye settingsAdmin
/helpHelpShow help menu with module listEveryone
/idMiscGet user or chat IDEveryone
/importBackupRestore settings from a backup fileOwner
/infoMiscGet user informationEveryone
/invitelinkAdminGet the chat invite linkAdmin
/kickBansKick a user from the groupAdmin
/kickmeBansKick yourself from the groupEveryone
/langLanguagesChange the bot languageUser/Admin
/leavechatDevsForce the bot to leave a specified chatDev/Owner
/lockLocksLock a permission typeAdmin
/locksLocksShow current lock settingsAdmin
/locktypesLocksList available lock typesAdmin
/markdownhelpFormattingShow markdown formatting guideEveryone
/muteMutesMute a userAdmin
/notesNotesList all saved notesEveryone
/permapinPinsPin a message permanentlyAdmin
/pinPinsPin a replied-to messageAdmin
/pingMiscCheck bot response latencyEveryone
/pinnedPinsGet the current pinned messageEveryone
/privatenotesNotesAlias of /privnoteAdmin
/privaterulesRulesToggle private rules deliveryAdmin
/privnoteNotesToggle private note deliveryAdmin
/promoteAdminPromote a user to adminAdmin
/purgePurgesPurge messages from replied-to onwardsAdmin
/purgefromPurgesSet purge start pointAdmin
/purgetoPurgesPurge to a specific messageAdmin
/raidactiontimeAntiRaidSet the ban duration for raidersAdmin
/raidtimeAntiRaidSet the raid durationAdmin
/reactionsReactionsList configured reactionsEveryone
/reconnectConnectionsReconnect to last connected groupEveryone
/remallblBlacklistsRemove all blacklisted wordsAdmin
/removereactionReactionsRemove a reaction for a keywordAdmin
/remdevDevsRevoke developer permissions from a userOwner
/removebotkeyboardMiscRemove a stuck bot keyboardEveryone
/removefilterFiltersRemove a keyword filterAdmin
/remsudoDevsRevoke sudo permissions from a userOwner
/reportReportsReport a user to adminsEveryone
/reportsReportsToggle reporting for the groupAdmin
/resetallwarnsWarnsReset all warnings for all usersAdmin
/resetBackupReset all settings to defaultOwner
/resetgoodbyeGreetingsReset goodbye to defaultAdmin
/resetreactionsReactionsClear all reactionsAdmin
/resetrulesRulesReset all group rulesAdmin
/resetrulesbtnRulesReset the rules button textAdmin
/resetrulesbuttonRulesReset the rules button textAdmin
/resetwarnWarnsReset warnings for a userAdmin
/resetwarnsWarnsReset warnings for a userAdmin
/resetwelcomeGreetingsReset welcome to defaultAdmin
/restrictBansRestrict a user’s permissionsAdmin
/rmallblBlacklistsAlias of /remallblAdmin
/rmblacklistBlacklistsRemove a word from the blacklistAdmin
/rmfilterFiltersRemove a keyword filterAdmin
/rmnoteNotesRemove a noteAdmin
/rmwarnWarnsRemove a warning from a userAdmin
/rulesRulesShow the group rulesEveryone
/rulesbtnRulesSet the rules button textAdmin
/rulesbuttonRulesSet the rules button textAdmin
/saveNotesSave a noteAdmin
/savedNotesList all saved notesEveryone
/sbanBansSilently ban a userAdmin
/setfloodAntifloodSet the flood trigger limitAdmin
/setfloodmodeAntifloodSet the flood action modeAdmin
/setgoodbyeGreetingsSet the goodbye messageAdmin
/setrulesRulesSet the group rulesAdmin
/setwarnlimitWarnsSet the warn limit before actionAdmin
/setwarnmodeWarnsSet the warn action modeAdmin
/setwelcomeGreetingsSet the welcome messageAdmin
/smuteMutesSilently mute a userAdmin
/startHelpShow welcome message with navigation menuEveryone
/statMiscShow message count for the chatEveryone
/statsDevsDisplay bot statistics and system infoDev/Owner
/stopFiltersRemove a keyword filterAdmin
/stopallFiltersRemove all filtersAdmin
/swarnWarnsSilently warn a userAdmin
/tbanBansTemporarily ban a userAdmin
/teamusersDevsList all team membersTeam
/tellMiscEcho a message via the botEveryone
/titleAdminSet a custom admin titleAdmin
/tmuteMutesTemporarily mute a userAdmin
/trMiscTranslate text to another languageEveryone
/unapproveApprovalsRemove a user from approved listAdmin
/unapproveallApprovalsRemove all approved usersOwner
/unbanBansUnban a userAdmin
/unlockLocksUnlock a permission typeAdmin
/unmuteMutesUnmute a userAdmin
/unpinPinsUnpin the current pinned messageAdmin
/unpinallPinsUnpin all pinned messagesAdmin
/unrestrictBansRemove restrictions from a userAdmin
/unwarnWarnsRemove a warning from a userAdmin
/warnWarnsWarn a userAdmin
/warningsWarnsGet the chat’s warning settingsAdmin
/warnsWarnsShow warning count for a userEveryone
/welcomeGreetingsShow current welcome settingsAdmin

Most modules use RegisterLegacyModule in their init() function:

func init() {
modules.RegisterLegacyModule("Bans", 70, LoadBans)
}

The BotUpdates module uses the new Module interface:

func init() {
modules.RegisterModule(botUpdatesModule{moduleStruct{moduleName: "BotUpdates"}})
}

The preferred modern approach uses WrapCommand with CommandDescriptor:

helpers.WrapCommand(dispatcher, helpers.CommandDescriptor{
Name: "pin",
Aliases: []string{"permapin"},
Group: 0,
RequiredChecks: []helpers.CheckFunc{
chat_status.RequireGroup(),
chat_status.RequireBotAdmin(),
chat_status.RequireUserAdmin(),
},
Disableable: true,
}, handler)

Key types (from alita/utils/helpers/command_pipeline.go):

TypeDescription
CommandDescriptorDeclarative command configuration (Name, Aliases, Group, RequiredChecks, Disableable)
CommandContextContext passed through the command pipeline
CheckFuncPermission check function signature
WrapCommandMain pipeline builder with automatic check execution
WrapCommandRawRaw handler variant without automatic checks

Pre-built CheckFunc builders:

FunctionDescription
RequireGroup()Ensures command is used in a group
RequirePrivate()Ensures command is used in private chat
RequireBotAdmin()Ensures bot is admin
RequireUserAdmin()Ensures user is admin
RequireUserOwner()Ensures user is group owner
CanUserRestrict()Checks user can restrict members
CanBotRestrict()Checks bot can restrict members
CanUserDelete()Checks user can delete messages
CanBotDelete()Checks bot can delete messages
CanUserPromote()Checks user can promote members
CanBotPromote()Checks bot can promote members
CanUserPin()Checks user can pin messages
CanBotPin()Checks bot can pin messages