diff options
author | George Hazan <ghazan@miranda.im> | 2023-01-17 21:37:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-01-17 21:37:59 +0300 |
commit | 6b1d05a40f8e07ab37a9779944c334880a4aa67f (patch) | |
tree | 3ac035047e77a034514500f97b7452c3ffc4c748 /protocols/Telegram/src/proto.cpp | |
parent | 97d069ee86e3d04de7f2f2cfe2b13d2c38f8c4e1 (diff) |
Telegram: stickers reading
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r-- | protocols/Telegram/src/proto.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index 84944a6b49..ba9565f09f 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -19,6 +19,7 @@ static int CompareUsers(const TG_USER *p1, const TG_USER *p2) CTelegramProto::CTelegramProto(const char* protoName, const wchar_t* userName) : PROTO<CTelegramProto>(protoName, userName), m_impl(*this), + m_arFiles(1), m_arUsers(10, CompareUsers), m_arRequests(10, CompareRequests), m_szOwnPhone(this, "Phone"), @@ -89,6 +90,13 @@ void CTelegramProto::OnModulesLoaded() m_arUsers.insert(pUser); } } + + m_bSmileyAdd = ServiceExists(MS_SMILEYADD_LOADCONTACTSMILEYS); + if (m_bSmileyAdd) { + CMStringW wszStickersPath(GetAvatarPath() + L"\\Stickers\\*.*"); + SMADD_CONT cont = {2, m_szModuleName, wszStickersPath}; + CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, LPARAM(&cont)); + } } void CTelegramProto::OnShutdown() |