diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index 8d488831d..fef6f1492 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -152,6 +152,8 @@ PRIVATE api/api_sensitive_content.h api/api_single_message_search.cpp api/api_single_message_search.h + api/api_statistics.cpp + api/api_statistics.h api/api_text_entities.cpp api/api_text_entities.h api/api_toggling_media.cpp diff --git a/Telegram/SourceFiles/api/api_statistics.cpp b/Telegram/SourceFiles/api/api_statistics.cpp new file mode 100644 index 000000000..839fa98fd --- /dev/null +++ b/Telegram/SourceFiles/api/api_statistics.cpp @@ -0,0 +1,27 @@ +/* +This file is part of Telegram Desktop, +the official desktop application for the Telegram messaging service. + +For license and copyright information please follow this link: +https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL +*/ +#include "api/api_statistics.h" + +#include "apiwrap.h" +#include "data/data_peer.h" +#include "main/main_session.h" + +namespace Api { +namespace { +} // namespace + +Statistics::Statistics(not_null api) +: _api(&api->instance()) { +} + +rpl::producer<> Statistics::request( + not_null peer) const { + return rpl::never<>(); +} + +} // namespace Api diff --git a/Telegram/SourceFiles/api/api_statistics.h b/Telegram/SourceFiles/api/api_statistics.h new file mode 100644 index 000000000..2197c9f82 --- /dev/null +++ b/Telegram/SourceFiles/api/api_statistics.h @@ -0,0 +1,29 @@ +/* +This file is part of Telegram Desktop, +the official desktop application for the Telegram messaging service. + +For license and copyright information please follow this link: +https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL +*/ +#pragma once + +#include "mtproto/sender.h" + +class ApiWrap; +class PeerData; + +namespace Api { + +class Statistics final { +public: + explicit Statistics(not_null api); + + [[nodiscard]] rpl::producer<> request( + not_null peer) const; + +private: + MTP::Sender _api; + +}; + +} // namespace Api