Syntra Systems
Cases Services Products About Blog IT Caravan
+998 70 010 68 44 +7 999 900 22 12
RusEngUzb
Golden light trails forming a circle on a black background — an article about payments in a Telegram bot and the messages that follow
Bots and Telegram

Payments in a Telegram Bot and Automatic Notifications

By Nikita Zhulin · · 9 min read

There are two ways to accept payment in a Telegram bot, and the type of product decides which one applies. Physical goods and services consumed outside the messenger are paid by card through a payment provider — in Uzbekistan that means Payme and CLICK. Digital goods and subscriptions inside Telegram are sold only for Telegram Stars.

Key takeaways

  • Telegram has two payment mechanisms: physical goods and offline services go by card through a provider, digital goods and subscriptions only through Telegram Stars.
  • In Uzbekistan a bot connects to Payme and CLICK: the provider is picked in @BotFather, the contract is signed separately, and both offer a test terminal.
  • Telegram charges no commission for the Payments API and collects no payment data — the card is processed and stored by the provider.
  • After payment a bot should do more than say thank you: change the order status, open access, record the payment in the CRM and assign a task.
  • A Telegram Stars subscription runs on a fixed 30-day period; recurring card charges depend on whether the provider supports saving a card.

How payment works inside a Telegram bot

A bot never charges the card itself: it issues an invoice, and the payment provider moves the money. Telegram acts as the interface in between — it collects no payment data and charges no commission for the Payments API, while the provider processes and stores the card details.

The chain is the same for a bot and for a Mini App:

  1. The bot sends an invoice: title, description, price breakdown and currency. The provider token comes from @BotFather.
  2. The customer taps the pay button and enters card details inside Telegram or picks a saved card.
  3. Before the charge, Telegram asks the bot to confirm that the item is still available at that price. The answer must arrive within 10 seconds, otherwise the payment fails.
  4. After a successful charge the bot receives a service message about the payment with a charge identifier.
  5. The bot delivers the goods or the service and records the payment in its own database and in the CRM.

Store the charge identifier straight away: it is what you use later to find the transaction in a dispute and to issue a refund.

Important For every currency Telegram sets a minimum and a maximum invoice amount: as a rule of thumb they sit around the equivalent of $1 to $10,000, and the exact figure for each currency is published in the Payments API reference. Large orders are either split into parts or moved to the provider's own payment page.

Provider or Telegram Stars: what is paid with what

The line runs through where the customer receives what they bought. A physical product, delivery, a clinic visit, a place at an offline event — those are card payments through a provider. Access to a course, a subscription to a content channel, lifting a limit inside a service — those are digital goods.

Digital goods and services are sold inside Telegram exclusively for Telegram Stars. That is not a Telegram recommendation but a consequence of App Store and Google Play rules, and it applies even when the company runs its own website with card payments. Telegram documentation states plainly that bot developers are not allowed to accept payments for digital goods and virtual services from iOS users.

What we comparePayment through a providerTelegram Stars
What you may sellPhysical goods, delivery, offline servicesDigital goods and services, content access
How the customer paysBy card inside TelegramWith Stars bought in Telegram
What the company needsA provider contract and a till or terminalOnly a bot, no contract required
Customer dataDelivery address, phone and email can be requestedNo personal details are requested
RefundsUnder the provider's and the bank's rulesThrough the Stars refund method in the Bot API
Money reaching the companyPaid out by the provider under the contractStars are converted under Telegram's rules

For most tasks of an Uzbek business — bookings, orders, delivery, event tickets — the first column applies. Stars become mandatory when a company sells training, a subscription or gated content right inside Telegram.

Which providers a bot can use in Uzbekistan

The provider is chosen in the bot settings in @BotFather, and the set of available systems depends on the country. For Uzbekistan the list includes Payme and CLICK; both are connected the same way — a contract and a till on the provider's side, then a token in the bot settings.

The practical difference for a project is small — it lies in the contract terms and in what your audience already uses. More often both systems are connected: the customer pays with whatever app is already on their phone.

Tip Sign the provider contract before development starts. A test terminal is enough to debug the flow, but a live token is issued only to an active business with a bank account, and that is usually the longest step in the project.

If payments are needed not only in the bot but also on the website, in the customer account and in the app, the payment layer is designed separately from the bot — see billing and payments on a web platform.

Which payment scenarios are set up in a bot

An invoice in a bot is not only "buy this item". The same mechanism covers bookings, agreed instalments and subscription renewals; what differs is the logic on the bot's side.

ScenarioWhen it is neededWhat the system does
Full payment for an orderGoods in stock, a ready serviceCharges the amount, marks the order paid, starts fulfilment
Deposit or bookingAppointments, reservations, eventsCharges part of the sum, holds the slot, reminds about the balance
Payment by linkAn invoice from a manager, a sale in chatCreates an invoice link that can be sent to any chat
SubscriptionAccess to a service or gated contentCharges per period and warns before renewal
Partial paymentAn expensive order paid in partsTracks the balance and reminds about the next payment
RefundCancellation, defect, unavailable serviceIssues the refund and updates the status in the CRM

Recurring card charges are not always possible: they depend on whether the provider supports saving a card and issuing a token. For Telegram Stars subscriptions the period is fixed at 30 days, and the Bot API offers no other interval.

What happens immediately after payment

The value of a payment integration appears not at the moment of the charge but in the seconds that follow. If nothing changes after payment except a thank-you message, a manager still sorts orders by hand.

  1. The order changes status, and both the customer and the employee can see it.
  2. The customer receives a confirmation with the order contents, the amount and the next step.
  3. Whatever was paid for opens up: access, a booked time slot, a QR ticket, a pickup address.
  4. The payment is recorded in the CRM: amount, product, date, transaction identifier.
  5. A task is assigned to the responsible employee — pack the order, confirm the booking, ship it.
  6. The data travels further: to the warehouse, to delivery, to accounting.

How to connect a bot to a CRM technically, which fields to pass and what to do when the CRM is unavailable at that moment is covered in connecting a Telegram bot to a CRM.

Which messages to send after payment

After paying, a customer does not need a newsletter but answers to three questions: did the money arrive, what did I get, what happens next. Anything else is added only when the message has a measurable purpose.

A bot writes only to people who started it themselves, so the audience for such messages is built from customers rather than bought. The metrics for the notifications — delivery, taps, repeat payments — are counted the same way as in mobile apps: see push notifications in an app.

Security: what the bot keeps and what the provider keeps

Card data is stored and processed by the payment provider. The bot receives only the transaction status and the charge identifier — enough to find the operation, issue a refund and reconcile the books.

Support is a separate requirement. Bots that sell for Telegram Stars must answer the payment support command and handle customer requests, otherwise they breach the platform's terms.

Mistakes that cost you payments

Most losses come not from the technology but from gaps in the flow: the system can take money but does not know how to behave when something goes wrong.

These places have to be checked before launch, on the test terminal: run a successful payment, a cancelled one, a repeat attempt and a refund.

What it costs to add payments to a bot

There is no separate price for a "pay button": the connection is counted inside the bot project. A bot that takes requests, books appointments and issues QR tickets starts at $1,200, and payments are one of its scenarios.

The price is driven by the number of payment scenarios, the number of providers, refunds and subscriptions, and by which systems receive the data after payment. The scope of work is listed on the AI and automation service page. The provider's commission is paid separately by the company under its own contract.

How we connect payments

Syntra Systems starts with the customer journey: where they choose, where they accept the price and at which moment paying is convenient. Only then do we pick the provider and the invoice type.

Next we build the whole flow, unhappy paths included: cancelled payment, retry, refund, unavailable CRM. We verify everything on the test terminal, then switch to the live one and watch the first real payments. What a bot can do beyond payments is covered in Telegram bot development for business.

Let’s discuss your project

Tell us what you need, and we will estimate the timeline and cost and suggest a solution.

Add payments to a bot

Frequently asked questions

How does paying in a Mini App differ from paying in a bot?

The mechanism is identical: the bot issues the invoice and the Mini App opens the payment interface. The difference is convenience — a Mini App can show the catalogue, the basket and delivery costs on one screen. The rule about digital goods applies equally to both.

Does a bot need a separate contract to accept card payments?

A bot can't accept payment without a contract with the provider, and only an active business with a bank account can connect one. For Payme that means registering with Payme Business and a separate till for the bot; for CLICK it means a live terminal. While the paperwork is being arranged, the payment flow can be tested on a sandbox connection — both providers offer one.

What if a customer paid but the bot delivered nothing?

Find the transaction by the charge identifier the bot stored, and deliver manually. Then find the cause: usually it is a failure in the step after payment. To stop it happening again, delivery is built as a separate step with a retry.

Can a bot run a card-based subscription?

Only if the provider supports saving a card and charging against a token — that is a matter of the contract, not of Telegram. Without that option, the subscription runs on reminders: the bot issues an invoice before each period and the customer confirms the payment.

How do we refund a client who paid through the bot?

A card refund is processed by the payment provider under its own rules and the bank's rules — the bot sends the request and updates the order status. If the client paid with Telegram Stars, the bot refunds them itself, using the payment ID it saved at the time of payment.

Will the bot accept payment in both soums and dollars?

The currency is set on the invoice, and one bot can issue invoices in different currencies if the provider contract allows it. In practice, invoices for the local audience are issued in soums, while a separate provider is connected for customers abroad.

How do you make sure a payment notification is genuine?

A bot must not trust the customer's claim that they paid. The sources of truth are Telegram's service message about a successful payment and the provider's callback with a verified signature. The amount is recalculated on the server from the order data rather than taken from the request.

Read also