/set_log_group to configure a logging group/open and /closeAll commands available for admins and owner.
If non-admin send any bot command, message deletes and attempt writes in log-group (if log-group set).
/ban [user1] [user2] ... [reason]Ban one or multiple users from the group permanently.
Note: When using /ban by replying to a message, the original message (including media: photos, videos, GIFs, stickers, documents, etc.) is fully quoted in the log group.
Usage:
/ban or /ban reason[optional]/ban @username reason[optional] or /ban 123456789 reason[optional]/ban @user1 @user2 @user3 reason[optional] or /ban 123456789 987654321 reason[optional]/ban @user1 123456789 @user2 reason[optional]Examples:
/ban (when replying to a message)/ban @spammer Violating rules/ban 123456789 Spam/ban @spammer1 @spammer2 @spammer3 All spamming/ban @user1 123456789 987654321 Multiple violations/unban [user]Unban a previously banned user.
Usage:
/unban/unban @username/unban 123456789/mute [user1] [user2] ... [duration] [reason]Temporarily or permanently mute one or multiple users (prevent them from sending messages).
Note: When using /mute by replying to a message, the original message (including media: photos, videos, GIFs, stickers, documents, etc.) is fully quoted in the log group.
Duration formats:
10m or 10min - 10 minutes2h or 2hour - 2 hours1d or 1day - 1 dayforever, 0, inf, permanent, perm - permanent mute (no expiration)Usage:
/mute (default: 1 day) or /mute 10m reason/mute @user 2h Spamming or /mute 123456789 1d Violating rules/mute @user1 @user2 @user3 2h Spamming or /mute @user1 123456789 1d Violations/mute @user1 @user2 10m All spamming/mute @user forever or /mute @user1 @user2 0 Spam botsExamples:
/mute (when replying to a message, default: 1 day)/mute 10m (when replying, mute for 10 minutes)/mute @user 2h Spamming/mute 123456789 1d Violating rules/mute @user1 @user2 @user3 1d All spamming/mute @user forever (permanent mute)/mute @user1 123456789 0 Spam bots (permanent mute for multiple users)/unmute [user]Remove mute restrictions from a user.
restrict_chat_member with open permissions.unban_chat_member (no error message to main chat on failures).Usage:
/unmute/unmute @username/unmute 123456789/warn [user] [reason] [-s|-save] [-n|-notify]Issue a warning to a user.
/warn by replying to a message, the original message (including media: photos, videos, GIFs, stickers, documents, etc.) is fully quoted in the log group./warn, and bot's notification is auto-deleted. Flags (must be among first two arguments, can be used simultaneously): -s/-save — save the offending message; -n/-notify — keep bot's notification in chat.Usage:
/warn (when replying to a message)/warn @user Spam/warn 123456789 Violating rules/warn -s (reply to save the offending message)/warn -n (keep bot's notification in chat)/warn -s -n or /warn -n -s (save both offending message and bot's notification)/delete [message] [reason] [-s|-save] [-n|-notify]Delete a message. Flags (must be among first two arguments, can be used simultaneously): -s/-save — save the target message; -n/-notify — keep bot's notification in chat.
Usage:
/delete or /delete reason text/delete -n reason text/delete -s -n reason text or /delete -n -s reason text/open and /close (chat access control)Open or close the group for member messages.
/open, /close/open_chat, /close_chat, /open_group, /close_groupUsage:
/open/close/open_group/close_chat/set_log_group [group_id]Set a group for logging all bot actions.
Usage:
/set_log_group -1001234567890Note: Only group administrators can use this command.
CodminBot can automatically verify join requests with short, randomized challenges. This reduces manual review for admins and keeps the group protected from spam accounts. The feature is disabled by default and must be enabled per group. It is available only on Advanced and Pro plans (including the first-month Advanced trial). On Free plan, join request auto-review controls are locked and admins are prompted to upgrade on the website.
How it works
Challenge types
Enable or configure per group
Audit log
The log group receives: status, method, attempts, user language, and user profile flags (if available).
Note: If the bot is removed from the log group or loses send permissions, the log group configuration is cleared automatically. After restoring access, run /set_log_group again.
CodminBot automatically removes noisy Telegram service messages (when the bot has can_delete_messages):
Each deletion can be mirrored to the log group with safe Markdown escaping (including usernames/links with underscores).
/b - Shortcut for /ban/ub - Shortcut for /unban/m - Shortcut for /mute/um - Shortcut for /unmute/w - Shortcut for /warn/d or /del - Shortcut for /deletePayment may be disabled on some deployments. Manage subscriptions in the "My groups" menu or on the website.
/ban, /unban, /mute, /unmute, /open, /close/warn command/delete command/b, /ub, /m, /um, /w, /d, /del)A: Add the bot to your group, make it an administrator, and use /set_log_group to configure logging.
A: Some commands are only available on paid plans. Check your subscription plan in the "My groups" menu.
A: You'll receive a notification. Upgrade your plan in the "My groups" menu or on the website to remove daily limits.
A: Users receive warnings for rule violations. In supergroups, after 3 warnings (default), they are automatically muted for 24 hours. In regular groups the counter grows, but auto-mute is not applied (Telegram limitation).
A: Currently, the default is 3 warnings. Customization will be available in the web dashboard (coming soon).
/set_log_group to configure a logging group/set_log_group after fixing permissionsFor issues or questions:
/pin supports reply-to-message or a group message link (https://t.me/c/{group_id}/{message_id}).HH:MM, and optional date (dd.mm, dd/mm/yyyy, 1 feb, 1 february, etc.).pin_schedules and restored via background executor, so pins survive restarts/network outages./pin for the same message updates the existing scheduled time./delete_pin <message_link> removes an entry from scheduled queue./unpin unpins immediately (reply or link) and validates that the target is currently pinned.DELETE_NOTIFICATION_DELAY, default 10 sec).