Solutions
Who uses Directual and why?
What can be built on the platform?
🇬🇧
The ultimate payment system is here—Telegram Stars! A no-coder’s paradise, especially if you build stuff on Directual in the first place. Decentralized, accessible, and already widely used all over the world. Build it, rake in the cash—what’s not to like?
This article is there for the unfamiliar or the fence-sitters. See what Telegram Stars are, how they fit into Telegram Mini Apps, and how it all ties together with no-code.
Okay, let’s cut to the chase: hundreds of millions of users are messing around with bots and mini apps on Telegram every single month. They’re buying stuff, getting services, playing games—you name it. Now, Telegram's latest update lets these bots and mini apps hawk digital goods and services too.
It’s not new for businesses to sell physical stuff on Telegram through these bots and apps, but now they can push digital products as well. This means everything from e-books to online courses and game items can be sold directly on Telegram.
Telegram Stars—digital cash you buy within the app, and now they’re letting you pay for all these digital goods. You can grab these Stars through stuff like Apple, Google, or this PremiumBot thing, then blow them on whatever digital goodies you want.
These Stars go well with Apple and Google rules, so developers and users get easier access to in-app purchases right from their phones. Also, developers will soon be able to cash out their Stars for Toncoins via something called Fragment.
Try it out: @directual_stars_bot is where you can give some tips to the Directual team! Below, we'll unveil the details of how this bot operates on our platform.
Some more facts as to why it’s worthwhile to use Telegram Stars:
And here’s the pricing:
All of this can be brought together with no-code on Directual. That's right, even if you can’t code your way out of a paper bag, you can still build this stuff on Directual and get it running on Telegram. More reach, more sales, less hassle.
Telegram Bot Payments let sellers take payments for stuff directly from Telegram users, all for free.
Telegram Payments are designed right into the app, so you can trade digital goods and services for Telegram Stars, which you can turn into rewards later.
You set up a bot to sell digital goods and services. Your bot can pop invoices into chats, groups, or channels. If you've got inline mode, your bot can even send bills to other chats, like directly to someone else.
Invoices come with a photo, a description, and a big ‘Pay’ button. Hitting that button opens a special payment screen right in the app.
Since it’s all digital, all transactions go through in Telegram Stars. Users buy these Stars through regular in-app purchases or via @PremiumBot, and then use them to buy your digital stuff.
The payment part is super smooth – no need for personal info like full names, addresses, or credit card numbers.
To get started taking payments, you need a Telegram bot. Create one using @BotFather if you haven't yet.
Basically, here's what you'll do:
Note: for digital stuff, you won’t need a provider_token. That’s just for physical goods.
You can mess around with payments in Telegram Stars using Telegram’s test environment. Make sure you pick the right parameters depending on what you're selling.
Switch “Pay from Forwards” on or off when making invoices with @ShopBot to see the difference.
Make sure you get that successful_payment update before you give out the goods—just replying to a pre_checkout_query isn’t enough to seal the deal.
If the invoice was in a chat with @yourbotname, it shows up as a Receipt for the user—they can check it anytime to see their transaction details. If it was sent to a different chat, the Pay button stays active, and it’s up to the merchant bot to decide if it'll take more payments.
Before you let your merchant bot loose, make sure to check off these points:
And that’s the gist of it on the Telegram side. Now let’s talk Directual side!
Simple!
Assuming you’ve already got a Telegram bot up and running, here’s how to hook it up with Directual.
And that’s pretty much it! For the bot part, anyways.
Use the Telegram step in “Professional mode”, call the method sendInvoice, specifying the details in the body: description, title, prices and currency = XTR (the code of Telegram Stars).
When a user pays, Telegram sends a specific request with pre_checkout_query parameter. We need to catch that request and response calling answerPreCheckoutQuery method, approving the transaction.
And that is it! Anyone can build the same on Directual. Moreover, the upcoming Telegram plugin update will make the process super-easy.
Also simple.
Here are the two ways you can tweak the TMA plugin settings:
Auto log in. Set to True: it logs users in automatically when they open TMA. Set to False: users have to hit "Log in with Telegram" to get in. Use False if you're letting users log in with other methods like email or Google.
Disable registration. True means users can't log in if there isn’t a matching WebUser ID already. False automatically creates a WebUser ID when someone logs in.
If someone’s registered with TMA and later tries to log in via a web browser, they’ll need a username/password. You can generate a one-time password and shoot it over via your Telegram bot.
If you haven’t got a Telegram bot yet, kick things off in BotFather with the /newbot command. Once you’ve got your bot, stick your Directual-based app onto it as a webapp using the /newapp command. Just follow what BotFather tells you.
Boom, you’re all set! When testing, remember the login kicks in automatically when the user hits the login page.
Want to learn more about Telegram Stars, Mini Apps, bots, and whatever else they’re bringing out that’s already integrated with Directual? Come and talk to us live—the links to our communities are provided below.
Cheers, happy building!
Telegram Stars are digital currency within the Telegram app, used to buy digital goods and services directly from bots and mini apps. They are a part of Telegram Mini Apps—a wonderful, crypto-enabled addition to Telegram functionality.
Set up a Telegram bot to issue invoices for digital goods and services, handle payments via Telegram Stars, and deliver purchased items, all integrated into the app.
At the time of writing, this feature was not yet available. However, Telegram is actively working to implement it.
Yes, you can use Directual, a no-code platform, to easily create and manage Telegram bots and Telegram mini apps without any coding knowledge.
Join 22,000+ no-coders using Directual and create something you can be proud of—both faster and cheaper than ever before. It’s easy to start thanks to the visual development UI, and just as easy to scale with powerful, enterprise-grade databases and backend.