From aa5f4b19828d941e7a251ee384b6b7201788fef7 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 24 Sep 2022 23:04:04 +0300 Subject: [PATCH] Make InputInvoice fields private. --- td/telegram/InputInvoice.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/td/telegram/InputInvoice.h b/td/telegram/InputInvoice.h index 2eafde7af..3ff928a83 100644 --- a/td/telegram/InputInvoice.h +++ b/td/telegram/InputInvoice.h @@ -49,7 +49,7 @@ struct Invoice { void parse(ParserT &parser); }; -struct InputInvoice { +class InputInvoice { string title_; string description_; Photo photo_; @@ -63,6 +63,9 @@ struct InputInvoice { int64 total_amount_ = 0; MessageId receipt_message_id_; + friend bool operator==(const InputInvoice &lhs, const InputInvoice &rhs); + + public: InputInvoice() = default; InputInvoice(tl_object_ptr &&message_invoice, Td *td, DialogId owner_dialog_id,