diff options
author | George Hazan <ghazan@miranda.im> | 2022-12-02 16:36:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-12-02 16:36:46 +0300 |
commit | cf6686206e050f0e010f76e5ff33b1d8c1e20c5b (patch) | |
tree | 0afddce70bf7242cf7da83a7d441863fffaf1624 /protocols/Telegram/src | |
parent | c2772af03124c14e0820671789e7b9a4897ac53c (diff) |
Telegram: the first version that could be compiled
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r-- | protocols/Telegram/src/main.cpp | 7 | ||||
-rw-r--r-- | protocols/Telegram/src/mt_proto.cpp | 5 | ||||
-rw-r--r-- | protocols/Telegram/src/mt_proto.h | 2 | ||||
-rw-r--r-- | protocols/Telegram/src/stdafx.cxx | 2 | ||||
-rw-r--r-- | protocols/Telegram/src/stdafx.h | 6 |
5 files changed, 19 insertions, 3 deletions
diff --git a/protocols/Telegram/src/main.cpp b/protocols/Telegram/src/main.cpp index 0315936c3f..07a551794b 100644 --- a/protocols/Telegram/src/main.cpp +++ b/protocols/Telegram/src/main.cpp @@ -3,6 +3,13 @@ int hLangpack; CMPlugin g_plugin; +#pragma comment(lib, "tdactor.lib") +#pragma comment(lib, "tdcore.lib") +#pragma comment(lib, "tddb.lib") +#pragma comment(lib, "tdlib.lib") +#pragma comment(lib, "tdnet.lib") +#pragma comment(lib, "tdutils.lib") + ///////////////////////////////////////////////////////////////////////////////////////// static PLUGININFOEX pluginInfo = diff --git a/protocols/Telegram/src/mt_proto.cpp b/protocols/Telegram/src/mt_proto.cpp index 7766f29025..8d7b0123e5 100644 --- a/protocols/Telegram/src/mt_proto.cpp +++ b/protocols/Telegram/src/mt_proto.cpp @@ -1,7 +1,8 @@ #include "stdafx.h" -CMTProto::CMTProto(const char* protoName, const wchar_t* userName) - : PROTO<CMTProto>(protoName, userName) +CMTProto::CMTProto(const char* protoName, const wchar_t* userName) : + PROTO<CMTProto>(protoName, userName), + client_manager_(std::make_unique<td::ClientManager>()) { } diff --git a/protocols/Telegram/src/mt_proto.h b/protocols/Telegram/src/mt_proto.h index 9626d9bda7..22f5a5352f 100644 --- a/protocols/Telegram/src/mt_proto.h +++ b/protocols/Telegram/src/mt_proto.h @@ -2,6 +2,8 @@ struct CMTProto : public PROTO<CMTProto> { + std::unique_ptr<td::ClientManager> client_manager_; + public: ////////////////////////////////////////////////////////////////////////////////////// // Ctors diff --git a/protocols/Telegram/src/stdafx.cxx b/protocols/Telegram/src/stdafx.cxx index 1ab0efee94..d265a4c02e 100644 --- a/protocols/Telegram/src/stdafx.cxx +++ b/protocols/Telegram/src/stdafx.cxx @@ -15,4 +15,4 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "stdafx.h"
\ No newline at end of file +#include "stdafx.h" diff --git a/protocols/Telegram/src/stdafx.h b/protocols/Telegram/src/stdafx.h index f039dc6474..f8658bacb0 100644 --- a/protocols/Telegram/src/stdafx.h +++ b/protocols/Telegram/src/stdafx.h @@ -3,6 +3,8 @@ #include <windows.h> +#include <memory> + #include <newpluginapi.h> #include <m_protoint.h> @@ -11,6 +13,10 @@ #include <m_database.h> #include <m_langpack.h> +#include "td/telegram/Client.h" +#include "td/telegram/td_api.h" +#include "td/telegram/td_api.hpp" + struct CMTProto; #define MODULE "Telegram" |