summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-10 17:09:27 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-10 17:09:27 +0300
commit75e084b3950dc3bdba33e6b611b4c4a3f370dc72 (patch)
tree959eb8ca7bb5eac10a0ea291b3e250e5516760cd /protocols/Telegram/src/proto.h
parent420da4e31280e87980178893e8b0ed8f9e90cf7a (diff)
fixes #4255 completely ("Log out" button for Telegram)
Diffstat (limited to 'protocols/Telegram/src/proto.h')
-rw-r--r--protocols/Telegram/src/proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Telegram/src/proto.h b/protocols/Telegram/src/proto.h
index c0bb072248..b4df98a636 100644
--- a/protocols/Telegram/src/proto.h
+++ b/protocols/Telegram/src/proto.h
@@ -152,6 +152,7 @@ class CTelegramProto : public PROTO<CTelegramProto>
friend class CReplyDlg;
friend class CForwardDlg;
friend class CReactionsDlg;
+ friend class COptionsDlg;
friend class COptSessionsDlg;
friend class CAddPhoneContactDlg;
@@ -276,6 +277,8 @@ class CTelegramProto : public PROTO<CTelegramProto>
void ProcessSuperGroup(TD::updateSupergroup *pObj);
void ProcessUser(TD::updateUser *pObj);
+ void UnregisterSession();
+
bool GetMessageFile(TG_FILE_REQUEST::Type, TG_USER *pUser, const TD::file *pFile, const char *pszFileName, const std::string &caption, const char *szId, const char *szUser, const TD::message *pMsg);
CMStringA GetMessageSticker(const TD::file *pFile, const char *pwszExtension);
CMStringA GetMessageText(TG_USER *pUser, const TD::message *pMsg, bool bSkipJoin = false);