How Telegram Messenger circumvents Google Translate's API | DanPetrov

https://danpetrov.xyz/programming/2021/12/30/telegram-google-translate.html

Blog Projects About Photography Computing Blog 2021-12-30 17:40 You might have heard that Telegram has released arguably their biggest update of the year this week. While the backend of the messaging platform remains proprietary, the source code of the mobile and desktop clients is open source . The big new feature is Message Translations , which allows to translate the text of messages within the app. What is interesting is how this is implemented in the official Android app. If you check the official Cloud Translate REST API documentation , you will see that the official API uses a versioned API path (e.g. /language/translate/v2 ), and human readable query parameters, which importantly include the API key key . However, if we check Telegram’s implementation , we will notice a few things in the fetchTranslation method: They use another path, and also se...

Linked on 2021-12-31 21:40:57 | Similar Links