aziziyanmahdiyar/ZorenixUploaderAI_UploaderbotPublic · Bot Template
AIZorenixUploader AI appears to be a Telegram automation bot. Commands include /start, /@, /!, /@@, /*, /files, /dl, /verify. Observed in code: messaging, storage, libs, keyboards, web.
Utilityutility
42 commands0 envUpdated 1mo agoCreated Sep 22, 2026
commands/lang.js
javascript · 75 lines
1/**#command2name: lang3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ═══════════ lang — تغییر زبان ربات ═══════════13let isCb = (update_type === "callback_query" && update && update.callback_query)14if (isCb) { await Api.answerCallbackQuery({ callback_query_id: update.callback_query.id }) }15 16let p = String(params || "").trim()17 18if (p === "fa" || p === "en" || p === "ar") {19 await db.bot.set("lang:" + user.id, p)20 let confirmTxt = ""21 if (p === "en") {22 confirmTxt = "✅ <b>Language changed to English!</b>"23 } else if (p === "ar") {24 confirmTxt = "✅ <b>تم تغيير لغة البوت إلى العربية بنجاح!</b>"25 } else {26 confirmTxt = "✅ <b>زبان ربات با موفقیت به فارسی تغییر یافت!</b>"27 }28 29 if (isCb && update.callback_query.message) {30 try {31 await Api.editMessageText({32 chat_id: chat.id,33 message_id: update.callback_query.message.message_id,34 text: confirmTxt,35 parse_mode: "HTML",36 reply_markup: { inline_keyboard: [[{ text: (p === "en" ? "🏠 Main Menu" : (p === "ar" ? "🏠 القائمة الرئيسية" : "🏠 منوی اصلی")), callback_data: "/start" }]] }37 })38 } catch(e){}39 } else {40 await Api.sendMessage({41 chat_id: chat.id,42 text: confirmTxt,43 parse_mode: "HTML",44 reply_markup: { inline_keyboard: [[{ text: (p === "en" ? "🏠 Main Menu" : (p === "ar" ? "🏠 القائمة الرئيسية" : "🏠 منوی اصلی")), callback_data: "/start" }]] }45 })46 }47 return Bot.run({ command: "/start", ignoreMissingCommand: true })48}49 50let curLang = await db.bot.get("lang:" + user.id, "fa")51let txt = ""52if (curLang === "en") {53 txt = "🌐 <b>Select Your Preferred Language:</b>\n\nCurrent language: <b>🇬🇧 English</b>\nPlease choose from the buttons below:"54} else if (curLang === "ar") {55 txt = "🌐 <b>اختر لغتك المفضلة:</b>\n\nاللغة الحالية: <b>🇸🇦 العربية</b>\nيرجى الاختيار من القائمة أدناه:"56} else {57 txt = "🌐 <b>انتخاب زبان ربات / Select Language / اختر لغتك:</b>\n\nزبان فعلی: <b>🇮🇷 فارسی</b>\nلطفاً زبان مورد نظر خود را انتخاب کنید:"58}59 60let rows = [61 [{ text: "🇮🇷 فارسی (Persian)" + (curLang === "fa" ? " ✅" : ""), callback_data: "lang fa", style: "primary" }],62 [{ text: "🇬🇧 English" + (curLang === "en" ? " ✅" : ""), callback_data: "lang en", style: "primary" }],63 [{ text: "🇸🇦 العربية (Arabic)" + (curLang === "ar" ? " ✅" : ""), callback_data: "lang ar", style: "primary" }],64 [{ text: (curLang === "en" ? "↩️ Back to Menu" : (curLang === "ar" ? "↩️ العودة للقائمة" : "↩️ بازگشت به منو")), callback_data: "/start", style: "danger" }]65]66 67if (isCb && update.callback_query.message) {68 try {69 await Api.editMessageText({ chat_id: chat.id, message_id: update.callback_query.message.message_id, text: txt, parse_mode: "HTML", reply_markup: { inline_keyboard: rows } })70 } catch(e) {71 await Api.sendMessage({ chat_id: chat.id, text: txt, parse_mode: "HTML", reply_markup: { inline_keyboard: rows } })72 }73} else {74 await Api.sendMessage({ chat_id: chat.id, text: txt, parse_mode: "HTML", reply_markup: { inline_keyboard: rows } })75}