diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-15 14:22:08 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-15 14:22:13 +0300 |
commit | 67382bca8cdfb020a56dbab3087233c3f1034426 (patch) | |
tree | d4cffadcf330cce5527c3b021fcf799f02c17c76 /protocols/Telegram/src/proto.h | |
parent | c400f5c17af4996eb2ecf0597e17eb25c17857d8 (diff) |
fixes #3674 (Реакция протоколов на отсылку в оффлайн)
Diffstat (limited to 'protocols/Telegram/src/proto.h')
-rw-r--r-- | protocols/Telegram/src/proto.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/Telegram/src/proto.h b/protocols/Telegram/src/proto.h index ad11cce7bf..c3d0252a06 100644 --- a/protocols/Telegram/src/proto.h +++ b/protocols/Telegram/src/proto.h @@ -194,8 +194,7 @@ class CTelegramProto : public PROTO<CTelegramProto> TD::array<TD::int53> m_deleteIds; bool m_bAuthorized, m_bTerminated, m_bUnregister = false, m_bSmileyAdd = false; - int32_t m_iClientId, m_iMsgId; - int64_t m_iQueryId; + int32_t m_iClientId, m_iQueryId; OBJLIST<TG_OWN_MESSAGE> m_arOwnMsg; OBJLIST<TG_REQUEST_BASE> m_arRequests; @@ -217,7 +216,7 @@ class CTelegramProto : public PROTO<CTelegramProto> void OnGetFileInfo(td::ClientManager::Response &response, void *pUserInfo); void OnGetHistory(td::ClientManager::Response &response, void *pUserInfo); void OnSendFile(td::ClientManager::Response &response, void *pUserInfo); - void OnSendMessage(td::ClientManager::Response &response, void *pUserInfo); + void OnSendMessage(td::ClientManager::Response &response); void OnUpdateAuth(td::ClientManager::Response &response); void LogOut(void); @@ -227,8 +226,8 @@ class CTelegramProto : public PROTO<CTelegramProto> void SendKeepAlive(void); void SendDeleteMsg(void); void SendMarkRead(void); - void SendQuery(TD::Function *pFunc, TG_QUERY_HANDLER pHandler = nullptr); - void SendQuery(TD::Function *pFunc, TG_QUERY_HANDLER_FULL pHandler, void *pUserInfo); + int SendQuery(TD::Function *pFunc, TG_QUERY_HANDLER pHandler = nullptr); + int SendQuery(TD::Function *pFunc, TG_QUERY_HANDLER_FULL pHandler, void *pUserInfo); int SendTextMessage(int64_t chatId, const char *pszMessage); void ProcessAuth(TD::updateAuthorizationState *pObj); |