summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-11-27 20:40:58 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-11-27 20:40:58 +0300
commit6118d594ef03d4bf3591f1ea4cc5cf619315a78a (patch)
tree5c14d20920050fa84cc8057215c47cd948925d0e
parent80e5db5c24521f325c0b7cd4619631e1853566b0 (diff)
Telegram: let bots live
-rw-r--r--protocols/Telegram/src/server.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index e014f76a87..c62aedca58 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -1267,18 +1267,6 @@ void CTelegramProto::ProcessUser(TD::updateUser *pObj)
}
}
- // if that's just a bot, keep it as a virtual contact in memory
- if (typeID == TD::userTypeBot::ID) {
- auto *pu = AddFakeUser(pUser->id_, false);
- if (pu->hContact == INVALID_CONTACT_ID) {
- pu->wszFirstName = Utf2T(szFirstName.c_str());
- pu->wszLastName = Utf2T(szLastName.c_str());
- if (pUser->usernames_)
- pu->wszNick = Utf2T(pUser->usernames_->editable_username_.c_str());
- return;
- }
- }
-
auto *pu = AddUser(pUser->id_, false);
if (szFirstName.empty())