CREATORS/OnecreatorsbotPublic · Bot Template

ProfileTelegram

AIThe bot manages a membership club called CREATORS. Users can apply for membership, view their status, and receive payment instructions. Administrators can approve or reject applications, set subscription prices, configure payment details, and review pending payments. The bot stores data in a database, sends notifications to users and admins, and handles payment receipts via photo or document uploads.

Commercemembershipsubscriptionpaymentsadmincreatortelegram
22 commands1 envUpdated 20d agoCreated Oct 6, 2026
Back to folder

commands/_profile.js

javascript · 43 lines

Raw
1/**#command2name: /profile3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12const creatorId = await db.user.get("creator_id", "UNKNOWN");13const status = await db.user.get("membership_status", "UNKNOWN");14 15const firstName = user.first_name || "-";16const lastName = user.last_name || "";17 18let statusText = status;19 20if (status === "active") {21  statusText = "فعال";22} else if (status === "expired") {23  statusText = "منقضی شده";24} else if (status === "pending") {25  statusText = "در انتظار بررسی";26} else if (status === "approved") {27  statusText = "تأیید شده";28}29 30await Api.sendPhoto({31  photo: "AgACAgQAAxkBAAIBrmrFe-bCiN_M95Dhuf2W1uqDmrGCAALSD2sb8KQxUvCBJC4ozpmBAQADAgADeQADPQQ",32 33  caption:34    "✦ CREATORS PROFILE ✦\n\n" +35 36    "👤 " + firstName + " " + lastName + "\n" +37    "🆔 " + creatorId + "\n\n" +38 39    "💳 وضعیت عضویت\n" +40    statusText,41 42  parse_mode: "HTML"43});