This is how Telegram uses Google Translate without paying for the API

Telegram ha trucado la API del traductor de Google para no pagar

Telegram is one of the most complete messaging platforms that exist, and its developers do not stop adding new functions. Although we could already translate messages in the app using bots, with the arrival of version 8.4.1 the native function of translating messages directly in the chat has been added.

But how does Telegram translate the messages from the chat? The answer to this question is quite interesting. Although it was predictable that they used the Google translator API (one of the most reliable on the market), the way in which they are taking advantage of this great G service is unexpected.

Telegram has tricked the Google translator API to not pay

Asi es como Telegram usa el traductor Google sin pagar la API

Everything seems to indicate that Telegram has found a way to take advantage of the Google translator in its new function through the exploits of developers to evade the payment of the API. This is the news that the Android app developer, Dan Petrov, brings us on his website who has explored the code of this new Telegram function to reach this conclusion.

The Backend of the Telegram Android application (that essential part of the programming of an app that allows its operation) is private. But the rest of the source code is public. This allows developers to thoroughly rip out the details of each new feature that is released. This is how the developer managed to access the code of the integrated translation that this messaging platform now offers.

The tricks that Telegram uses to avoid being detected by Google

When you compare the official Google Translate API code with that used by Telegram, you will find many important differences. The original API code is simple and straightforward. For its part, the code of the Telegram function is intentionally divided into a series of routes that must be followed by each translation request made by users of the app . This probably prevents Telegram from being detected by Google as they take advantage of free translations by skipping the API.

Likewise, it is also evident that Telegram is using a method widely used by developers who massively use an Internet service. In the code of this function there is an array of many users that constantly rotate to avoid that the requests made to the Google translator are all generated from the same server . In this way, it seems that all generated requests are coming from different users.

With these programming tricks, Telegram has managed to launch a function that consults the Google translator API without going through the box. If you want to learn about other functions of this messaging app, here we teach you how to create download links in Telegram.