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

javascript · 26 lines

Raw
1/**#command2name: /kick3answer: 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 kick." });15  return;16}17Api.banChatMember({18  chat_id: chat.id,19  user_id: reply.from.id20}, function(success) {21  Api.unbanChatMember({22    chat_id: chat.id,23    user_id: reply.from.id24  });25  Api.sendMessage({ chat_id: chat.id, text: "👢 User has been kicked from the group." });26});