summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/src/utils.cpp')
-rw-r--r--protocols/Telegram/src/utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp
index 5686e1aad1..0884188c16 100644
--- a/protocols/Telegram/src/utils.cpp
+++ b/protocols/Telegram/src/utils.cpp
@@ -88,6 +88,11 @@ void CTelegramProto::ReportSearchUser(TG_USER *pUser)
/////////////////////////////////////////////////////////////////////////////////////////
+int64_t CTelegramProto::GetId(MCONTACT hContact)
+{
+ return _atoi64(getMStringA(hContact, DBKEY_ID));
+}
+
void CTelegramProto::SetId(MCONTACT hContact, int64_t id)
{
char szId[100];