You can accept payments from Telegram users via Telegram Bots.
Note: This article is intended for bot developers. If you're looking for a general overview of Telegram Payments, check out the Telegram blog.
Also, visit the MTProto payment documentation for a technical overview of payments from the user's perspective.
If you are new to Telegram bots and would like to learn how to create and set up a bot, please consult our Introduction to Bots and Bot FAQ.
Telegram bots can accept payments for goods and services from users as of Bot API v.3.0. Users will need Telegram v.4.0 or higher to pay for your goods and services.
From the user's perspective the payments system is completely seamless. Merchant bots can send specially formatted invoice messages to users. Such invoice messages feature a photo and description of the product along with a prominent Pay button. Tapping this button opens a special payment interface in the Telegram app. In this interface, users are prompted for additional details like shipping info, phone number, or email address.
Once they've entered all the necessary info, it is forwarded to the merchant bot. The bot can offer several shipping options for physical goods based on the address. When ready, users can enter their credit card info or choose one of their saved cards — and pay for the product. Telegram also supports Apple Pay and Android Pay. Once the transaction is done, the merchant bot sends a receipt message that contains payment details along with shipping and delivery information.
Telegram does not process payments from users and instead relies on different payment providers around the world. It is the payment providers that handle and store all sensitive information, like credit card details. Neither Telegram nor the bot developers have access to it. For the moment we support payments from more than 200 countries via the the following payment providers:
More providers are coming.
If you work for a company that provides services similar to standalone accounts in Stripe Connect, please let us know via @BotSupport (kindly include the hashtag #paymentsprovider
in your message).
Telegram does not charge any commission for using the Payments API. Note though, that most payment providers will have their own commissions. For example, Stripe in the US charges 2.9% + 30¢ per successful card charge (see the Stripe website for more details on pricing).
Telegram does not impose any limits on what products or services your bot can offer. But please note that you must comply with the rules of the payments provider you choose in our system. E.g., Stripe has a special page for prohibited businesses – you may want to consult that one before you start selling harvested organs.
Special Note: Due to Apple's limitations, bot developers are currently not allowed to accept payments for digital goods and virtual services from iOS users.
Telegram acts as a messenger between the paying user, the bot developer, and their chosen payment system. The user sends their credit card details directly to the payment system. Then the payment system's response and the shipping details entered by the user are passed to the bot developer so that they can process the order.
Since Telegram doesn‘t process the payments, we don’t store and can‘t access any sensitive data. Due to this structure, it is impossible for Telegram to handle complaints or cashbacks – any disputed payments are the responsibility of the bot developers, payment providers, and banks that participated in the exchange.
See also: Telegram Privacy Policy
Now let's look at payments via Telegram's Bot API in more detail. To start accepting payments, you need a Telegram bot, obviously. Have a chat with BotFather to create a bot if you haven't got one already.
Now you have a merchant bot that wants to offer goods or services to Telegram users. Let's call it @merchantbot
in this document. First stop is to choose and connect a payment provider. At the moment, you can use Stripe for bot payments. We will be connecting more providers in the coming months, so watch out for announcements on the @BotNews channel.
Use the /mybots
command in the chat with BotFather and choose the @merchantbot
that will be offering goods or services. Go to Bot Settings > Payments. Choose a provider, and you will be redirected to the relevant bot. Enter the required details so that the payments provider is connected successfully, go back to the chat with Botfather. The message will now show available providers. Each will have a name, a token, and the date the provider was connected. You will use the token when working with the Bot API.
While you're still developing and testing payments for your bot, use the “Stripe TEST MODE” provider. When in this mode, you can make payments without actually billing any accounts. Real cards can't be used in test mode, but you can use test cards like 4242 4242 4242 4242
(full list here). You can switch between test mode and live mode as many times as you want, but please see the live checklist before you go live.
Please note that when your merchant bot is working in test mode, it will only be able to send invoices to those Telegram users that are mutual contacts with the account of the bot's creator. So make sure that those who will help you test the payments functionality are in your contacts list.
The user contacts @merchantbot
and requests to purchase something. The bot forms an invoice message with a description of the goods or service, amount to be paid, as well as requested shipping info.
Use the sendInvoice method to do this. The provider_token parameter is where you put the token value that you've obtained earlier via Botfather. It is possible for one merchant bot to use several different tokens for different users or different goods and services.
An invoice message with a pay button can only be sent to a private chat with the user. Groups and channels are not supported. The resulting invoice message will look like this:
The user specifies shipping information or other info requested by the bot. This could be the user's full name, an email address, a phone number in international format, or a full postal address for delivery.
If a shipping address was requested and you included the parameter is_flexible, the Bot API will send an Update with a shipping_query field to the bot. The bot must respond using answerShippingQuery either with a list of possible delivery options and the relevant delivery prices, or with an error (for example, if delivery to the specified address is not possible).
The user selects a delivery option from the list (the overall amount to be paid may change at this point) and proceeds to checkout.
The user enters their payment information and presses the final pay button. At this moment the Bot API sends an Update with the field pre_checkout_query to the bot that contains all the available information about the order. Your bot must reply using answerPrecheckoutQuery within 10 seconds after receiving this update or the transaction is canceled.
The bot may return an error if it can't process the order for any reason. We highly recommend specifying a reason for failure to complete the order in human readable form (e.g. "Sorry, we're all out of rubber ducks! Would you be interested in a steel bear instead?"). Telegram will display this reason to the user.
In case the bot confirms the order, Telegram requests the payment provider to complete the transaction. If the payment information was entered correctly and the payment goes through, the API will send a receipt message of the type successful_payment from the user. Once your bot receives this message, it should proceed with delivering the goods or services purchased by the user.
For the user, the Invoice message in the UI becomes a Receipt — they can open this receipt at any time and see all the details of the transaction:
Going Viral: Deep Linking
Note the arrow button on the right of the receipt message on the screenshot above. This quick forwarding button allows the user to select multiple friends, groups, or channels and send the message to them immediately. Thanks to this button, your goods and services can spread virally — the resulting message will have a button that leads users to your bot and asks it to create a similar invoice.
For the quick forwarding button to work correctly, all your invoice messages must contain a start_parameter for creating a new invoice. More info on Deep Linking »
Once you've tested everything and confirmed that your payments implementation works, you're ready to switch to LIVE MODE. To do this, go to BotFather > /mybots > select @merchantbot
> Bot Settings / Payments and enable Stripe LIVE MODE. You will get a token that has the string :LIVE:
in the middle, e.g. 123:LIVE:XXXX
. Do not give this token to any third parties!
Before your merchant bot goes into live mode, please ensure the following:
Telegram payments currently support the currencies listed below (here's a JSON version in case you need it).
If you're using Stripe as the payments provider, supported currencies may vary depending on the country you have specified in your Stripe account (more info).
The minimum and maximum amounts for each of the currencies roughly correspond to the limit of US$ 1-10000
. The amount must be expressed in 8 digits or less, so the maximum value will be correspondingly lower for some lower-value currencies like the Serbian dinar. Note that for each currency except USD these limits depend on exchange rates and may change over time (plan ahead for this when you implement limits in your code).
Code | Title | Min amount | Max amount |
---|---|---|---|
AED | United Arab Emirates Dirham | AED 3.67 | AED 36,729.77 |
AFN | Afghan Afghani | AFN77.04 | AFN770,499.23 |
ALL | Albanian Lek | 103,65ALL | 1.036.503,96ALL |
AMD | Armenian Dram | 506.40 AMD | 5,064,028.91 AMD |
ARS | Argentine Peso | ARS 81,29 | ARS 812.939,88 |
AUD | Australian Dollar | AU$1.35 | AU$13,593.70 |
AZN | Azerbaijani Manat | 1,70 AZN | 17 024,42 AZN |
BAM | Bosnia & Herzegovina Convertible Mark | 1,63 BAM | 16.318,30 BAM |
BDT | Bangladeshi Taka | BDT 84.82 | BDT 848,209.09 |
BGN | Bulgarian Lev | 1,63 BGN | 16 367,00 BGN |
BND | Brunei Dollar | BND1,33 | BND13.372,83 |
BOB | Bolivian Boliviano | BOB 6,89 | BOB 68.963,33 |
BRL | Brazilian Real | R$ 5,37 | R$ 53.712,99 |
CAD | Canadian Dollar | CA$1.29 | CA$12,982.35 |
CHF | Swiss Franc | 0.90 CHF | 9'059.95 CHF |
CLP | Chilean Peso | CLP 767 | CLP 7.670.985 |
CNY | Chinese Renminbi Yuan | CN¥6.57 | CN¥65,788.97 |
COP | Colombian Peso | COP 3.593,96 | COP 35.939.600,00 |
CRC | Costa Rican Colón | CRC603,95 | CRC6.039.547,79 |
CZK | Czech Koruna | 21,99 CZK | 219 940,52 CZK |
DKK | Danish Krone | 6,22 DKK | 62281,60 DKK |
DOP | Dominican Peso | DOP58.30 | DOP583,030.45 |
DZD | Algerian Dinar | DZD 129.21 | DZD 1,292,100.97 |
EGP | Egyptian Pound | EGP 15.67 | EGP 156,739.00 |
EUR | Euro | 0,83 € | 8 367,65 € |
GBP | British Pound | £0.74 | £7,492.05 |
GEL | Georgian Lari | 3,31 GEL | 33 150,18 GEL |
GTQ | Guatemalan Quetzal | GTQ7.81 | GTQ78,189.48 |
HKD | Hong Kong Dollar | HK$7.75 | HK$77,523.50 |
HNL | Honduran Lempira | HNL 24.26 | HNL 242,696.97 |
HRK | Croatian Kuna | 6,32 HRK | 63.200,97 HRK |
HUF | Hungarian Forint | 300,53 HUF | 3 005 390,05 HUF |
IDR | Indonesian Rupiah | IDR14.173,80 | IDR141.738.000,00 |
ILS | Israeli New Sheqel | ₪ 3.30 | ₪ 33,051.65 |
INR | Indian Rupee | ₹74.02 | ₹740,246.00 |
ISK | Icelandic Króna | 132 ISK | 1.328.698 ISK |
JMD | Jamaican Dollar | JMD146.64 | JMD1,466,421.93 |
JPY | Japanese Yen | ¥104 | ¥1,043,485 |
KES | Kenyan Shilling | KES110.11 | KES1,101,103.66 |
KGS | Kyrgyzstani Som | 84-79 KGS | 847 972-00 KGS |
KRW | South Korean Won | ₩1,107 | ₩11,078,400 |
KZT | Kazakhstani Tenge | KZT425-77 | KZT4 257 728-09 |
LBP | Lebanese Pound | LBP 1,517.99 | LBP 15,179,998.40 |
LKR | Sri Lankan Rupee | LKR 185.83 | LKR 1,858,348.84 |
MAD | Moroccan Dirham | MAD 9.06 | MAD 90,650.22 |
MDL | Moldovan Leu | 17.25 MDL | 172,532.64 MDL |
MNT | Mongolian Tögrög | MNT2 859,66 | MNT28 596 623,62 |
MUR | Mauritian Rupee | MUR39.84 | MUR398,494.42 |
MVR | Maldivian Rufiyaa | 15.38 MVR | 153,884.98 MVR |
MXN | Mexican Peso | MX$20.13 | MX$201,363.80 |
MYR | Malaysian Ringgit | MYR4.06 | MYR40,694.99 |
MZN | Mozambican Metical | MZN74.20 | MZN742,049.65 |
NGN | Nigerian Naira | NGN381.20 | NGN3,812,057.51 |
NIO | Nicaraguan Córdoba | NIO 34.84 | NIO 348,498.82 |
NOK | Norwegian Krone | NOK 8,87 | NOK 88 719,90 |
NPR | Nepalese Rupee | NPR118.32 | NPR1,183,288.14 |
NZD | New Zealand Dollar | NZ$1.42 | NZ$14,251.75 |
PAB | Panamanian Balboa | PAB 1.00 | PAB 10,002.08 |
PEN | Peruvian Nuevo Sol | PEN 3.60 | PEN 36,030.06 |
PHP | Philippine Peso | PHP48.10 | PHP481,050.54 |
PKR | Pakistani Rupee | PKR159.45 | PKR1,594,501.88 |
PLN | Polish Złoty | 3,74 PLN | 37 481,50 PLN |
PYG | Paraguayan Guaraní | PYG 7.050 | PYG 70.508.531 |
QAR | Qatari Riyal | QAR 3.64 | QAR 36,407.50 |
RON | Romanian Leu | 4,07 RON | 40.774,96 RON |
RSD | Serbian Dinar | 98,36 RSD | 983.650,15 RSD |
RUB | Russian Ruble | 76,49 RUB | 764 941,01 RUB |
SAR | Saudi Riyal | SAR 3.75 | SAR 37,505.60 |
SEK | Swedish Krona | 8,55 SEK | 85.527,90 SEK |
SGD | Singapore Dollar | SGD1.34 | SGD13,401.00 |
THB | Thai Baht | ฿30.28 | ฿302,829.53 |
TJS | Tajikistani Somoni | 11;32 TJS | 113 296;07 TJS |
TRY | Turkish Lira | 7,81 TRY | 78.169,62 TRY |
TTD | Trinidad and Tobago Dollar | TTD6.79 | TTD67,947.94 |
TWD | New Taiwan Dollar | NT$28.54 | NT$285,499.77 |
TZS | Tanzanian Shilling | TZS2,319.43 | TZS23,194,360.34 |
UAH | Ukrainian Hryvnia | 28,50UAH | 285 003,55UAH |
UGX | Ugandan Shilling | UGX3,703 | UGX37,037,253 |
USD | United States Dollar | $1.00 | $10,000.00 |
UYU | Uruguayan Peso | UYU 42,66 | UYU 426.632,18 |
UZS | Uzbekistani Som | 10 414,99 UZS | 104 149 998,79 UZS |
VND | Vietnamese Đồng | 23.142 ₫ | 231.425.000 ₫ |
YER | Yemeni Rial | YER 250.29 | YER 2,502,970.09 |
ZAR | South African Rand | ZAR 15.44 | ZAR 154,467.70 |