CodminBot — User Manual

CodminBot helps Telegram group admins moderate chats, keep an action journal, and automate routine checks.

Quick start

  1. Add the bot to your group and make it an admin with rights to delete messages, restrict members and pin messages.
  2. Create a journal chat (group, supergroup or channel), add the bot there and give it admin rights so it can post.
  3. Connect the journal: run /set_log_group <chat_id> in your group, or pick the journal in the bot menu. The selection is valid for 15 minutes.
  4. BotFather → Group Privacy may stay enabled when the bot is a group admin; without admin rights the bot sees only commands, mentions and replies.
Commands are for group admins and the owner. Commands from non-admins are deleted and may be written to the journal.

Commands

The badge shows the minimum plan: Free (all plans), Advanced+ (Advanced and Pro), Pro (Pro only). Plans and limits

Moderation commands take the target from a reply, a numeric ID or @username; the reason you add is written to the journal.

Where listed under Flags, -s/-save skips only the explicit delete of the target (including known album parts); the command message is still cleaned. -n/-notify keeps the bot notice in the chat (deleted after 10 seconds by default). /ban -s cannot promise message retention (Telegram may revoke_messages).

Setup and connection

/start — Open the private menu and start onboarding.
Syntax: /start
Private chat with the bot.
Examples
/start
Notes
  • Not a group moderation command.
/cancel — Cancel the current connection wizard.
Syntax: /cancel
Private chat with the bot.
Examples
/cancel
Notes
  • Use it to abort picking a group or journal.
/set_log_group — Connect a journal chat to this group.
Syntax: /set_log_group <chat_id>
In the group you are connecting, as an admin.
Examples
/set_log_group -1001234567890
Notes
  • chat_id is required: the Telegram ID of the journal chat.
  • The journal can be a group, supergroup or channel; the bot needs rights to post there.
  • Until a journal is connected, commands that write audit records fail with a journal error.

Moderation

/ban Free — Permanently ban one or more users.
Syntax: /ban [user...] [reason] [-s|-save] [-n|-notify]
Group or supergroup; admins.
Aliases: /b (Pro)
Flags: -s/-save, -n/-notify
Examples
/ban (reply)
/ban @user spam
/ban -s -n @user
Notes
  • Several targets can be given in one command.
  • Stage order: checks → snapshot → ban → explicit target deletes → command cleanup → independent public + journal.
  • Album reply: deletes all known parts of the same media_group_id; incomplete albums are reported honestly; -s skips target delete only.
  • /ban -s cannot promise message retention (Telegram revoke_messages).
/unban Free — Lift a ban so the user can rejoin.
Syntax: /unban [user] [-n|-notify]
Group or supergroup; admins.
Aliases: /ub (Pro)
Flags: -n/-notify
Examples
/unban @user
/unban 123456789
/unban -n @user
Notes
  • The user is not added back automatically.
/mute Free — Stop a user from sending messages temporarily or permanently.
Syntax: /mute [user...] [duration] [reason] [-s|-save] [-n|-notify]
Group or supergroup; admins.
Aliases: /m (Pro)
Flags: -s/-save, -n/-notify
Examples
/mute 10m (reply)
/mute @user 2h spam
/mute @user forever
Notes
  • Durations: 10m, 2h, 1d, forever (also 0, inf, permanent); the default is 1d.
  • Reply to a message or enter user IDs or names in a separate command.
/unmute Free — Restore a user’s permission to send messages.
Syntax: /unmute [user] [-n|-notify]
Group or supergroup; admins.
Aliases: /um (Pro)
Flags: -n/-notify
Examples
/unmute (reply)
/unmute @user
Notes
  • Restores the right to send messages.
/warn Advanced+ — Warn a user. At the warning limit, the user can be muted automatically.
Syntax: /warn [user] [reason] [-s|-save] [-n|-notify]
Group or supergroup; admins.
Aliases: /w (Pro)
Flags: -s/-save, -n/-notify
Examples
/warn (reply)
/warn -s -n spam
Notes
  • After 3 warnings by default, users are muted automatically in supergroups. Basic groups only count warnings.
  • Reply to a message or enter user IDs or names in a separate command.
/delete Advanced+ — Delete the message you replied to or the available parts of its album.
Syntax: /delete [reason] [-s|-save] [-n|-notify]
Group or supergroup; admins.
Aliases: /d, /del (Pro)
Flags: -s/-save, -n/-notify
Examples
/delete (reply)
/delete flood
/delete -s keep for audit
/delete -n reason
Notes
  • A reply is required; there is no message argument.
  • Writes a #deleted record to the journal.
  • -s keeps the message or album, and writes a journal entry. -n confirms removal after the deletion and journal entry are complete.

Chat control and pins

/open Free — Open the chat so members can write.
Syntax: /open
Group or supergroup; admins.
Aliases: /open_chat, /open_group
Examples
/open
/open_chat
/open_group
Notes
  • A configured schedule stays on.
/close Free — Close the chat so members cannot write.
Syntax: /close
Group or supergroup; admins.
Aliases: /close_chat, /close_group
Examples
/close
/close_chat
/close_group
Notes
  • A configured schedule stays on.
/pin Free — Pin a message now or schedule a pin.
Syntax: /pin [link_or_reply] [HH:MM] [date]
Group or supergroup; admins with the pin right.
Examples
/pin (reply)
/pin https://t.me/c/123/45 18:30 01.12.2026
Notes
  • The time (HH:MM) is in UTC, not in the group schedule time zone.
  • The date is DD.MM.YYYY; a day with a month name is also accepted.
  • A scheduled pin can be removed with /delete_pin.
/delete_pin Free — Remove a scheduled pin from the queue.
Syntax: /delete_pin <message_link>
Group or supergroup; admins.
Examples
/delete_pin https://t.me/c/123/45
Notes
  • Does not unpin a message that is already pinned; use /unpin for that.
/unpin Free — Unpin a message.
Syntax: /unpin [link_or_reply]
Group or supergroup; admins with the pin right.
Examples
/unpin (reply)
/unpin https://t.me/c/123/45
Notes
  • Works by reply or by message link.

Chat summary

/summary Pro — Run a chat summary on demand.
Syntax: /summary [N]
Group or supergroup; admins.
Examples
/summary
/summary 300
Notes
  • N is the number of recent messages to summarize, from 1 to 800.
  • Summarizes stored texts from non-admins, so a journal must be connected first.

Settings and automation

  • Who changes settings: group settings in «My groups» are changed by the owner who connected the group, while they are still an admin of it. Commands work for any group admin.
  • Group language: the bot replies in the group and writes the journal in the language selected for the group; the private menu uses your own language.
  • Join-request review (Advanced+): optional challenges for people who request to join; configure them in the bot menu. Journal tags: #join_request plus #auto_review or #manual_review; #approved / #declined / #action_failed only after a confirmed Telegram result. Attempts mean answers received (timeout with no answer stays 0).
  • Ad hashtag: per-group whitelist tag; messages with it skip the spam pipeline and are logged as allowed ads. The menu shows the tag literally (underscores are not italics).
  • Chat schedule: open and close the group on a timetable in the group time zone; manual commands still work and keep the schedule on. /open
  • Journal notifications: choose administrators for each event in the bot menu or on the group card. The group card also shows the timezone.
  • Spam: a new member found in the CAS database is banned on join; the local spam model only sends an alert to the journal and never bans by itself.
  • Message storage: once a journal is connected, text messages from non-admins are stored for moderation and the chat summary. The summary is off by default.
  • Service messages: join and leave notices can optionally be removed.
  • Chat summary (Pro): turn it on in the bot menu; run it on demand with /summary

Telegram limits

  • Restricting and restoring the permission to send messages only work in supergroups. In a basic group the bot logs a /mute attempt and declines /unmute.
  • When a basic group is converted to a supergroup, Telegram gives the chat a new ID. The bot moves the group settings, stored messages and subscription to the new ID automatically; check «My groups» afterwards.
  • Telegram bots cannot delete messages older than 48 hours. /delete explains the limit and leaves the message; -s keeps it and still records the action, otherwise delete it manually. A plan does not lift this limit.
  • Anonymous admins: Telegram hides who they are, so the bot cannot match them to an account. If a group is missing from «My groups» after an anonymous admin added the bot, finish the connection in a private chat with the bot.

Support

Questions, bugs and ideas: