Created At: 2026-11-18T04:46:40Z Completed At: 2026-11-18T04:46:40Z Command exited with code 0. Command output: // Send QR Image to user const caption = `đŸ’ŗ DEPOSIT QR GENERATED đŸ’ŗ\n` + `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + `đŸ’ĩ Amount to Pay: ₹${amount}\n` + `🆔 Order ID: ${orderId}\n` + `đŸ”ĸ Serial No: ${serialNumber}\n` + `📅 Date & Time: ${depositTime}\n\n` + `
âš ī¸ IMPORTANT: Pay the exact amount shown above. Do not reuse this QR code.\n\n` + `👉 After payment, please type & send your 12-digit UTR/Ref No here (and upload a payment screenshot if possible).\n\n` + `(⤭āĨā¤—ā¤¤ā¤žā¤¨ ⤕āĨ‡ ā¤Ŧā¤žā¤Ļ, ⤅ā¤Ēā¤¨ā¤ž 12-⤅⤂⤕āĨ‹ā¤‚ ā¤•ā¤ž UTR/Ref ⤍⤂ā¤Ŧ⤰ ā¤¯ā¤šā¤žā¤ ⤞ā¤ŋ⤖⤕⤰ ⤭āĨ‡ā¤œāĨ‡ā¤‚ ⤔⤰ ā¤šāĨ‹ ⤏⤕āĨ‡ ⤤āĨ‹ ā¤ĒāĨ‡ā¤ŽāĨ‡ā¤‚ā¤Ÿ ⤏āĨā¤•āĨā¤°āĨ€ā¤¨ā¤ļāĨ‰ā¤Ÿ ⤭āĨ€ ⤅ā¤Ē⤞āĨ‹ā¤Ą ⤕⤰āĨ‡ā¤‚āĨ¤)
\n` + `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + `💡 Send /cancel to abort the payment.`; const qrMsg = await ctx.replyWithPhoto({ source: qrBuffer }, { caption: caption, parse_mode: 'HTML', ...Markup.inlineKeyboard([ [{ text: 'Cancel Payment', callback_data: 'CANCEL_PAY_ACTION', style: 'danger' }] ]) }); // Set a timer of 3 minutes (180,000 ms) to expire the QR code setTimeout(async () => { const currentSession = sessions[userId]; if (currentSession && currentSession.orderId === orderId && currentSession.step === 'WAITING_FOR_UTR') { // Delete the QR message await ctx.telegram.deleteMessage(ctx.chat.id, qrMsg.message_id).catch(() => { }); // Do NOT delete the session, keep it active so UTR can still be processed! // Notify the user with Order ID, Serial Number, and Action Buttons const expiredMsg = `âš ī¸ Payment QR Expired / ⤕āĨā¤¯āĨ‚⤆⤰ ⤕āĨ‹ā¤Ą ā¤¸ā¤Žā¤žā¤ĒāĨā¤¤ ā¤šāĨ‹ ā¤—ā¤¯ā¤ž\n\n` + `
đŸšĢ The 3-minute payment window has expired. Please generate a new payment QR if you want to proceed.\n\n` + `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + `🆔 Order ID: ${orderId}\n` + `đŸ”ĸ Serial No: ${serialNumber}\n` + `đŸ’ĩ Expected Amount: ₹${amount}\n` + `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + `👉 Agar aapne already pay kar diya hai (If already paid):\n` + `Niche diye gaye buttons se UTR submit karein ya payment status verify karein.
`; await ctx.reply(expiredMsg, { parse_mode: 'HTML', ...Markup.inlineKeyboard([ [ { text: 'Submit UTR', callback_data: `SUBMIT_UTR_BTN_${orderId}`, style: 'primary' }, { text: 'Check Payment', callback_data: `verify_${orderId}`, style: 'success' } ], [ { text: 'Cancel', callback_data: 'CANCEL_PAY_ACTION', style: 'danger' } ] ]) }); } }, 180000); console.log(`[PAYMENT SUCCESS] QR Code sent to user ${userId}. Session set to WAITING_FOR_UTR.`);