diff options
author | George Hazan <george.hazan@gmail.com> | 2024-02-29 22:11:40 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-02-29 22:11:40 +0300 |
commit | 973371680353b176afad13ea852f859785fb4282 (patch) | |
tree | ab61b49b3658e1c5121dce8d160e3fcd69f0dde9 /protocols/Telegram/src/utils.cpp | |
parent | 9922b02a0ad956272db894b3a84cd8d31524f20c (diff) |
Telegram: support for sending messages to forums
Diffstat (limited to 'protocols/Telegram/src/utils.cpp')
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index dc0eaac817..0069b77cbb 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -228,16 +228,16 @@ void CTelegramProto::ReportSearchUser(TG_USER *pUser) /////////////////////////////////////////////////////////////////////////////////////////
-int64_t CTelegramProto::GetId(MCONTACT hContact)
+int64_t CTelegramProto::GetId(MCONTACT hContact, const char *pszSetting)
{
- return _atoi64(getMStringA(hContact, DBKEY_ID));
+ return _atoi64(getMStringA(hContact, pszSetting));
}
-void CTelegramProto::SetId(MCONTACT hContact, int64_t id)
+void CTelegramProto::SetId(MCONTACT hContact, int64_t id, const char *pszSetting)
{
char szId[100];
_i64toa(id, szId, 10);
- setString(hContact, DBKEY_ID, szId);
+ setString(hContact, pszSetting, szId);
}
/////////////////////////////////////////////////////////////////////////////////////////
|