indrajitghosh20006/Igstore_01botPublic Β· Bot Template

ProfileTelegram

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 8h agoCreated Oct 30, 2026
Back to folder

commands/_manage_button_setrow.js

javascript Β· 20 lines

Raw
1/**#command2name: /manage_button_setrow3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try{13 var ownerId=String(Bot.getProperty("owner_id")||"7839151435"),chatId=String(chat.chatid||user.telegramid);14 if(chatId!==ownerId&&!Bot.getProperty("co_admin_"+chatId)){Bot.sendMessage("❌ Restricted command!");return;}15 var a=String(params||"").trim().split(/\s+/),key=a[0],row=parseInt(a[1],10);16 var allowed=["shop","addfund","profile","how","lucky","share","support","download","reseller"];17 if(allowed.indexOf(key)===-1||row<1||row>5){Bot.run({command:"/manage_button"});return;}18 Bot.setProperty("menu_btn_row_"+key,row,"integer");19 Bot.sendMessage("βœ… Button moved to <b>Row "+row+"</b>.",{parse_mode:"HTML",reply_markup:JSON.stringify({inline_keyboard:[[{text:"πŸŽ› Manage This Button",callback_data:"/manage_button_actions "+key,style:"primary"}]]})});20}catch(e){Bot.sendMessage("⚠️ Error: "+e.message);}