inmsuvo/pcvdbotPublic · Bot Template

ProfileTelegram

Advanced AI Group Security & Moderation Bot with Anti-Link, Anti-NSFW, Anti-Spam & Auto-Warn features.

Moderationmoderationantilinkantiforwardantisnsantispamwelcome
12 commands0 envUpdated 25d agoCreated Oct 2, 2026
Back to folder

commands/_mute.js

javascript · 23 lines

Raw
1/**#command2name: /mute3answer: 4keyboard: 5parse_mode: html6aliases: 7allow_only_group: true8need_reply: true9is_web: 010#command**/11 12let reply = message.reply_to_message;13if (!reply) {14  Api.sendMessage({ chat_id: chat.id, text: "⚠️ Please reply to the user you want to mute." });15  return;16}17Api.restrictChatMember({18  chat_id: chat.id,19  user_id: reply.from.id,20  permissions: { can_send_messages: false }21}, function(success) {22  Api.sendMessage({ chat_id: chat.id, text: "🔇 User has been muted." });23});