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/_unmute.js

javascript · 28 lines

Raw
1/**#command2name: /unmute3answer: 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 unmute." });15  return;16}17Api.restrictChatMember({18  chat_id: chat.id,19  user_id: reply.from.id,20  permissions: {21    can_send_messages: true,22    can_send_media_messages: true,23    can_send_other_messages: true,24    can_add_web_page_previews: true25  }26}, function(success) {27  Api.sendMessage({ chat_id: chat.id, text: "🔊 User has been unmuted." });28});