Commands
LiveModeration commands
Practical guide to bans, mutes, kicks, warnings and message deletion in Defendy.
Moderation commands are for immediate action in chat. Configure recurring automated policy in the WebApp, then use commands for a particular message or member.
Target a member
The safest method is to reply to the offending message. Defendy then targets its author without needing a username.
You can also provide an @username or numeric Telegram ID:
/ban @username advertising
/mute 123456789 flooding
Put the reason after the member or duration. A clear reason helps other moderators and may appear in the log.
Ban, temporary ban and unban
/ban blocks a member until /unban is used. /tban accepts a duration:
/tban 2d attempted scam
When used as a reply, the target is the original author. /dban also deletes that message, while /sban performs the action without posting a separate bot response.
A ban is stronger than a kick: a kicked member may rejoin with a valid invitation, while a banned member cannot.
Mute and unmute
/mute prevents posting until /unmute. Use /tmute for a temporary restriction:
/tmute 30m flooding
/dmute also removes the replied-to message and /smute stays silent. See time formats for supported duration syntax.
Kick
/kick removes a member without preventing a later rejoin. /dkick also removes the source message and /skick is silent.
/kick @username please complete verification again
Warnings
/warn adds warning points. When the configured threshold is reached, Defendy applies the warning action.
/warn continued off-topic posting
Use /warns to inspect the counter, /unwarn to remove the latest warning and /resetwarns to clear it. The d variants remove the source message; the s variants suppress the bot response.
A clear starter policy is three warning points, a one-hour mute at the limit and reset after 24 hours. Configure thresholds and tiers under Warnings.
Delete messages
Reply with /del to remove one message. Reply with /purge to the first message of a range; Defendy removes messages from there through the command, up to 200. The s variants perform the same work silently.
Verify the first message before purging. Telegram message deletion cannot be undone.
Troubleshooting
- Confirm the reply or member identifier is correct.
- Check your Defendy role and the bot's Telegram permissions.
- Run
/reloadafter administrator rights change. - Review the moderation log and the bot's exact response.
See All bot commands for every alias and access level.