Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 530c6eb

Browse files
committed
Update API schema to Layer 159
1 parent efac171 commit 530c6eb

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

compiler/api/source/main_api.tl

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ updateDeleteScheduledMessages#90866cee peer:Peer messages:Vector<int> = Update;
348348
updateTheme#8216fba3 theme:Theme = Update;
349349
updateGeoLiveViewed#871fb939 peer:Peer msg_id:int = Update;
350350
updateLoginToken#564fe691 = Update;
351-
updateMessagePollVote#106395c9 poll_id:long user_id:long options:Vector<bytes> qts:int = Update;
351+
updateMessagePollVote#24f40e77 poll_id:long peer:Peer options:Vector<bytes> qts:int = Update;
352352
updateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update;
353353
updateDialogFilterOrder#a5d72105 order:Vector<int> = Update;
354354
updateDialogFilters#3504914f = Update;
@@ -492,6 +492,7 @@ inputPrivacyKeyProfilePhoto#5719bacc = InputPrivacyKey;
492492
inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey;
493493
inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey;
494494
inputPrivacyKeyVoiceMessages#aee69d68 = InputPrivacyKey;
495+
inputPrivacyKeyAbout#3823cc40 = InputPrivacyKey;
495496

496497
privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey;
497498
privacyKeyChatInvite#500e6dfa = PrivacyKey;
@@ -502,6 +503,7 @@ privacyKeyProfilePhoto#96151fed = PrivacyKey;
502503
privacyKeyPhoneNumber#d19ae46d = PrivacyKey;
503504
privacyKeyAddedByPhone#42ffd42b = PrivacyKey;
504505
privacyKeyVoiceMessages#697f414 = PrivacyKey;
506+
privacyKeyAbout#a486b761 = PrivacyKey;
505507

506508
inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule;
507509
inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule;
@@ -567,7 +569,7 @@ chatInviteExported#ab4a819 flags:# revoked:flags.0?true permanent:flags.5?true r
567569
chatInvitePublicJoinRequests#ed107ab7 = ExportedChatInvite;
568570

569571
chatInviteAlready#5a686d7c chat:Chat = ChatInvite;
570-
chatInvite#300c44c1 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true request_needed:flags.6?true title:string about:flags.5?string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite;
572+
chatInvite#300c44c1 flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true request_needed:flags.6?true verified:flags.7?true scam:flags.8?true fake:flags.9?true title:string about:flags.5?string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite;
571573
chatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite;
572574

573575
inputStickerSetEmpty#ffb62b95 = InputStickerSet;
@@ -1113,7 +1115,7 @@ poll#86e18161 id:long flags:# closed:flags.0?true public_voters:flags.1?true mul
11131115

11141116
pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;
11151117

1116-
pollResults#dcb82ea3 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<long> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults;
1118+
pollResults#7adf2420 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<Peer> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults;
11171119

11181120
chatOnlines#f041e250 onlines:int = ChatOnlines;
11191121

@@ -1134,7 +1136,7 @@ codeSettings#ad253d78 flags:# allow_flashcall:flags.0?true current_number:flags.
11341136

11351137
wallPaperSettings#1dc1bca4 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings;
11361138

1137-
autoDownloadSettings#8efab953 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true photo_size_max:int video_size_max:long file_size_max:long video_upload_maxbitrate:int = AutoDownloadSettings;
1139+
autoDownloadSettings#baa57628 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true photo_size_max:int video_size_max:long file_size_max:long video_upload_maxbitrate:int small_queue_active_operations_max:int large_queue_active_operations_max:int = AutoDownloadSettings;
11381140

11391141
account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings;
11401142

@@ -1195,11 +1197,7 @@ themeSettings#fa58b6d4 flags:# message_colors_animated:flags.2?true base_theme:B
11951197

11961198
webPageAttributeTheme#54b56617 flags:# documents:flags.0?Vector<Document> settings:flags.1?ThemeSettings = WebPageAttribute;
11971199

1198-
messageUserVote#34d247b4 user_id:long option:bytes date:int = MessageUserVote;
1199-
messageUserVoteInputOption#3ca5b0ec user_id:long date:int = MessageUserVote;
1200-
messageUserVoteMultiple#8a65e557 user_id:long options:Vector<bytes> date:int = MessageUserVote;
1201-
1202-
messages.votesList#823f649 flags:# count:int votes:Vector<MessageUserVote> users:Vector<User> next_offset:flags.0?string = messages.VotesList;
1200+
messages.votesList#4899484e flags:# count:int votes:Vector<MessagePeerVote> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.VotesList;
12031201

12041202
bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl;
12051203

@@ -1324,7 +1322,7 @@ account.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordR
13241322
account.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult;
13251323
account.resetPasswordOk#e926d63e = account.ResetPasswordResult;
13261324

1327-
sponsoredMessage#fc25b828 flags:# recommended:flags.5?true show_peer_photo:flags.6?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string message:string entities:flags.1?Vector<MessageEntity> sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage;
1325+
sponsoredMessage#daafff6b flags:# recommended:flags.5?true show_peer_photo:flags.6?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string webpage:flags.9?SponsoredWebPage message:string entities:flags.1?Vector<MessageEntity> sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage;
13281326

13291327
messages.sponsoredMessages#c9ee1d87 flags:# posts_between:flags.0?int messages:Vector<SponsoredMessage> chats:Vector<Chat> users:Vector<User> = messages.SponsoredMessages;
13301328
messages.sponsoredMessagesEmpty#1839490f = messages.SponsoredMessages;
@@ -1521,6 +1519,12 @@ chatlists.chatlistUpdates#93bd878d missing_peers:Vector<Peer> chats:Vector<Chat>
15211519

15221520
bots.botInfo#e8a775b0 name:string about:string description:string = bots.BotInfo;
15231521

1522+
messagePeerVote#b6cc2d5c peer:Peer option:bytes date:int = MessagePeerVote;
1523+
messagePeerVoteInputOption#74cda504 peer:Peer date:int = MessagePeerVote;
1524+
messagePeerVoteMultiple#4628f6e6 peer:Peer options:Vector<bytes> date:int = MessagePeerVote;
1525+
1526+
sponsoredWebPage#3db8ec63 flags:# url:string site_name:string photo:flags.0?Photo = SponsoredWebPage;
1527+
15241528
---functions---
15251529

15261530
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
@@ -1641,6 +1645,7 @@ account.getDefaultGroupPhotoEmojis#915860ae hash:long = EmojiList;
16411645
account.getAutoSaveSettings#adcbbcda = account.AutoSaveSettings;
16421646
account.saveAutoSaveSettings#d69b8361 flags:# users:flags.0?true chats:flags.1?true broadcasts:flags.2?true peer:flags.3?InputPeer settings:AutoSaveSettings = Bool;
16431647
account.deleteAutoSaveExceptions#53bc0020 = Bool;
1648+
account.invalidateSignInCodes#ca8ae8ba codes:Vector<string> = Bool;
16441649

16451650
users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
16461651
users.getFullUser#b60f5918 id:InputUser = users.UserFull;
@@ -1860,7 +1865,7 @@ messages.requestAppWebView#8c5a3b3c flags:# write_allowed:flags.0?true peer:Inpu
18601865
messages.setChatWallPaper#8ffacae1 flags:# peer:InputPeer wallpaper:flags.0?InputWallPaper settings:flags.2?WallPaperSettings id:flags.1?int = Updates;
18611866

18621867
updates.getState#edd4882a = updates.State;
1863-
updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
1868+
updates.getDifference#19c2f763 flags:# pts:int pts_limit:flags.1?int pts_total_limit:flags.0?int date:int qts:int qts_limit:flags.2?int = updates.Difference;
18641869
updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
18651870

18661871
photos.updateProfilePhoto#9e82039 flags:# fallback:flags.0?true bot:flags.1?InputUser id:InputPhoto = photos.Photo;
@@ -1957,6 +1962,7 @@ channels.reorderPinnedForumTopics#2950a18f flags:# force:flags.0?true channel:In
19571962
channels.toggleAntiSpam#68f3e4eb channel:InputChannel enabled:Bool = Updates;
19581963
channels.reportAntiSpamFalsePositive#a850a693 channel:InputChannel msg_id:int = Bool;
19591964
channels.toggleParticipantsHidden#6a6e7854 channel:InputChannel enabled:Bool = Updates;
1965+
channels.clickSponsoredMessage#18afbc93 channel:InputChannel random_id:bytes = Bool;
19601966

19611967
bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON;
19621968
bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;

0 commit comments

Comments
 (0)