SR King FamPay Gateway guide
Telegram bot payment gateway for UPI
A Telegram bot payment gateway has to do three jobs: give each order a payment link, know when it was paid, and bring the customer back to the bot. SR King FamPay Gateway does all three with one link per order.
Updated
Open my dashboardSee how the code goes into your bot
The flow
When the customer taps Buy, your bot builds one link and sends it as a button. After paying, the customer returns to your bot through a t.me link, and your bot confirms the order before it delivers anything.
The one link
Fill in your gateway code, the amount, a new order ID for every order and the address of your bot:
https://fampaygateway.lovable.app/pay/YOURCODE/199?order_id=ORDER1001&redirect_url=https://t.me/YourBotName?start=paid_ORDER1001Order IDs for Telegram
Telegram allows only letters, numbers, dash and underscore in the start parameter, up to 64 characters. For a bot, make order IDs from those characters only, for example ORD12345678.
Confirm before delivering
Open the confirm link with the same order ID and deliver only when it says paid. Your bot can ask every 5 seconds for 5 minutes, so it learns about the payment even if the customer never comes back.
https://fampaygateway.lovable.app/api/public/order?code=YOURCODE&order_id=ORDER1001Use it with any AI
The Payment links section of the dashboard has ready Python code with your gateway code filled in, plus a message you can paste into any AI so it adds payments to your bot for you.
Questions about this topic
Does my bot need a web server?
No. A normal polling bot works: it asks the confirm link every few seconds.
Can I use it with any Python library?
Yes. The code only uses plain web requests, so it works with any Telegram library.
What if the customer does not return to the bot?
Your bot still finds out, because it keeps asking the confirm link after sending the payment link.
हिंदी में जानकारी
टेलीग्राम बॉट में UPI पेमेंट जोड़ने के लिए हर ऑर्डर का एक अलग पेमेंट लिंक बनता है। ग्राहक पेमेंट करके वापस आपके बॉट में लौटता है, और आपका बॉट एक लिंक से पक्का कर लेता है कि पैसा आया या नहीं। Python का तैयार कोड डैशबोर्ड के Connect सेक्शन में मिलता है।
