indrajitghosh20006/Igstore_01botPublic Β· Bot Template
AIThe bot provides an admin interface for a digital store, allowing the owner or coβadmins to add balances, products, plans, and categories. It supports payment workflows via UPI and Binance Pay, automatically generating QR codes and handling manual approval of deposits. The code patches inline keyboards to use premium emoji icons and includes helper functions for user and bot properties. Overall, it serves as a commerce management tool for a Telegram-based storefront.
Commercestoreadminbalanceproductplancategory
170 commands0 envUpdated 7h agoCreated Oct 30, 2026
commands/_manage_button_actions.js
javascript Β· 49 lines
1/**#command2name: /manage_button_actions3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var ownerId = String(Bot.getProperty("owner_id") || "7839151435");14 var chatId = String(chat.chatid || user.telegramid);15 var isCoAdmin = Bot.getProperty("co_admin_" + chatId);16 if (chatId !== ownerId && !isCoAdmin) { Bot.sendMessage("β Restricted command!"); return; }17 18 var key = String(params || "").trim();19 var allowed = ["shop","addfund","profile","how","lucky","share","support","download","reseller"];20 if (allowed.indexOf(key) === -1) { Bot.run({command:"/manage_button"}); return; }21 22 var defaults = {23 shop:"Shop / Store Product", addfund:"Add Balance", profile:"My Profile",24 how:"How To Use", lucky:"Lucky", share:"Share", support:"Support",25 download:"Download File", reseller:"Reseller VIP"26 };27 var defaultRows = {shop:1,addfund:2,profile:2,how:3,lucky:3,share:4,support:4,download:5,reseller:5};28 var defaultStyles = {shop:"danger",addfund:"success",profile:"primary",how:"primary",lucky:"success",share:"primary",support:"primary",download:"primary",reseller:"success"};29 var name = String(Bot.getProperty("menu_btn_name_" + key) || defaults[key]);30 var emoji = String(Bot.getProperty("menu_btn_emoji_" + key) || "Not set");31 var style = String(Bot.getProperty("menu_btn_style_" + key) || defaultStyles[key]);32 var row = parseInt(Bot.getProperty("menu_btn_row_" + key),10) || defaultRows[key];33 34 Bot.sendMessage(35 "<b>π " + name.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">") + "</b>\n\n" +36 "Current name: <code>" + name.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">") + "</code>\n" +37 "Premium Emoji ID: <code>" + emoji.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">") + "</code>\n" +38 "Button color: <b>" + style.toUpperCase() + "</b>\n" +39 "Row / Category: <b>" + row + "</b>",40 {parse_mode:"HTML",reply_markup:JSON.stringify({inline_keyboard:[41 [{text:"βοΈ Change Name",callback_data:"/manage_button_name " + key,style:"primary"}],42 [{text:"π Premium Emoji ID",callback_data:"/manage_button_emoji " + key,style:"success"}],43 [{text:"π¨ Button Color",callback_data:"/manage_button_color " + key,style:"primary"}],44 [{text:"π Row / Category",callback_data:"/manage_button_row " + key,style:"primary"}],45 [{text:"β»οΈ Reset",callback_data:"/manage_button_reset " + key,style:"danger"}],46 [{text:"β¬
οΈ Manage Button",callback_data:"/manage_button",style:"primary"}]47 ]})}48 );49} catch(e) { Bot.sendMessage("β οΈ Manage Button Error: " + e.message); }