Telegram Mini App Bot Code

Telegram Mini App Bot Code

🔻অত্যন্ত দুঃখের সাথে জানাচ্ছি যে, SCAMER দের অতিরিক্ত SCAM এর কারণ। ফ্রী থিম গুলো বন্ধ করে দেওয়া হয়েছে। এর থেকেও আরো সুন্দর ডিজাইন এর থিম আমাদের কাছে আছে। একদম কম টাকায় নিতে পারবেন। নিতে চাইলে এডমিন এর সাথে যোগাযোগ করুন।👇🏻

⭕Telegram: @tbpyc
⭕WhatApp: 01986118594

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

🌐যেকোন সমস্যা,, কোডিং প্রবলেম সকল সলিউশন আমাদের টেলিগ্রাম চ্যানেলে পাবে--Go Telegram Channel  

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

# ───── New Welcome Text with Styling and Better Flow ─────

welcome_text = """

<b>👋 Welcome to <u>Galaxy Network Bot</u>!</b>


🚀 <i>Earn money online with simple tasks!</i>  


<b>💵 How to Earn:</b>

✅ Invite friends and earn <b>$2.00</b> per valid referral  

🎯 <b>20 Referrals</b> = Special Bonus  

💳 <b>30 Referrals</b> = Eligible for Instant Withdrawal  


<b>⚠️ Important:</b> Fake, duplicate or inactive accounts will be rejected.  

🔐 Withdrawals are processed via Admin approval only.


<b>🌟 Start Now and Join Thousands Earning Online!</b>

"""


# ───── Initialize User Data Safely ─────

if User.getData('bot_user') is None:

    User.saveData('balance', 0)

    User.saveData('ref_count', 0)

    User.saveData('withdrawn', 0)

    User.saveData('bot_user', True)

    total_users = int(Bot.getData('total_users') or 0)

    Bot.saveData('total_users', total_users + 1)


# ───── Stylish Button Keyboard Layout ─────

keyboard = {

    "inline_keyboard": [

        [

            {"text": "🚀 Start Earning Now", "web_app": {

                "url": "https://ishifts.blogspot.com"}}

        ],

        [

            {"text": "📢 Announcements", "url": "https://t.me/galaxynets"},

            {"text": "🤝 Join Our Community", "url": "https://t.me/galaxynets"}

        ],

        [

            {"text": "📸 View Payment Proofs", "url": "https://t.me/galaxynets"},

            {"text": "📞 Contact Support", "url": "https://t.me/galaxynets"}

        ],

        [

            {"text": "▶️ Watch on YouTube", "url": "https://youtube.com/@yourchannel"}

        ],

        [

            {"text": "✅ Check Subscription Status", "callback_data": "✅ Check"}

        ]

    ]

}


# ───── Send Welcome Photo with Caption and Buttons ─────

bot.sendPhoto(

    chat_id=u,

    photo="https://i.postimg.cc/bvpshPTm/images-2-11.jpg",

    caption=welcome_text,

    parse_mode="html",

    reply_markup=keyboard

)

1 Comments

Post a Comment
Previous Post Next Post