Skip to content

Commit ffc6589

Browse files
committed
update macos
1 parent cc285ef commit ffc6589

36 files changed

+424
-161
lines changed

third-party/td/TdBinding/SharedHeaders/td/td/generate/auto/td/telegram/e2e_api.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,42 @@ class ok final : public Object {
101101
void store(TlStorerToString &s, const char *field_name) const final;
102102
};
103103

104+
class e2e_callPacket final : public Object {
105+
std::int32_t get_id() const final {
106+
return ID;
107+
}
108+
109+
public:
110+
111+
static const std::int32_t ID = 1084669673;
112+
113+
static object_ptr<e2e_callPacket> fetch(TlParser &p);
114+
115+
void store(TlStorerCalcLength &s) const final;
116+
117+
void store(TlStorerUnsafe &s) const final;
118+
119+
void store(TlStorerToString &s, const char *field_name) const final;
120+
};
121+
122+
class e2e_callPacketLargeMsgId final : public Object {
123+
std::int32_t get_id() const final {
124+
return ID;
125+
}
126+
127+
public:
128+
129+
static const std::int32_t ID = 484797485;
130+
131+
static object_ptr<e2e_callPacketLargeMsgId> fetch(TlParser &p);
132+
133+
void store(TlStorerCalcLength &s) const final;
134+
135+
void store(TlStorerUnsafe &s) const final;
136+
137+
void store(TlStorerToString &s, const char *field_name) const final;
138+
};
139+
104140
class e2e_HandshakePrivate: public Object {
105141
public:
106142

third-party/td/TdBinding/SharedHeaders/td/td/generate/auto/td/telegram/td_api.h

Lines changed: 140 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,23 @@ class authorizationStateWaitPhoneNumber final : public AuthorizationState {
852852
void store(TlStorerToString &s, const char *field_name) const final;
853853
};
854854

855+
class authorizationStateWaitPremiumPurchase final : public AuthorizationState {
856+
std::int32_t get_id() const final {
857+
return ID;
858+
}
859+
860+
public:
861+
string store_product_id_;
862+
863+
authorizationStateWaitPremiumPurchase();
864+
865+
explicit authorizationStateWaitPremiumPurchase(string const &store_product_id_);
866+
867+
static const std::int32_t ID = -862487743;
868+
869+
void store(TlStorerToString &s, const char *field_name) const final;
870+
};
871+
855872
class authorizationStateWaitEmailAddress final : public AuthorizationState {
856873
std::int32_t get_id() const final {
857874
return ID;
@@ -8687,6 +8704,7 @@ class forumTopic final : public Object {
86878704
public:
86888705
object_ptr<forumTopicInfo> info_;
86898706
object_ptr<message> last_message_;
8707+
int64 order_;
86908708
bool is_pinned_;
86918709
int32 unread_count_;
86928710
int53 last_read_inbox_message_id_;
@@ -8698,9 +8716,9 @@ class forumTopic final : public Object {
86988716

86998717
forumTopic();
87008718

8701-
forumTopic(object_ptr<forumTopicInfo> &&info_, object_ptr<message> &&last_message_, bool is_pinned_, int32 unread_count_, int53 last_read_inbox_message_id_, int53 last_read_outbox_message_id_, int32 unread_mention_count_, int32 unread_reaction_count_, object_ptr<chatNotificationSettings> &&notification_settings_, object_ptr<draftMessage> &&draft_message_);
8719+
forumTopic(object_ptr<forumTopicInfo> &&info_, object_ptr<message> &&last_message_, int64 order_, bool is_pinned_, int32 unread_count_, int53 last_read_inbox_message_id_, int53 last_read_outbox_message_id_, int32 unread_mention_count_, int32 unread_reaction_count_, object_ptr<chatNotificationSettings> &&notification_settings_, object_ptr<draftMessage> &&draft_message_);
87028720

8703-
static const std::int32_t ID = 303279334;
8721+
static const std::int32_t ID = -2094608976;
87048722

87058723
void store(TlStorerToString &s, const char *field_name) const final;
87068724
};
@@ -8733,6 +8751,7 @@ class forumTopicInfo final : public Object {
87338751
}
87348752

87358753
public:
8754+
int53 chat_id_;
87368755
int53 message_thread_id_;
87378756
string name_;
87388757
object_ptr<forumTopicIcon> icon_;
@@ -8745,9 +8764,9 @@ class forumTopicInfo final : public Object {
87458764

87468765
forumTopicInfo();
87478766

8748-
forumTopicInfo(int53 message_thread_id_, string const &name_, object_ptr<forumTopicIcon> &&icon_, int32 creation_date_, object_ptr<MessageSender> &&creator_id_, bool is_general_, bool is_outgoing_, bool is_closed_, bool is_hidden_);
8767+
forumTopicInfo(int53 chat_id_, int53 message_thread_id_, string const &name_, object_ptr<forumTopicIcon> &&icon_, int32 creation_date_, object_ptr<MessageSender> &&creator_id_, bool is_general_, bool is_outgoing_, bool is_closed_, bool is_hidden_);
87498768

8750-
static const std::int32_t ID = -1879842914;
8769+
static const std::int32_t ID = -654857606;
87518770

87528771
void store(TlStorerToString &s, const char *field_name) const final;
87538772
};
@@ -26213,6 +26232,46 @@ class storePaymentPurposeGiftedStars final : public StorePaymentPurpose {
2621326232
void store(TlStorerToString &s, const char *field_name) const final;
2621426233
};
2621526234

26235+
class StoreTransaction: public Object {
26236+
public:
26237+
};
26238+
26239+
class storeTransactionAppStore final : public StoreTransaction {
26240+
std::int32_t get_id() const final {
26241+
return ID;
26242+
}
26243+
26244+
public:
26245+
bytes receipt_;
26246+
26247+
storeTransactionAppStore();
26248+
26249+
explicit storeTransactionAppStore(bytes const &receipt_);
26250+
26251+
static const std::int32_t ID = 1625562441;
26252+
26253+
void store(TlStorerToString &s, const char *field_name) const final;
26254+
};
26255+
26256+
class storeTransactionGooglePlay final : public StoreTransaction {
26257+
std::int32_t get_id() const final {
26258+
return ID;
26259+
}
26260+
26261+
public:
26262+
string package_name_;
26263+
string store_product_id_;
26264+
string purchase_token_;
26265+
26266+
storeTransactionGooglePlay();
26267+
26268+
storeTransactionGooglePlay(string const &package_name_, string const &store_product_id_, string const &purchase_token_);
26269+
26270+
static const std::int32_t ID = 1094018617;
26271+
26272+
void store(TlStorerToString &s, const char *field_name) const final;
26273+
};
26274+
2621626275
class story;
2621726276

2621826277
class stories final : public Object {
@@ -29909,14 +29968,34 @@ class updateForumTopicInfo final : public Update {
2990929968
}
2991029969

2991129970
public:
29912-
int53 chat_id_;
2991329971
object_ptr<forumTopicInfo> info_;
2991429972

2991529973
updateForumTopicInfo();
2991629974

29917-
updateForumTopicInfo(int53 chat_id_, object_ptr<forumTopicInfo> &&info_);
29975+
explicit updateForumTopicInfo(object_ptr<forumTopicInfo> &&info_);
29976+
29977+
static const std::int32_t ID = 1420762696;
29978+
29979+
void store(TlStorerToString &s, const char *field_name) const final;
29980+
};
29981+
29982+
class updateForumTopic final : public Update {
29983+
std::int32_t get_id() const final {
29984+
return ID;
29985+
}
29986+
29987+
public:
29988+
int53 chat_id_;
29989+
int53 message_thread_id_;
29990+
bool is_pinned_;
29991+
int53 last_read_outbox_message_id_;
29992+
object_ptr<chatNotificationSettings> notification_settings_;
29993+
29994+
updateForumTopic();
29995+
29996+
updateForumTopic(int53 chat_id_, int53 message_thread_id_, bool is_pinned_, int53 last_read_outbox_message_id_, object_ptr<chatNotificationSettings> &&notification_settings_);
2991829997

29919-
static const std::int32_t ID = 1802448073;
29998+
static const std::int32_t ID = 807069971;
2992029999

2992130000
void store(TlStorerToString &s, const char *field_name) const final;
2992230001
};
@@ -33817,48 +33896,24 @@ class applyPremiumGiftCode final : public Function {
3381733896

3381833897
class StorePaymentPurpose;
3381933898

33820-
class ok;
33821-
33822-
class assignAppStoreTransaction final : public Function {
33823-
std::int32_t get_id() const final {
33824-
return ID;
33825-
}
33826-
33827-
public:
33828-
bytes receipt_;
33829-
object_ptr<StorePaymentPurpose> purpose_;
33830-
33831-
assignAppStoreTransaction();
33832-
33833-
assignAppStoreTransaction(bytes const &receipt_, object_ptr<StorePaymentPurpose> &&purpose_);
33834-
33835-
static const std::int32_t ID = -2030892112;
33836-
33837-
using ReturnType = object_ptr<ok>;
33838-
33839-
void store(TlStorerToString &s, const char *field_name) const final;
33840-
};
33841-
33842-
class StorePaymentPurpose;
33899+
class StoreTransaction;
3384333900

3384433901
class ok;
3384533902

33846-
class assignGooglePlayTransaction final : public Function {
33903+
class assignStoreTransaction final : public Function {
3384733904
std::int32_t get_id() const final {
3384833905
return ID;
3384933906
}
3385033907

3385133908
public:
33852-
string package_name_;
33853-
string store_product_id_;
33854-
string purchase_token_;
33909+
object_ptr<StoreTransaction> transaction_;
3385533910
object_ptr<StorePaymentPurpose> purpose_;
3385633911

33857-
assignGooglePlayTransaction();
33912+
assignStoreTransaction();
3385833913

33859-
assignGooglePlayTransaction(string const &package_name_, string const &store_product_id_, string const &purchase_token_, object_ptr<StorePaymentPurpose> &&purpose_);
33914+
assignStoreTransaction(object_ptr<StoreTransaction> &&transaction_, object_ptr<StorePaymentPurpose> &&purpose_);
3386033915

33861-
static const std::int32_t ID = -1992704860;
33916+
static const std::int32_t ID = -2046202900;
3386233917

3386333918
using ReturnType = object_ptr<ok>;
3386433919

@@ -34274,6 +34329,28 @@ class checkAuthenticationPasswordRecoveryCode final : public Function {
3427434329
void store(TlStorerToString &s, const char *field_name) const final;
3427534330
};
3427634331

34332+
class ok;
34333+
34334+
class checkAuthenticationPremiumPurchase final : public Function {
34335+
std::int32_t get_id() const final {
34336+
return ID;
34337+
}
34338+
34339+
public:
34340+
string currency_;
34341+
int53 amount_;
34342+
34343+
checkAuthenticationPremiumPurchase();
34344+
34345+
checkAuthenticationPremiumPurchase(string const &currency_, int53 amount_);
34346+
34347+
static const std::int32_t ID = 1588959934;
34348+
34349+
using ReturnType = object_ptr<ok>;
34350+
34351+
void store(TlStorerToString &s, const char *field_name) const final;
34352+
};
34353+
3427734354
class chatFolderInviteLinkInfo;
3427834355

3427934356
class checkChatFolderInviteLink final : public Function {
@@ -47427,6 +47504,32 @@ class setAuthenticationPhoneNumber final : public Function {
4742747504
void store(TlStorerToString &s, const char *field_name) const final;
4742847505
};
4742947506

47507+
class StoreTransaction;
47508+
47509+
class ok;
47510+
47511+
class setAuthenticationPremiumPurchaseTransaction final : public Function {
47512+
std::int32_t get_id() const final {
47513+
return ID;
47514+
}
47515+
47516+
public:
47517+
object_ptr<StoreTransaction> transaction_;
47518+
bool is_restore_;
47519+
string currency_;
47520+
int53 amount_;
47521+
47522+
setAuthenticationPremiumPurchaseTransaction();
47523+
47524+
setAuthenticationPremiumPurchaseTransaction(object_ptr<StoreTransaction> &&transaction_, bool is_restore_, string const &currency_, int53 amount_);
47525+
47526+
static const std::int32_t ID = -450986887;
47527+
47528+
using ReturnType = object_ptr<ok>;
47529+
47530+
void store(TlStorerToString &s, const char *field_name) const final;
47531+
};
47532+
4743047533
class NetworkType;
4743147534

4743247535
class autoDownloadSettings;

third-party/td/TdBinding/SharedHeaders/td/td/generate/auto/td/telegram/td_api_json.h

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
namespace td {
99
namespace td_api {
1010

11-
void to_json(JsonValueScope &jv, const tl_object_ptr<Object> &value);
11+
void to_json(JsonValueScope &jv, const td_api::object_ptr<Object> &value);
1212

13-
Status from_json(tl_object_ptr<Function> &to, td::JsonValue from);
13+
Status from_json(td_api::object_ptr<Function> &to, td::JsonValue from);
1414

1515
void to_json(JsonValueScope &jv, const Object &object);
1616

@@ -166,6 +166,8 @@ Result<int32> tl_constructor_from_string(td_api::StickerType *object, const std:
166166

167167
Result<int32> tl_constructor_from_string(td_api::StorePaymentPurpose *object, const std::string &str);
168168

169+
Result<int32> tl_constructor_from_string(td_api::StoreTransaction *object, const std::string &str);
170+
169171
Result<int32> tl_constructor_from_string(td_api::StoryList *object, const std::string &str);
170172

171173
Result<int32> tl_constructor_from_string(td_api::StoryPrivacySettings *object, const std::string &str);
@@ -1294,6 +1296,10 @@ Status from_json(td_api::storePaymentPurposeStars &to, JsonObject &from);
12941296

12951297
Status from_json(td_api::storePaymentPurposeGiftedStars &to, JsonObject &from);
12961298

1299+
Status from_json(td_api::storeTransactionAppStore &to, JsonObject &from);
1300+
1301+
Status from_json(td_api::storeTransactionGooglePlay &to, JsonObject &from);
1302+
12971303
Status from_json(td_api::storyAreaPosition &to, JsonObject &from);
12981304

12991305
Status from_json(td_api::storyFullId &to, JsonObject &from);
@@ -1580,9 +1586,7 @@ Status from_json(td_api::answerWebAppQuery &to, JsonObject &from);
15801586

15811587
Status from_json(td_api::applyPremiumGiftCode &to, JsonObject &from);
15821588

1583-
Status from_json(td_api::assignAppStoreTransaction &to, JsonObject &from);
1584-
1585-
Status from_json(td_api::assignGooglePlayTransaction &to, JsonObject &from);
1589+
Status from_json(td_api::assignStoreTransaction &to, JsonObject &from);
15861590

15871591
Status from_json(td_api::banChatMember &to, JsonObject &from);
15881592

@@ -1622,6 +1626,8 @@ Status from_json(td_api::checkAuthenticationPassword &to, JsonObject &from);
16221626

16231627
Status from_json(td_api::checkAuthenticationPasswordRecoveryCode &to, JsonObject &from);
16241628

1629+
Status from_json(td_api::checkAuthenticationPremiumPurchase &to, JsonObject &from);
1630+
16251631
Status from_json(td_api::checkChatFolderInviteLink &to, JsonObject &from);
16261632

16271633
Status from_json(td_api::checkChatInviteLink &to, JsonObject &from);
@@ -2800,6 +2806,8 @@ Status from_json(td_api::setAuthenticationEmailAddress &to, JsonObject &from);
28002806

28012807
Status from_json(td_api::setAuthenticationPhoneNumber &to, JsonObject &from);
28022808

2809+
Status from_json(td_api::setAuthenticationPremiumPurchaseTransaction &to, JsonObject &from);
2810+
28032811
Status from_json(td_api::setAutoDownloadSettings &to, JsonObject &from);
28042812

28052813
Status from_json(td_api::setAutosaveSettings &to, JsonObject &from);
@@ -3264,6 +3272,8 @@ void to_json(JsonValueScope &jv, const td_api::authorizationStateWaitTdlibParame
32643272

32653273
void to_json(JsonValueScope &jv, const td_api::authorizationStateWaitPhoneNumber &object);
32663274

3275+
void to_json(JsonValueScope &jv, const td_api::authorizationStateWaitPremiumPurchase &object);
3276+
32673277
void to_json(JsonValueScope &jv, const td_api::authorizationStateWaitEmailAddress &object);
32683278

32693279
void to_json(JsonValueScope &jv, const td_api::authorizationStateWaitEmailCode &object);
@@ -6140,6 +6150,8 @@ void to_json(JsonValueScope &jv, const td_api::updateQuickReplyShortcutMessages
61406150

61416151
void to_json(JsonValueScope &jv, const td_api::updateForumTopicInfo &object);
61426152

6153+
void to_json(JsonValueScope &jv, const td_api::updateForumTopic &object);
6154+
61436155
void to_json(JsonValueScope &jv, const td_api::updateScopeNotificationSettings &object);
61446156

61456157
void to_json(JsonValueScope &jv, const td_api::updateReactionNotificationSettings &object);

0 commit comments

Comments
 (0)