From c94e7b4cbccac67f87fe5da8705f3c7d139c68ba Mon Sep 17 00:00:00 2001 From: blank X Date: Sat, 22 Jan 2022 00:58:53 +0000 Subject: [PATCH] Fix tg://user?id links for 64-bit user ids (#296) --- Telegram/SourceFiles/api/api_text_entities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/api/api_text_entities.cpp b/Telegram/SourceFiles/api/api_text_entities.cpp index 52b0aad47..342f37430 100644 --- a/Telegram/SourceFiles/api/api_text_entities.cpp +++ b/Telegram/SourceFiles/api/api_text_entities.cpp @@ -130,7 +130,7 @@ MTPVector EntitiesToMTP( return MTP_inputUserEmpty(); } bool success; - UserId uid = qstr_uid.toInt(&success); + UserId uid = qstr_uid.toLongLong(&success); if (success && session) { if (uid == session->userId()) { return MTP_inputUserSelf();