summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-04-19 12:53:36 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-04-19 12:53:36 +0300
commitab21ce3ccfe7d076d6de1606b280690e9399b59f (patch)
tree54017e79682c2c3b19fc1713839cbeaa80b98056 /protocols/Telegram/src/proto.h
parent99f6af5d383916168d6edb1b7a05fd64b633f03b (diff)
Telegram: part of events aren't marked read during history load
Diffstat (limited to 'protocols/Telegram/src/proto.h')
-rw-r--r--protocols/Telegram/src/proto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Telegram/src/proto.h b/protocols/Telegram/src/proto.h
index 2fcc8b65d6..a917ed4457 100644
--- a/protocols/Telegram/src/proto.h
+++ b/protocols/Telegram/src/proto.h
@@ -281,10 +281,10 @@ class CTelegramProto : public PROTO<CTelegramProto>
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);
+ 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, bool bRead);
CMStringA GetMessagePreview(const TD::file *pFile);
CMStringA GetMessageSticker(const TD::file *pFile, const char *pwszExtension);
- CMStringA GetMessageText(TG_USER *pUser, const TD::message *pMsg, bool bSkipJoin = false);
+ CMStringA GetMessageText(TG_USER *pUser, const TD::message *pMsg, bool bSkipJoin = false, bool bRead = false);
void UpdateString(MCONTACT hContact, const char *pszSetting, const std::string &str);