diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-02-02 19:51:35 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-02-02 19:51:35 +0300 |
| commit | e69b5b2a3a758022c48179c86fa5a5d246aabeba (patch) | |
| tree | 277ed48b3409cd1dd3067ab9eb3b98cfad6ff463 /protocols/Telegram/src/proto.h | |
| parent | 9816616930533590a2884ee2758d71593d86d22b (diff) | |
Telegram:
- fix for the forums with more than 100 threads;
- fix for the files receiving in threads
Diffstat (limited to 'protocols/Telegram/src/proto.h')
| -rw-r--r-- | protocols/Telegram/src/proto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Telegram/src/proto.h b/protocols/Telegram/src/proto.h index 69737ba35c..4040125506 100644 --- a/protocols/Telegram/src/proto.h +++ b/protocols/Telegram/src/proto.h @@ -101,7 +101,7 @@ struct TG_USER : public MZeroedObject int64_t id, chatId = -1; MCONTACT hContact; - int folderId = -1, nHistoryChunks; + int folderId = -1, nHistoryChunks, nTopics; bool isGroupChat, isChannel, isBot, isForum, bLoadMembers, bStartChat, bInited, bDelOwn = true, bDelAll = true; CMStringA szAvatarHash; CMStringW wszNick, wszFirstName, wszLastName; @@ -340,6 +340,7 @@ class CTelegramProto : public PROTO<CTelegramProto> TD::array<TD::int53> m_searchIds; void OnSearchResults(td::ClientManager::Response &response); + void OnGetTopics(td::ClientManager::Response &response, void *pUserInfo); bool CheckSearchUser(TG_USER *pUser); void ReportSearchUser(TG_USER *pUser); @@ -362,7 +363,7 @@ class CTelegramProto : public PROTO<CTelegramProto> int GetDefaultMute(const TG_USER *pUser); - MCONTACT GetRealContact(const TG_USER *pUser); + MCONTACT GetRealContact(const TG_USER *pUser, int64_t threadId = 0); void RemoveFromClist(TG_USER *pUser); void MarkRead(MCONTACT hContact, const CMStringA &szMaxId, bool bSent); |
