Header Ads Widget

Telegram mini app Welcome Massage

Telegram mini web app welcome message source code  free .. 

Source code 
# ───── 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://vasnat123.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
)

Post a Comment

0 Comments