summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-06-02 12:36:39 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-06-02 12:36:39 +0300
commitd0e62382e90a6ac62abba97fb9f65148e9601a7d (patch)
treecc3a93b7ca199fed3bdb049f2138e39f11a74f7a /protocols/Telegram/src/proto.cpp
parenta90a572651003f00829df97967dde8b5b8d1f43e (diff)
fixes #3524 (Telegram: load server history)
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r--protocols/Telegram/src/proto.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index 2daecb045a..b5edc01e8c 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -58,6 +58,7 @@ CTelegramProto::CTelegramProto(const char* protoName, const wchar_t* userName) :
CreateProtoService(PS_GETAVATARINFO, &CTelegramProto::SvcGetAvatarInfo);
CreateProtoService(PS_GETMYAVATAR, &CTelegramProto::SvcGetMyAvatar);
CreateProtoService(PS_SETMYAVATAR, &CTelegramProto::SvcSetMyAvatar);
+ CreateProtoService(PS_MENU_LOADHISTORY, &CTelegramProto::SvcLoadServerHistory);
HookProtoEvent(ME_HISTORY_EMPTY, &CTelegramProto::OnEmptyHistory);
HookProtoEvent(ME_OPT_INITIALISE, &CTelegramProto::OnOptionsInit);
@@ -72,7 +73,7 @@ CTelegramProto::CTelegramProto(const char* protoName, const wchar_t* userName) :
InitMenus();
// Offline file transfer
- CreateProtoService(PS_OFFLINEFILE, &CTelegramProto::OfflineFile);
+ CreateProtoService(PS_OFFLINEFILE, &CTelegramProto::SvcOfflineFile);
// create standard network connection
NETLIBUSER nlu = {};
@@ -166,7 +167,7 @@ void CTelegramProto::OnBuildProtoMenu()
// Groups uploader
mi.pszService = "/UploadGroups";
- CreateProtoService(mi.pszService, &CTelegramProto::AddByPhone);
+ CreateProtoService(mi.pszService, &CTelegramProto::SvcAddByPhone);
mi.name.a = LPGEN("Add phone contact");
mi.position = 200001;
mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_ADDCONTACT);