From ab21ce3ccfe7d076d6de1606b280690e9399b59f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Apr 2024 12:53:36 +0300 Subject: Telegram: part of events aren't marked read during history load --- protocols/Telegram/src/proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Telegram/src/proto.h') 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 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); -- cgit v1.2.3