suvo_/Example8BotPublic · Bot Template

AIThis bot implements a UPI payment gateway integration for Telegram, allowing users to pay ₹1 via UPI to unlock VIP access. The /start command checks if the user is already VIP and shows a payment button if not. The /pay command creates a payment session via an external UPI gateway API, displays a QR code and payment details, while /check_payment verifies the transaction status with signature validation before granting VIP membership. The bot uses HTTP requests, user properties for session tracking, and rich message formatting for payment UI.

Commerceupipaymentgatewayvipsubscriptionqr-code
ProfileTelegram
3 commands1 envUpdated 4d agoCreated Aug 5, 2026
Back to folder

commands/_start.js

javascript · 33 lines

Raw
1/**#command2name: /start3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12if (params && params === 'check_payment') {13  return Bot.runCommand('/check_payment')14}15 16if (!User.getProperty('isVip')) {17Api.sendMessage({18  text: "💳 Pay ₹1 to start the bot",19  reply_markup: {20    inline_keyboard: [21      [22        {23          text: "💸 Pay Now",24          callback_data: "/pay",25          style: "success"26        }27      ]28    ]29  }30});31} else {32  Bot.sendMessage('You Are vip member \n/pay');33}