/* 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; namespace Main { class Session; } // namespace Main namespace Api { class Premium final { public: explicit Premium(not_null api); void reload(); [[nodiscard]] rpl::producer statusTextValue() const; private: const not_null _session; MTP::Sender _api; mtpRequestId _statusRequestId = 0; std::optional _statusText; rpl::event_stream _statusTextUpdates; }; } // namespace Api