Found an interesting behavior with Bots and language codes, as we’re making Bot for Argentina and Brazil:
— Telegram client supports Portuguese-Brazilian language, which comes as “pt-br” in user data
— Telegram Bots, however, doesn’t respond to this tag and want simple ISO “pr” to add localized description
— Then comes the problem, when, by that logic, I need to have language database separated for Bot methods and incoming user updates, which seems quite ridiculous
Steps to reproduce
If you choose Portuguese (Brazil) language, your user data becames "pt-br", but Bot API supports only ISO "pt" coding, so for development it is needed to maintain two different codings of the same version
Device info
Telegram iOS 10.2.1 (27517), iPhone 12 Pro Max, 17.1
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.