summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-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())