// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2026 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #pragma once #include "td/telegram/DialogId.h" #include "td/telegram/td_api.h" #include "td/telegram/telegram_api.h" #include "td/utils/common.h" #include "td/utils/Status.h" #include "td/utils/StringBuilder.h" namespace td { class Td; class AffiliateType { DialogId dialog_id_; explicit AffiliateType(DialogId dialog_id) : dialog_id_(dialog_id) { } public: AffiliateType() = default; static Result get_affiliate_type(Td *td, const td_api::object_ptr &type); DialogId get_dialog_id() const { return dialog_id_; } telegram_api::object_ptr get_input_peer(Td *td) const; td_api::object_ptr get_affiliate_type_object(Td *td) const; }; StringBuilder &operator<<(StringBuilder &string_builder, const AffiliateType &affiliate_type); } // namespace td