NimroozSoftware/free_temp_gmail_botPublic · Bot Template
AIThis Persian-language Telegram bot offers temporary email addresses and extracts OTP/verification codes from incoming messages. It uses Libs.mcl to enforce mandatory channel subscriptions before showing the main menu, and provides inline keyboard actions for creating a temp email, viewing stats, and getting help. The callback handler processes provider selection, join verification, and menu navigation via update.callback_query and Api.sendMessage.
Utilitytemp emailgmailotpverification codeinline keyboardcallback query
2 commands1 envUpdated 28d agoCreated Jul 25, 2026
commands/_start.js
javascript · 66 lines
1/**#command2name: /start3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/*Command: /start13need_reply: false14*/15 16const REQUIRED_CHANNELS = ["@Nimrooznow", "@Nimrooz_Soft"];17 18function escapeMd(text) {19 return String(text ?? "").replace(/([_*`\[\]])/g, "\\$1");20}21 22function getMainMenuKeyboard() {23 return {24 inline_keyboard: [25 [{ text: "📧 ساخت ایمیل موقت", callback_data: "choose_provider" }],26 [27 { text: "📊 آمار", callback_data: "stats" },28 { text: "❓ راهنما", callback_data: "help" }29 ]30 ]31 };32}33 34let check;35try {36 check = await Libs.mcl.check(user.id, REQUIRED_CHANNELS);37} catch (e) {38 await Api.sendMessage({39 chat_id: chat.id,40 text: "⚠️ خطا در بررسی عضویت کانالها. چند لحظه دیگه دوباره امتحان کن."41 });42 return;43}44 45if (!check.all_joined) {46 const btn = Libs.mcl.getBtn(check.left);47 btn.push([{ text: "✅ عضو شدم، بررسی کن", callback_data: "check_join" }]);48 await Api.sendMessage({49 chat_id: chat.id,50 text: "🔒 *برای استفاده از ربات، اول باید عضو کانال(های) زیر بشی:*",51 parse_mode: "Markdown",52 reply_markup: { inline_keyboard: btn }53 });54 return;55}56 57await Api.sendMessage({58 chat_id: chat.id,59 text: "👋 *سلام! به ربات ایمیل موقت خوش اومدی*\n\n" +60 "📮 با این ربات میتونی ایمیل موقت بسازی\n" +61 "و کدهای تایید رو دریافت کنی.\n\n" +62 "⚠️ *فقط از دکمههای زیر استفاده کن*\n" +63 "👇 *یکی رو انتخاب کن:*",64 parse_mode: "Markdown",65 reply_markup: getMainMenuKeyboard()66});