ayushyadav7970824760/goldensellingstore_botPublic · Bot Template
AIThis Telegram store bot lets customers browse digital products and plans, apply coupons, add funds via UPI, and receive purchased keys. It includes a full admin panel for managing products, reordering items, setting reseller prices, viewing and removing key stock, configuring UPI payment details and update links, and checking user balances. Co-admins and resellers are supported, and support tickets are forwarded to the admin.
Commercedigital_storeadmin_panelupi_paymentsresellercouponskey_stock
146 commands0 envUpdated 2d agoCreated Sep 5, 2026
commands/_cancel_plan_buy.js
javascript · 53 lines
1/**#command2name: /cancel_plan_buy3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// ❌ Cancel button on the "Confirm Your Purchase" screen14// =========================================================15 16try {17 var chatId = chat.chatid;18 19 var cancelText =20 "<blockquote>" +21 "<tg-emoji emoji-id='6219547832169273793'>❌</tg-emoji> <b>PURCHASE CANCELLED</b>\n" +22 "━━━━━━━━━━━━━━━━━━━━━\n" +23 "<tg-emoji emoji-id='6266994443262367483'>😊</tg-emoji> <i>Koi baat nahi, jab chaho phir se shop se buy kar sakte ho.</i>" +24 "</blockquote>";25 26 var buttons = [[27 { text: "Shop Menu", callback_data: "/buy_hack", style: "success", icon_custom_emoji_id: "5330237710655306682" }28 ]];29 30 if (request && request.message) {31 try {32 Api.editMessageText({33 chat_id: String(chatId),34 message_id: Number(request.message.message_id),35 text: cancelText,36 parse_mode: "HTML",37 reply_markup: JSON.stringify({ inline_keyboard: buttons })38 });39 } catch (e) {40 Api.sendMessage({ chat_id: chatId, text: cancelText, parse_mode: "HTML", reply_markup: JSON.stringify({ inline_keyboard: buttons }) });41 }42 } else {43 Api.sendMessage({ chat_id: chatId, text: cancelText, parse_mode: "HTML", reply_markup: JSON.stringify({ inline_keyboard: buttons }) });44 }45 46 var queryId = request ? (request.id || (request.callback_query && request.callback_query.id)) : null;47 if (queryId) {48 try { Api.answerCallbackQuery({ callback_query_id: String(queryId) }); } catch (e) {}49 }50 51} catch (e) {52 Bot.sendMessage("⚠️ Error: " + e.message);53}