adityajat/QRgeneration_botPublic · Bot Template
AIQRcode Generator appears to be a Telegram automation bot. Commands include /qr, /*, /upi, /randomqr. Observed in code: messaging, storage, games.
Utilityutility
4 commands0 envUpdated 1mo agoCreated Sep 14, 2026
commands/_upi.js
javascript · 85 lines
1/**#command2name: /upi3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let input = params ? params.trim() : "";13 14if (!input) {15 Api.sendMessage({16 text:17 "💰 UPI QR Generator\n\n" +18 "Format:\n" +19 "/upi UPI_ID\n\n" +20 "With name:\n" +21 "/upi UPI_ID | Name\n\n" +22 "With amount:\n" +23 "/upi UPI_ID | Name | Amount\n\n" +24 "Example:\n" +25 "/upi example@upi | My Shop | 100"26 });27 return;28}29 30let parts = input.split("|");31 32let upiId = parts[0].trim();33let name = parts[1] ? parts[1].trim() : "";34let amount = parts[2] ? parts[2].trim() : "";35 36if (!upiId.includes("@")) {37 Api.sendMessage({38 text: "❌ Please enter a valid UPI ID.\n\nExample:\n/upi example@upi"39 });40 return;41}42 43let upiUrl =44 "upi://pay?pa=" + encodeURIComponent(upiId);45 46if (name) {47 upiUrl += "&pn=" + encodeURIComponent(name);48}49 50if (amount) {51 let numericAmount = Number(amount);52 53 if (isNaN(numericAmount) || numericAmount <= 0) {54 Api.sendMessage({55 text: "❌ Amount must be a valid number.\n\nExample:\n/upi example@upi | My Shop | 100"56 });57 return;58 }59 60 upiUrl += "&am=" + encodeURIComponent(numericAmount.toFixed(2));61}62 63upiUrl += "&cu=INR";64 65let qrUrl =66 "https://api.qrserver.com/v1/create-qr-code/?" +67 "size=500x500" +68 "&data=" + encodeURIComponent(upiUrl);69 70let caption =71 "💰 UPI QR Code\n\n" +72 "UPI ID: " + upiId;73 74if (name) {75 caption += "\nName: " + name;76}77 78if (amount) {79 caption += "\nAmount: ₹" + amount;80}81 82await Api.sendPhoto({83 photo: qrUrl,84 caption: caption85});