Skip to content

Admin Commands Reference ​

Owner = the user set in OWNER_ID. Sudo = users added via /addsudo.

CommandAliasWhat it doesWho
/botset/bsOpen bot settings panelOwner/Sudo
/authorize [id]/aAllow a chat/user to use the botOwner/Sudo
/unauthorize [id]/uaRemove authorizationOwner/Sudo
/users—List all users and their settingsOwner/Sudo
/addsudo [id]/asAdd a sudo user (admin)Owner only
/rmsudo [id]/rsRemove a sudo userOwner only
/blacklist [id]/blBan a user from the botOwner/Sudo
/rmblacklist [id]/rblUnban a userOwner/Sudo
/restart/rRestart the botOwner/Sudo
/restartall—Restart all bot instancesOwner/Sudo
/restartses/rsesRestart user sessions onlyOwner/Sudo
/log—Get bot log fileOwner/Sudo
/exportsession—Generate a Pyrogram string sessionOwner/Sudo
/broadcast [msg]/bcSend a message to all usersOwner only
/shell [cmd]—Run a shell commandOwner only
/exec [code]—Execute Python codeOwner only
/aexec [code]—Execute async Python codeOwner only
/clearlocals—Clear exec localsOwner only
/plugins—Plugin manager (load/unload/enable plugins)Owner only
/speedtest—Test internet speed (plugin — only if loaded via /plugins)Owner/Sudo
/addimage/aiAdd image to galleryOwner/Sudo
/images/imgView/manage image galleryOwner/Sudo
/gdclean/gdcClean Google Drive filesOwner/Sudo
/count [link]—Count files in GDrive folderOwner/Sudo
/del [link]—Delete files from GDriveOwner/Sudo

See Bot Settings for detailed explanations of every /botset option.