@@ -105,7 +105,7 @@ channel#4df30834 flags:# creator:flags.0?true left:flags.2?true broadcast:flags.
105105channelForbidden#289da732 flags:# broadcast:flags.5? true megagroup:flags.8? true id:int access_hash:long title:string until_date:flags.16? int = Chat ;
106106
107107chatFull#1b7c9db3 flags:# can_set_username:flags.7? true id:int about:string participants:ChatParticipants chat_photo:flags.2? Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:flags.3? Vector <BotInfo > pinned_msg_id:flags.6? int folder_id:flags.11? int = ChatFull ;
108- channelFull#9882e516 flags:# can_view_participants:flags.3? true can_set_username:flags.6? true can_set_stickers:flags.7? true hidden_prehistory:flags.10? true can_view_stats:flags.12? true id:int about:string participants_count:flags.0? int admins_count:flags.1? int kicked_count:flags.2? int banned_count:flags.2? int online_count:flags.13? int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector<BotInfo > migrated_from_chat_id:flags.4? int migrated_from_max_id:flags.4? int pinned_msg_id:flags.5? int stickerset:flags.8? StickerSet available_min_id:flags.9? int folder_id:flags.11? int linked_chat_id:flags.13 ? int pts:int = ChatFull ;
108+ channelFull#10916653 flags:# can_view_participants:flags.3? true can_set_username:flags.6? true can_set_stickers:flags.7? true hidden_prehistory:flags.10? true can_view_stats:flags.12? true can_set_location:flags.16 ? true id:int about:string participants_count:flags.0? int admins_count:flags.1? int kicked_count:flags.2? int banned_count:flags.2? int online_count:flags.13? int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector<BotInfo > migrated_from_chat_id:flags.4? int migrated_from_max_id:flags.4? int pinned_msg_id:flags.5? int stickerset:flags.8? StickerSet available_min_id:flags.9? int folder_id:flags.11? int linked_chat_id:flags.14 ? int location:flags.15 ? ChannelLocation pts:int = ChatFull ;
109109
110110chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant ;
111111chatParticipantCreator#da13538a user_id:int = ChatParticipant ;
@@ -189,7 +189,7 @@ inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags
189189
190190peerNotifySettings#af509d20 flags:# show_previews:flags.0? Bool silent:flags.1? Bool mute_until:flags.2? int sound:flags.3? string = PeerNotifySettings ;
191191
192- peerSettings#818426cd flags:# report_spam:flags.0? true = PeerSettings ;
192+ peerSettings#818426cd flags:# report_spam:flags.0? true add_contact:flags.1 ? true block_contact:flags.2 ? true share_contact:flags.3 ? true need_contacts_exception:flags.4 ? true report_geo:flags.5 ? true = PeerSettings ;
193193
194194wallPaper#a437c3ed id:long flags:# creator:flags.0? true default:flags.1? true pattern:flags.3? true dark:flags.4? true access_hash:long slug:string document:Document settings:flags.2? WallPaperSettings = WallPaper ;
195195
@@ -199,8 +199,9 @@ inputReportReasonPornography#2e59d922 = ReportReason;
199199inputReportReasonChildAbuse#adf44ee3 = ReportReason ;
200200inputReportReasonOther#e1746d0a text:string = ReportReason ;
201201inputReportReasonCopyright#9b89f93a = ReportReason ;
202+ inputReportReasonGeoIrrelevant#dbd4feed = ReportReason ;
202203
203- userFull#745559cc flags:# blocked:flags.0? true phone_calls_available:flags.4? true phone_calls_private:flags.5? true can_pin_message:flags.7? true user:User about:flags.1? string link:contacts. Link profile_photo:flags.2? Photo notify_settings:PeerNotifySettings bot_info:flags.3? BotInfo pinned_msg_id:flags.6? int common_chats_count:int folder_id:flags.11? int = UserFull ;
204+ userFull#edf17c12 flags:# blocked:flags.0? true phone_calls_available:flags.4? true phone_calls_private:flags.5? true can_pin_message:flags.7? true user:User about:flags.1? string settings:PeerSettings profile_photo:flags.2? Photo notify_settings:PeerNotifySettings bot_info:flags.3? BotInfo pinned_msg_id:flags.6? int common_chats_count:int folder_id:flags.11? int = UserFull ;
204205
205206contact#f911c994 user_id:int mutual:Bool = Contact ;
206207
@@ -210,8 +211,6 @@ contactBlocked#561bc879 user_id:int date:int = ContactBlocked;
210211
211212contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus ;
212213
213- contacts.link#3ace484c my_link:ContactLink foreign_link:ContactLink user:User = contacts .Link ;
214-
215214contacts.contactsNotModified#b74ba9d2 = contacts .Contacts ;
216215contacts.contacts#eae87e42 contacts:Vector<Contact > saved_count:int users:Vector<User > = contacts .Contacts ;
217216
@@ -262,7 +261,6 @@ updateChatParticipants#7761198 participants:ChatParticipants = Update;
262261updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update ;
263262updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update ;
264263updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update ;
265- updateContactLink#9d2e67c5 user_id:int my_link:ContactLink foreign_link:ContactLink = Update ;
266264updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update ;
267265updateEncryptedChatTyping#1710f156 chat_id:int = Update ;
268266updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update ;
@@ -323,6 +321,8 @@ updateChatPinnedMessage#e10db349 chat_id:int id:int version:int = Update;
323321updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0? Poll results:PollResults = Update ;
324322updateChatDefaultBannedRights#54c01850 peer:Peer default_banned_rights:ChatBannedRights version:int = Update ;
325323updateFolderPeers#19360dc0 folder_peers:Vector<FolderPeer > pts:int pts_count:int = Update ;
324+ updatePeerSettings#6a7e7366 peer:Peer settings:PeerSettings = Update ;
325+ updatePeerLocated#b4afcfb0 peers:Vector<PeerLocated > = Update ;
326326
327327updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates .State ;
328328
@@ -468,10 +468,6 @@ messages.allStickers#edfd405f hash:int sets:Vector<StickerSet> = messages.AllSti
468468
469469messages.affectedMessages#84d19185 pts:int pts_count:int = messages .AffectedMessages ;
470470
471- contactLinkUnknown#5f4f9247 = ContactLink ;
472- contactLinkNone#feedd3ad = ContactLink ;
473- contactLinkContact#d502c2d0 = ContactLink ;
474-
475471webPageEmpty#eb1477e8 id:long = WebPage ;
476472webPagePending#c586da1c id:long date:int = WebPage ;
477473webPage#5f07b4bc flags:# id:long url:string display_url:string hash:int type:flags.0? string site_name:flags.1? string title:flags.2? string description:flags.3? string photo:flags.4? Photo embed_url:flags.5? string embed_type:flags.5? string embed_width:flags.6? int embed_height:flags.6? int duration:flags.7? int author:flags.8? string document:flags.9? Document cached_page:flags.10? Page = WebPage ;
@@ -501,7 +497,7 @@ inputStickerSetEmpty#ffb62b95 = InputStickerSet;
501497inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet ;
502498inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet ;
503499
504- stickerSet#eeb46f27 flags:# archived:flags.1? true official:flags.2? true masks:flags.3? true installed_date:flags.0? int id:long access_hash:long title:string short_name:string thumb:flags.4? PhotoSize thumb_dc_id:flags.4? int count:int hash:int = StickerSet ;
500+ stickerSet#eeb46f27 flags:# archived:flags.1? true official:flags.2? true masks:flags.3? true animated:flags.5 ? true installed_date:flags.0? int id:long access_hash:long title:string short_name:string thumb:flags.4? PhotoSize thumb_dc_id:flags.4? int count:int hash:int = StickerSet ;
505501
506502messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack > documents:Vector<Document > = messages .StickerSet ;
507503
@@ -542,6 +538,9 @@ messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEnt
542538inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity ;
543539messageEntityPhone#9b69e34b offset:int length:int = MessageEntity ;
544540messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity ;
541+ messageEntityUnderline#9c4e7e8b offset:int length:int = MessageEntity ;
542+ messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity ;
543+ messageEntityBlockquote#20df5d0 offset:int length:int = MessageEntity ;
545544
546545inputChannelEmpty#ee8c1e86 = InputChannel ;
547546inputChannel#afeb712e channel_id:int access_hash:long = InputChannel ;
@@ -828,6 +827,7 @@ channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = Chann
828827channelAdminLogEventActionDefaultBannedRights#2df5fc0a prev_banned_rights:ChatBannedRights new_banned_rights:ChatBannedRights = ChannelAdminLogEventAction ;
829828channelAdminLogEventActionStopPoll#8f079643 message:Message = ChannelAdminLogEventAction ;
830829channelAdminLogEventActionChangeLinkedChat#a26f881b prev_value:int new_value:int = ChannelAdminLogEventAction ;
830+ channelAdminLogEventActionChangeLocation#e6b76ae prev_value:ChannelLocation new_value:ChannelLocation = ChannelAdminLogEventAction ;
831831
832832channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent ;
833833
@@ -1034,6 +1034,11 @@ urlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User
10341034urlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult ;
10351035urlAuthResultDefault#a9d6db1f = UrlAuthResult ;
10361036
1037+ channelLocationEmpty#bfb5ad8b = ChannelLocation ;
1038+ channelLocation#209b82db geo_point:GeoPoint address:string = ChannelLocation ;
1039+
1040+ peerLocated#ca461b5d peer:Peer expires:int distance:int = PeerLocated ;
1041+
10371042---functions ---
10381043
10391044invokeAfterMsg#cb9f372d {X:Type} msg_id:long query :!X = X ;
@@ -1124,8 +1129,7 @@ contacts.getContactIDs#2caa4a42 hash:int = Vector<int>;
11241129contacts.getStatuses#c4a353ee = Vector <ContactStatus >;
11251130contacts.getContacts#c023849f hash:int = contacts .Contacts ;
11261131contacts.importContacts#2c800be5 contacts:Vector<InputContact > = contacts .ImportedContacts ;
1127- contacts.deleteContact#8e953744 id:InputUser = contacts .Link ;
1128- contacts.deleteContacts#59ab389e id:Vector<InputUser > = Bool ;
1132+ contacts.deleteContacts#96a0e00 id:Vector<InputUser > = Updates ;
11291133contacts.deleteByPhones#1013fd9e phones:Vector<string > = Bool ;
11301134contacts.block#332b49fc id:InputUser = Bool ;
11311135contacts.unblock#e54100bd id:InputUser = Bool ;
@@ -1137,6 +1141,9 @@ contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = B
11371141contacts.resetSaved#879537f1 = Bool ;
11381142contacts.getSaved#82f1e39f = Vector <SavedContact >;
11391143contacts.toggleTopPeers#8514bdda enabled:Bool = Bool ;
1144+ contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0? true id:InputUser first_name:string last_name:string phone:string = Updates ;
1145+ contacts.acceptContact#f831a20f id:InputUser = Updates ;
1146+ contacts.getLocated#a356056 geo_point:InputGeoPoint = Updates ;
11401147
11411148messages.getMessages#63c66506 id:Vector<InputMessage > = messages .Messages ;
11421149messages.getDialogs#a0ee3b73 flags:# exclude_pinned:flags.0? true folder_id:flags.1? int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages .Dialogs ;
@@ -1151,7 +1158,6 @@ messages.sendMessage#fa88427a flags:# no_webpage:flags.1?true silent:flags.5?tru
11511158messages.sendMedia#b8d1262b flags:# silent:flags.5? true background:flags.6? true clear_draft:flags.7? true peer:InputPeer reply_to_msg_id:flags.0? int media:InputMedia message:string random_id:long reply_markup:flags.2? ReplyMarkup entities:flags.3? Vector <MessageEntity > = Updates ;
11521159messages.forwardMessages#708e0195 flags:# silent:flags.5? true background:flags.6? true with_my_score:flags.8? true grouped:flags.9? true from_peer:InputPeer id:Vector<int > random_id:Vector<long > to_peer:InputPeer = Updates ;
11531160messages.reportSpam#cf1592db peer:InputPeer = Bool ;
1154- messages.hideReportSpam#a8f1709b peer:InputPeer = Bool ;
11551161messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings ;
11561162messages.report#bd82b658 peer:InputPeer id:Vector<int > reason:ReportReason = Bool ;
11571163messages.getChats#3c6aa187 id:Vector<int > = messages .Chats ;
@@ -1186,7 +1192,7 @@ messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_par
11861192messages.getMessagesViews#c4c8a55d peer:InputPeer id:Vector<int > increment:Bool = Vector <int >;
11871193messages.editChatAdmin#a9e69f2e chat_id:int user_id:InputUser is_admin:Bool = Bool ;
11881194messages.migrateChat#15a3b8e3 chat_id:int = Updates ;
1189- messages.searchGlobal#f79c611 q:string offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages .Messages ;
1195+ messages.searchGlobal#bf7225a4 flags:# folder_id:flags.0 ? int q:string offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages .Messages ;
11901196messages.reorderStickerSets#78337739 flags:# masks:flags.0? true order:Vector<long > = Bool ;
11911197messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document ;
11921198messages.searchGifs#bf9a776b q:string offset:int = messages .FoundGifs ;
@@ -1251,6 +1257,7 @@ messages.getEmojiURL#d5b10c26 lang_code:string = EmojiURL;
12511257messages.getSearchCounters#732eef00 peer:InputPeer filters:Vector<MessagesFilter > = Vector <messages .SearchCounter >;
12521258messages.requestUrlAuth#e33f5613 peer:InputPeer msg_id:int button_id:int = UrlAuthResult ;
12531259messages.acceptUrlAuth#f729ea98 flags:# write_allowed:flags.0? true peer:InputPeer msg_id:int button_id:int = UrlAuthResult ;
1260+ messages.hidePeerSettingsBar#4facb138 peer:InputPeer = Bool ;
12541261
12551262updates.getState#edd4882a = updates .State ;
12561263updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0? int date:int qts:int = updates .Difference ;
@@ -1299,7 +1306,7 @@ channels.getParticipants#123e05e9 channel:InputChannel filter:ChannelParticipant
12991306channels.getParticipant#546dd7a6 channel:InputChannel user_id:InputUser = channels .ChannelParticipant ;
13001307channels.getChannels#a7f6bbb id:Vector<InputChannel > = messages .Chats ;
13011308channels.getFullChannel#8736a09 channel:InputChannel = messages .ChatFull ;
1302- channels.createChannel#f4893d7f flags:# broadcast:flags.0? true megagroup:flags.1? true title:string about:string = Updates ;
1309+ channels.createChannel#3d5fb10f flags:# broadcast:flags.0? true megagroup:flags.1? true title:string about:string geo_point:flags.2 ? InputGeoPoint address:flags.2 ? string = Updates ;
13031310channels.editAdmin#70f893ba channel:InputChannel user_id:InputUser admin_rights:ChatAdminRights = Updates ;
13041311channels.editTitle#566decd0 channel:InputChannel title:string = Updates ;
13051312channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates ;
@@ -1311,7 +1318,7 @@ channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector<InputUser> =
13111318channels.deleteChannel#c0111fe3 channel:InputChannel = Updates ;
13121319channels.exportMessageLink#ceb77163 channel:InputChannel id:int grouped:Bool = ExportedMessageLink ;
13131320channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates ;
1314- channels.getAdminedPublicChannels#8d8d82d7 = messages .Chats ;
1321+ channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0 ? true check_limit:flags.1 ? true = messages .Chats ;
13151322channels.editBanned#72796912 channel:InputChannel user_id:InputUser banned_rights:ChatBannedRights = Updates ;
13161323channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0? ChannelAdminLogEventsFilter admins:flags.1? Vector <InputUser > max_id:long min_id:long limit:int = channels .AdminLogResults ;
13171324channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool ;
@@ -1320,8 +1327,9 @@ channels.deleteHistory#af369d42 channel:InputChannel max_id:int = Bool;
13201327channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates ;
13211328channels.getLeftChannels#8341ecc0 offset:int = messages .Chats ;
13221329channels.getGroupsForDiscussion#f5dad378 = messages .Chats ;
1323- channels.getBroadcastsForDiscussion#1a87f304 = messages .Chats ;
13241330channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool ;
1331+ channels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:InputCheckPasswordSRP = Updates ;
1332+ channels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool ;
13251333
13261334bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON ;
13271335bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool ;
@@ -1356,7 +1364,4 @@ langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLangua
13561364folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer > = Updates ;
13571365folders.deleteFolder#1c295881 folder_id:int = Updates ;
13581366
1359- // LAYER 100
1360-
1361- // Ports
1362- channels.exportInvite#c7560885 channel:InputChannel = ExportedChatInvite ;
1367+ // LAYER 102
0 commit comments