summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/auth.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-24 12:16:42 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-24 12:16:47 +0300
commitbbbc9a25e43656c9a8d6a7a310e4fd69617c9d41 (patch)
treea9352a4d53109b880b79bd60dcba12ac5350bd8d /protocols/Telegram/src/auth.cpp
parent3b04426eafa69722f2ef95eca031b15c3b462346 (diff)
fixes #3958 (Telegram: сообщение о новом входе приходят на английском)
Diffstat (limited to 'protocols/Telegram/src/auth.cpp')
-rw-r--r--protocols/Telegram/src/auth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Telegram/src/auth.cpp b/protocols/Telegram/src/auth.cpp
index 53aa8d5c82..a00ff42b7c 100644
--- a/protocols/Telegram/src/auth.cpp
+++ b/protocols/Telegram/src/auth.cpp
@@ -113,7 +113,7 @@ void CTelegramProto::ProcessAuth(TD::updateAuthorizationState *pObj)
request->use_secret_chats_ = true;
request->api_id_ = MIRANDA_API_ID;
request->api_hash_ = MIRANDA_API_HASH;
- request->system_language_code_ = "en";
+ request->system_language_code_ = Langpack_GetDefaultLocaleName();
request->device_model_ = T2Utf(m_wszDeviceName).get();
request->application_version_ = text;
request->enable_storage_optimizer_ = true;