What Telegram Gateway is, how a verification code reaches users, how a business sets it up and pays for it, and what users should know when a code arrives.
Telegram Gateway is Telegram's service for businesses and developers that want to send login and verification codes to a user's phone number through Telegram instead of by SMS. If the phone number belongs to a Telegram account, the code arrives in a special Verification Codes chat inside Telegram. The business calls Telegram's Gateway API, pays per code from a prepaid balance, and keeps SMS as a fallback for people who are not on Telegram.
This guide explains how Gateway works for both sides: the business sending codes, and the person receiving one. It describes the API in words rather than code. Telegram's own Gateway documentation on core.telegram.org is the reference for current methods, parameters and pricing.
Many apps and websites confirm a phone number by texting a short code. SMS has three well-known weaknesses for the business: it costs money per message, delivery is unreliable in some countries, and SMS can be intercepted or redirected through SIM swapping.
Gateway uses the fact that many people already have Telegram tied to the same phone number. Instead of a text message, the code is delivered as a Telegram message to that number's account. Telegram presents this as faster and cheaper than SMS. Those are Telegram's own claims; whether it is cheaper for you depends on the countries you serve and the SMS prices you pay today.
When a service sends a code through Gateway:
Telegram's FAQ explains that a message in this chat means a service is using Telegram Gateway to send a code to your phone number.
A code you did not ask for usually means someone typed your phone number into that service, by mistake or as a login attempt. Do not share the code with anyone, including people who message you claiming they sent it to you by accident. That is a classic takeover trick. Our guide on never sharing your Telegram login code explains why, and how to spot Telegram scams covers the follow-up messages scammers send.
Telegram's own login codes, used to sign in to your Telegram account, come from Telegram's official service notifications, not from the Verification Codes chat. A Gateway code is for a different app or website. If you are having trouble receiving the code to log in to Telegram itself, see Telegram not sending the login code.
The flow has four parts: an account, a balance, the API calls, and delivery reports.
Read Telegram's Gateway terms of service before funding the account. At the time of writing, they say unspent balance cannot be withdrawn or refunded, so add funds in amounts you expect to use.
Other parameters let you set a time-to-live after which an undelivered message is treated as failed, a payload for your own reference, and a callback URL for reports. A revokeVerificationMessage method lets you cancel a code, for example when the user asks for a new one.
If you supply a callback URL, Telegram sends a POST request to it with the status of the request: sent, delivered, read, expired or revoked, plus the result of a code check. Telegram's documentation asks you to verify the integrity of each report before trusting it, using the method it describes. A report that fails that check should be ignored.
Telegram's documentation says sending codes to your own phone number is always free. That lets you test the whole flow, including your fallback, before spending anything. A verified channel is not needed for these self-tests.
The API is only half the job. Users need to know where to look for the code, or they will wait for a text message that never comes.
Telegram publishes its Gateway price on the Gateway page and in its terms, and it can change. Read the current figure there rather than relying on a number from a blog post.
There is one point to read carefully. Telegram's developer documentation says that if a message is not delivered or read within the time-to-live, the fee is refunded. The terms of service, on the other hand, have stated that no reimbursements are made based on delivery status. Check both documents at the time you sign up, and assume the stricter reading until you have confirmed which applies. Each API response also reports the request cost, whether it was refunded and your remaining balance, so you can reconcile your spending yourself.
This is illustrative, with no real prices. Suppose most of your users are in a country where SMS is expensive and unreliable, and many of them use Telegram. Gateway handles those users, and SMS handles the rest. Your cost per verified user becomes a blend of the two, and whether that blend beats SMS alone depends on how many of your users have Telegram. Run a small trial and measure it.
Gateway is for verification codes, not marketing. The service sends a structured message containing your code; it is not a way to message users about offers or news. Telegram's terms set out what senders may and may not do, and breaking them can end your access. If you want to talk to users on Telegram, build a bot they choose to start, as described in what Telegram bots are.
If you are a business, mention Gateway in your privacy policy alongside your SMS provider. If you are a user who does not want to receive these codes, you can usually choose another verification method in the service you are signing up for.
Gateway and Telegram's login widget solve different problems. Gateway proves that someone controls a phone number, and the code is the proof. The login widget lets someone sign in to your site with their Telegram account and shares their Telegram profile details, without a phone number changing hands. If you want users to sign in with Telegram rather than verify a phone, the widget is the tool; our guide to adding Log in with Telegram to a website covers it.
No setup is needed. If their phone number is linked to a Telegram account, codes arrive in the Verification Codes chat.
The check reports that the number cannot receive a Gateway message, and the business should send the code another way, usually by SMS.
Yes, from a verified channel owned by the same account as the API token. Otherwise the code arrives in the standard Verification Codes chat, which still names the service.
It avoids some SMS weaknesses, such as interception on the mobile network, but it is only as safe as the user's Telegram account. Users should protect it with two-step verification.
Not necessarily. It means someone entered your number into that service. Do not share the code, and if it keeps happening, check your Telegram account's active sessions.
Telegram Gateway lets a business deliver verification codes to a phone number's Telegram account instead of by SMS, through an HTTP API paid from a prepaid balance. A business checks whether a number can receive a message, sends the code, verifies the user's entry, and falls back to SMS where needed, testing for free on its own number first. Users see the code in a Verification Codes chat and should never pass it on to anyone who asks.
Ownership confirmed through our claim process — not an endorsement of their content.
Founder of Telegram.
The official Telegram on Telegram. Much recursion. Very Telegram. Wow.
Telegram Premium – a subscription that unlocks dozens of exclusive features.
Binance Official English Group Binance Official Chinese Group Binance English Announcements Binance Chinese Announcements
is a modern crypto news and research platform covering the latest developments across digital assets, markets, regulation, and blockchain technology.
Technical analysis & high-probability trade setups. Price action, market structure, risk control.
BlackBlock Markets exists to observe how capital moves before it becomes obvious.
This channel focuses exclusively on what shapes global finance. Macroeconomics, markets, liquidity, central banks.
Clear long & short signals for BTC, ETH & liquid altcoins. AI-backed analysis, real-time execution.