soumyadeep/ReactItBotPublic · Bot Template
A Telegram bot that automatically replies to keywords with text or media in groups. Easy to set up and perfect for FAQs, community management, and automated responses.
8 commands0 envUpdated 14h agoCreated Jun 7, 2026
commands/_removeall.js
javascript · 41 lines · click line # to share
1/**#command2name: /removeall3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12if(chat.type == "private") return;13 14if(!(await isAdmin())){15 Api.sendMessage({16 text: "Admin only",17 reply_to_message_id: msg.message_id18 });19 return;20}21 22let prop = "filters_" + chat.id;23 24let filters = Bot.get(prop) || {};25 26let count = Object.keys(filters).length;27 28if(count === 0){29 Api.sendMessage({30 text: "No filters found.",31 reply_to_message_id: msg.message_id32 });33 return;34}35 36Bot.del(prop);37 38Api.sendMessage({39 text: `Removed ${count} filters.`,40 reply_to_message_id: msg.message_id41});