Telegram Bots Must Use Stars for Digital Goods, Developer Guide Explains
A developer guide explains that Telegram requires bots selling digital goods or services to accept payment in Telegram Stars (currency code XTR) rather than card providers, which are reserved for physical items. It describes the payment flow, from sending an invoice to answering a pre-checkout query within 10 seconds and then delivering the product only after a successful payment. The walkthrough includes a sample bot script using long polling and warns against common mistakes such as delivering before payment is confirmed or failing to deduplicate transactions. It also covers refunds via the refundStarPayment method, support requirements, and monthly subscriptions set with a 30-day period.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in