@mtcute/tl 203.0.0 → 206.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api-schema.json +1 -1
- package/binary/reader.js +38 -19
- package/binary/writer.js +80 -48
- package/compat/index.d.ts +234 -4
- package/compat/reader.js +5 -0
- package/index.d.ts +310 -49
- package/index.js +6 -2
- package/package.json +1 -1
package/binary/reader.js
CHANGED
|
@@ -42,6 +42,7 @@ var m={
|
|
|
42
42
|
2315114360:function(r){return{_:'inputMediaStory',peer:r.object(),id:r.int(),}},
|
|
43
43
|
3256584265:function(r){var flags=r.uint();return{_:'inputMediaWebPage',forceLargeMedia:!!(flags&1),forceSmallMedia:!!(flags&2),optional:!!(flags&4),url:r.string(),}},
|
|
44
44
|
3289396102:function(r){var flags=r.uint();return{_:'inputMediaPaidMedia',starsAmount:r.long(),extendedMedia:r.vector(r.object),payload:flags&1?r.string():void 0,}},
|
|
45
|
+
2680512478:function(r){return{_:'inputMediaTodo',todo:r.object(),}},
|
|
45
46
|
480546647:function(r){return{_:'inputChatPhotoEmpty'}},
|
|
46
47
|
3184373440:function(r){var flags=r.uint();return{_:'inputChatUploadedPhoto',file:flags&1?r.object():void 0,video:flags&2?r.object():void 0,videoStartTs:flags&4?r.double():void 0,videoEmojiMarkup:flags&8?r.object():void 0,}},
|
|
47
48
|
2303962423:function(r){return{_:'inputChatPhoto',id:r.object(),}},
|
|
@@ -85,10 +86,10 @@ var m={
|
|
|
85
86
|
693512293:function(r){return{_:'chatEmpty',id:r.int53(),}},
|
|
86
87
|
1103884886:function(r){var flags=r.uint();return{_:'chat',creator:!!(flags&1),left:!!(flags&4),deactivated:!!(flags&32),callActive:!!(flags&8388608),callNotEmpty:!!(flags&16777216),noforwards:!!(flags&33554432),id:r.int53(),title:r.string(),photo:r.object(),participantsCount:r.int(),date:r.int(),version:r.int(),migratedTo:flags&64?r.object():void 0,adminRights:flags&16384?r.object():void 0,defaultBannedRights:flags&262144?r.object():void 0,}},
|
|
87
88
|
1704108455:function(r){return{_:'chatForbidden',id:r.int53(),title:r.string(),}},
|
|
88
|
-
|
|
89
|
+
4268249941:function(r){var flags=r.uint(),flags2=r.uint();return{_:'channel',creator:!!(flags&1),left:!!(flags&4),broadcast:!!(flags&32),verified:!!(flags&128),megagroup:!!(flags&256),restricted:!!(flags&512),signatures:!!(flags&2048),min:!!(flags&4096),scam:!!(flags&524288),hasLink:!!(flags&1048576),hasGeo:!!(flags&2097152),slowmodeEnabled:!!(flags&4194304),callActive:!!(flags&8388608),callNotEmpty:!!(flags&16777216),fake:!!(flags&33554432),gigagroup:!!(flags&67108864),noforwards:!!(flags&134217728),joinToSend:!!(flags&268435456),joinRequest:!!(flags&536870912),forum:!!(flags&1073741824),storiesHidden:!!(flags2&2),storiesHiddenMin:!!(flags2&4),storiesUnavailable:!!(flags2&8),signatureProfiles:!!(flags2&4096),autotranslation:!!(flags2&32768),broadcastMessagesAllowed:!!(flags2&65536),monoforum:!!(flags2&131072),forumTabs:!!(flags2&524288),id:r.int53(),accessHash:flags&8192?r.long():void 0,title:r.string(),username:flags&64?r.string():void 0,photo:r.object(),date:r.int(),restrictionReason:flags&512?r.vector(r.object):void 0,adminRights:flags&16384?r.object():void 0,bannedRights:flags&32768?r.object():void 0,defaultBannedRights:flags&262144?r.object():void 0,participantsCount:flags&131072?r.int():void 0,usernames:flags2&1?r.vector(r.object):void 0,storiesMaxId:flags2&16?r.int():void 0,color:flags2&128?r.object():void 0,profileColor:flags2&256?r.object():void 0,emojiStatus:flags2&512?r.object():void 0,level:flags2&1024?r.int():void 0,subscriptionUntilDate:flags2&2048?r.int():void 0,botVerificationIcon:flags2&8192?r.long():void 0,sendPaidMessagesStars:flags2&16384?r.long():void 0,linkedMonoforumId:flags2&262144?r.int53():void 0,}},
|
|
89
90
|
399807445:function(r){var flags=r.uint();return{_:'channelForbidden',broadcast:!!(flags&32),megagroup:!!(flags&256),id:r.int53(),accessHash:r.long(),title:r.string(),untilDate:flags&65536?r.int():void 0,}},
|
|
90
91
|
640893467:function(r){var flags=r.uint();return{_:'chatFull',canSetUsername:!!(flags&128),hasScheduled:!!(flags&256),translationsDisabled:!!(flags&524288),id:r.int53(),about:r.string(),participants:r.object(),chatPhoto:flags&4?r.object():void 0,notifySettings:r.object(),exportedInvite:flags&8192?r.object():void 0,botInfo:flags&8?r.vector(r.object):void 0,pinnedMsgId:flags&64?r.int():void 0,folderId:flags&2048?r.int():void 0,call:flags&4096?r.object():void 0,ttlPeriod:flags&16384?r.int():void 0,groupcallDefaultJoinAs:flags&32768?r.object():void 0,themeEmoticon:flags&65536?r.string():void 0,requestsPending:flags&131072?r.int():void 0,recentRequesters:flags&131072?r.vector(r.long):void 0,availableReactions:flags&262144?r.object():void 0,reactionsLimit:flags&1048576?r.int():void 0,}},
|
|
91
|
-
|
|
92
|
+
3765709278:function(r){var flags=r.uint(),flags2=r.uint();return{_:'channelFull',canViewParticipants:!!(flags&8),canSetUsername:!!(flags&64),canSetStickers:!!(flags&128),hiddenPrehistory:!!(flags&1024),canSetLocation:!!(flags&65536),hasScheduled:!!(flags&524288),canViewStats:!!(flags&1048576),blocked:!!(flags&4194304),canDeleteChannel:!!(flags2&1),antispam:!!(flags2&2),participantsHidden:!!(flags2&4),translationsDisabled:!!(flags2&8),storiesPinnedAvailable:!!(flags2&32),viewForumAsMessages:!!(flags2&64),restrictedSponsored:!!(flags2&2048),canViewRevenue:!!(flags2&4096),paidMediaAllowed:!!(flags2&16384),canViewStarsRevenue:!!(flags2&32768),paidReactionsAvailable:!!(flags2&65536),stargiftsAvailable:!!(flags2&524288),paidMessagesAvailable:!!(flags2&1048576),id:r.int53(),about:r.string(),participantsCount:flags&1?r.int():void 0,adminsCount:flags&2?r.int():void 0,kickedCount:flags&4?r.int():void 0,bannedCount:flags&4?r.int():void 0,onlineCount:flags&8192?r.int():void 0,readInboxMaxId:r.int(),readOutboxMaxId:r.int(),unreadCount:r.int(),chatPhoto:r.object(),notifySettings:r.object(),exportedInvite:flags&8388608?r.object():void 0,botInfo:r.vector(r.object),migratedFromChatId:flags&16?r.long():void 0,migratedFromMaxId:flags&16?r.int():void 0,pinnedMsgId:flags&32?r.int():void 0,stickerset:flags&256?r.object():void 0,availableMinId:flags&512?r.int():void 0,folderId:flags&2048?r.int():void 0,linkedChatId:flags&16384?r.int53():void 0,location:flags&32768?r.object():void 0,slowmodeSeconds:flags&131072?r.int():void 0,slowmodeNextSendDate:flags&262144?r.int():void 0,statsDc:flags&4096?r.int():void 0,pts:r.int(),call:flags&2097152?r.object():void 0,ttlPeriod:flags&16777216?r.int():void 0,pendingSuggestions:flags&33554432?r.vector(r.string):void 0,groupcallDefaultJoinAs:flags&67108864?r.object():void 0,themeEmoticon:flags&134217728?r.string():void 0,requestsPending:flags&268435456?r.int():void 0,recentRequesters:flags&268435456?r.vector(r.int53):void 0,defaultSendAs:flags&536870912?r.object():void 0,availableReactions:flags&1073741824?r.object():void 0,reactionsLimit:flags2&8192?r.int():void 0,stories:flags2&16?r.object():void 0,wallpaper:flags2&128?r.object():void 0,boostsApplied:flags2&256?r.int():void 0,boostsUnrestrict:flags2&512?r.int():void 0,emojiset:flags2&1024?r.object():void 0,botVerification:flags2&131072?r.object():void 0,stargiftsCount:flags2&262144?r.int():void 0,sendPaidMessagesStars:flags2&2097152?r.long():void 0,}},
|
|
92
93
|
3224190983:function(r){return{_:'chatParticipant',userId:r.int53(),inviterId:r.int53(),date:r.int(),}},
|
|
93
94
|
3832270564:function(r){return{_:'chatParticipantCreator',userId:r.int53(),}},
|
|
94
95
|
2694004571:function(r){return{_:'chatParticipantAdmin',userId:r.int53(),inviterId:r.int53(),date:r.int(),}},
|
|
@@ -97,8 +98,8 @@ var m={
|
|
|
97
98
|
935395612:function(r){return{_:'chatPhotoEmpty'}},
|
|
98
99
|
476978193:function(r){var flags=r.uint();return{_:'chatPhoto',hasVideo:!!(flags&1),photoId:r.long(),strippedThumb:flags&2?r.bytes():void 0,dcId:r.int(),}},
|
|
99
100
|
2426849924:function(r){var flags=r.uint();return{_:'messageEmpty',id:r.int(),peerId:flags&1?r.object():void 0,}},
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
2551566024:function(r){var flags=r.uint(),flags2=r.uint();return{_:'message',out:!!(flags&2),mentioned:!!(flags&16),mediaUnread:!!(flags&32),silent:!!(flags&8192),post:!!(flags&16384),fromScheduled:!!(flags&262144),legacy:!!(flags&524288),editHide:!!(flags&2097152),pinned:!!(flags&16777216),noforwards:!!(flags&67108864),invertMedia:!!(flags&134217728),offline:!!(flags2&2),videoProcessingPending:!!(flags2&16),paidSuggestedPostStars:!!(flags2&256),paidSuggestedPostTon:!!(flags2&512),id:r.int(),fromId:flags&256?r.object():void 0,fromBoostsApplied:flags&536870912?r.int():void 0,peerId:r.object(),savedPeerId:flags&268435456?r.object():void 0,fwdFrom:flags&4?r.object():void 0,viaBotId:flags&2048?r.int53():void 0,viaBusinessBotId:flags2&1?r.int53():void 0,replyTo:flags&8?r.object():void 0,date:r.int(),message:r.string(),media:flags&512?r.object():void 0,replyMarkup:flags&64?r.object():void 0,entities:flags&128?r.vector(r.object):void 0,views:flags&1024?r.int():void 0,forwards:flags&1024?r.int():void 0,replies:flags&8388608?r.object():void 0,editDate:flags&32768?r.int():void 0,postAuthor:flags&65536?r.string():void 0,groupedId:flags&131072?r.long():void 0,reactions:flags&1048576?r.object():void 0,restrictionReason:flags&4194304?r.vector(r.object):void 0,ttlPeriod:flags&33554432?r.int():void 0,quickReplyShortcutId:flags&1073741824?r.int():void 0,effect:flags2&4?r.long():void 0,factcheck:flags2&8?r.object():void 0,reportDeliveryUntilDate:flags2&32?r.int():void 0,paidMessageStars:flags2&64?r.long():void 0,suggestedPost:flags2&128?r.object():void 0,}},
|
|
102
|
+
2055212554:function(r){var flags=r.uint();return{_:'messageService',out:!!(flags&2),mentioned:!!(flags&16),mediaUnread:!!(flags&32),reactionsArePossible:!!(flags&512),silent:!!(flags&8192),post:!!(flags&16384),legacy:!!(flags&524288),id:r.int(),fromId:flags&256?r.object():void 0,peerId:r.object(),savedPeerId:flags&268435456?r.object():void 0,replyTo:flags&8?r.object():void 0,date:r.int(),action:r.object(),reactions:flags&1048576?r.object():void 0,ttlPeriod:flags&33554432?r.int():void 0,}},
|
|
102
103
|
1038967584:function(r){return{_:'messageMediaEmpty'}},
|
|
103
104
|
1766936791:function(r){var flags=r.uint();return{_:'messageMediaPhoto',spoiler:!!(flags&8),photo:flags&1?r.object():void 0,ttlSeconds:flags&4?r.int():void 0,}},
|
|
104
105
|
1457575028:function(r){return{_:'messageMediaGeo',geo:r.object(),}},
|
|
@@ -116,6 +117,7 @@ var m={
|
|
|
116
117
|
2852600811:function(r){var flags=r.uint();return{_:'messageMediaGiveaway',onlyNewSubscribers:!!(flags&1),winnersAreVisible:!!(flags&4),channels:r.vector(r.int53),countriesIso2:flags&2?r.vector(r.string):void 0,prizeDescription:flags&8?r.string():void 0,quantity:r.int(),months:flags&16?r.int():void 0,stars:flags&32?r.long():void 0,untilDate:r.int(),}},
|
|
117
118
|
3467263649:function(r){var flags=r.uint();return{_:'messageMediaGiveawayResults',onlyNewSubscribers:!!(flags&1),refunded:!!(flags&4),channelId:r.long(),additionalPeersCount:flags&8?r.int():void 0,launchMsgId:r.int(),winnersCount:r.int(),unclaimedCount:r.int(),winners:r.vector(r.long),months:flags&16?r.int():void 0,stars:flags&32?r.long():void 0,prizeDescription:flags&2?r.string():void 0,untilDate:r.int(),}},
|
|
118
119
|
2827297937:function(r){return{_:'messageMediaPaidMedia',starsAmount:r.long(),extendedMedia:r.vector(r.object),}},
|
|
120
|
+
2320740372:function(r){var flags=r.uint();return{_:'messageMediaToDo',todo:r.object(),completions:flags&1?r.vector(r.object):void 0,}},
|
|
119
121
|
3064919984:function(r){return{_:'messageActionEmpty'}},
|
|
120
122
|
3175599021:function(r){return{_:'messageActionChatCreate',title:r.string(),users:r.vector(r.int53),}},
|
|
121
123
|
3047280218:function(r){return{_:'messageActionChatEditTitle',title:r.string(),}},
|
|
@@ -165,8 +167,10 @@ var m={
|
|
|
165
167
|
1192749220:function(r){var flags=r.uint();return{_:'messageActionStarGift',nameHidden:!!(flags&1),saved:!!(flags&4),converted:!!(flags&8),upgraded:!!(flags&32),refunded:!!(flags&512),canUpgrade:!!(flags&1024),gift:r.object(),message:flags&2?r.object():void 0,convertStars:flags&16?r.long():void 0,upgradeMsgId:flags&32?r.int():void 0,upgradeStars:flags&256?r.long():void 0,fromId:flags&2048?r.object():void 0,peer:flags&4096?r.object():void 0,savedId:flags&4096?r.long():void 0,}},
|
|
166
168
|
775611918:function(r){var flags=r.uint();return{_:'messageActionStarGiftUnique',upgrade:!!(flags&1),transferred:!!(flags&2),saved:!!(flags&4),refunded:!!(flags&32),gift:r.object(),canExportAt:flags&8?r.int():void 0,transferStars:flags&16?r.long():void 0,fromId:flags&64?r.object():void 0,peer:flags&128?r.object():void 0,savedId:flags&128?r.long():void 0,resaleStars:flags&256?r.long():void 0,canTransferAt:flags&512?r.int():void 0,canResellAt:flags&1024?r.int():void 0,}},
|
|
167
169
|
2887720909:function(r){return{_:'messageActionPaidMessagesRefunded',count:r.int(),stars:r.long(),}},
|
|
168
|
-
|
|
170
|
+
2226685304:function(r){var flags=r.uint();return{_:'messageActionPaidMessagesPrice',broadcastMessagesAllowed:!!(flags&1),stars:r.long(),}},
|
|
169
171
|
805187450:function(r){var flags=r.uint();return{_:'messageActionConferenceCall',missed:!!(flags&1),active:!!(flags&2),video:!!(flags&16),callId:r.long(),duration:flags&4?r.int():void 0,otherParticipants:flags&8?r.vector(r.object):void 0,}},
|
|
172
|
+
3430702217:function(r){return{_:'messageActionTodoCompletions',completed:r.vector(r.int),incompleted:r.vector(r.int),}},
|
|
173
|
+
3354246275:function(r){return{_:'messageActionTodoAppendTasks',list:r.vector(r.object),}},
|
|
170
174
|
3582593222:function(r){var flags=r.uint();return{_:'dialog',pinned:!!(flags&4),unreadMark:!!(flags&8),viewForumAsMessages:!!(flags&64),peer:r.object(),topMessage:r.int(),readInboxMaxId:r.int(),readOutboxMaxId:r.int(),unreadCount:r.int(),unreadMentionsCount:r.int(),unreadReactionsCount:r.int(),notifySettings:r.object(),pts:flags&1?r.int():void 0,draft:flags&2?r.object():void 0,folderId:flags&16?r.int():void 0,ttlPeriod:flags&32?r.int():void 0,}},
|
|
171
175
|
1908216652:function(r){var flags=r.uint();return{_:'dialogFolder',pinned:!!(flags&4),folder:r.object(),peer:r.object(),topMessage:r.int(),unreadMutedPeersCount:r.int(),unreadUnmutedPeersCount:r.int(),unreadMutedMessagesCount:r.int(),unreadUnmutedMessagesCount:r.int(),}},
|
|
172
176
|
590459437:function(r){return{_:'photoEmpty',id:r.long(),}},
|
|
@@ -284,7 +288,7 @@ var m={
|
|
|
284
288
|
3825430691:function(r){return{_:'updateEditMessage',message:r.object(),pts:r.int(),ptsCount:r.int(),}},
|
|
285
289
|
1763610706:function(r){var flags=r.uint();return{_:'updateInlineBotCallbackQuery',queryId:r.long(),userId:r.int53(),msgId:r.object(),chatInstance:r.long(),data:flags&1?r.bytes():void 0,gameShortName:flags&2?r.string():void 0,}},
|
|
286
290
|
3076495785:function(r){return{_:'updateReadChannelOutbox',channelId:r.int53(),maxId:r.int(),}},
|
|
287
|
-
|
|
291
|
+
3992719646:function(r){var flags=r.uint();return{_:'updateDraftMessage',peer:r.object(),topMsgId:flags&1?r.int():void 0,savedPeerId:flags&2?r.object():void 0,draft:r.object(),}},
|
|
288
292
|
1461528386:function(r){return{_:'updateReadFeaturedStickers'}},
|
|
289
293
|
2588027936:function(r){return{_:'updateRecentStickers'}},
|
|
290
294
|
2720652550:function(r){return{_:'updateConfig'}},
|
|
@@ -300,10 +304,10 @@ var m={
|
|
|
300
304
|
1180041828:function(r){return{_:'updateLangPackTooLong',langCode:r.string(),}},
|
|
301
305
|
1442983757:function(r){return{_:'updateLangPack',difference:r.object(),}},
|
|
302
306
|
3843135853:function(r){return{_:'updateFavedStickers'}},
|
|
303
|
-
|
|
307
|
+
636691703:function(r){var flags=r.uint();return{_:'updateChannelReadMessagesContents',channelId:r.int53(),topMsgId:flags&1?r.int():void 0,savedPeerId:flags&2?r.object():void 0,messages:r.vector(r.int),}},
|
|
304
308
|
1887741886:function(r){return{_:'updateContactsReset'}},
|
|
305
309
|
2990524056:function(r){return{_:'updateChannelAvailableMessages',channelId:r.int53(),availableMinId:r.int(),}},
|
|
306
|
-
|
|
310
|
+
3059282494:function(r){var flags=r.uint();return{_:'updateDialogUnreadMark',unread:!!(flags&1),peer:r.object(),savedPeerId:flags&2?r.object():void 0,}},
|
|
307
311
|
2896258427:function(r){var flags=r.uint();return{_:'updateMessagePoll',pollId:r.long(),poll:flags&1?r.object():void 0,results:r.object(),}},
|
|
308
312
|
1421875280:function(r){return{_:'updateChatDefaultBannedRights',peer:r.object(),defaultBannedRights:r.object(),version:r.int(),}},
|
|
309
313
|
422972864:function(r){return{_:'updateFolderPeers',folderPeers:r.vector(r.object),pts:r.int(),ptsCount:r.int(),}},
|
|
@@ -337,7 +341,7 @@ var m={
|
|
|
337
341
|
1299263278:function(r){return{_:'updateBotCommands',peer:r.object(),botId:r.int53(),commands:r.vector(r.object),}},
|
|
338
342
|
1885586395:function(r){return{_:'updatePendingJoinRequests',peer:r.object(),requestsPending:r.int(),recentRequesters:r.vector(r.int53),}},
|
|
339
343
|
299870598:function(r){return{_:'updateBotChatInviteRequester',peer:r.object(),date:r.int(),userId:r.int53(),about:r.string(),invite:r.object(),qts:r.int(),}},
|
|
340
|
-
|
|
344
|
+
506035194:function(r){var flags=r.uint();return{_:'updateMessageReactions',peer:r.object(),msgId:r.int(),topMsgId:flags&1?r.int():void 0,savedPeerId:flags&2?r.object():void 0,reactions:r.object(),}},
|
|
341
345
|
397910539:function(r){return{_:'updateAttachMenuBots'}},
|
|
342
346
|
361936797:function(r){return{_:'updateWebViewResultSent',queryId:r.long(),}},
|
|
343
347
|
347625491:function(r){return{_:'updateBotMenuButton',botId:r.int53(),button:r.object(),}},
|
|
@@ -385,6 +389,9 @@ var m={
|
|
|
385
389
|
2339528654:function(r){return{_:'updatePaidReactionPrivacy',private:r.object(),}},
|
|
386
390
|
1347068303:function(r){return{_:'updateSentPhoneCode',sentCode:r.object(),}},
|
|
387
391
|
2759272591:function(r){return{_:'updateGroupCallChainBlocks',call:r.object(),subChainId:r.int(),blocks:r.vector(r.bytes),nextOffset:r.int(),}},
|
|
392
|
+
2008081266:function(r){return{_:'updateReadMonoForumInbox',channelId:r.int53(),savedPeerId:r.object(),readMaxId:r.int(),}},
|
|
393
|
+
2762445686:function(r){return{_:'updateReadMonoForumOutbox',channelId:r.int53(),savedPeerId:r.object(),readMaxId:r.int(),}},
|
|
394
|
+
2676042504:function(r){var flags=r.uint();return{_:'updateMonoForumNoPaidException',exception:!!(flags&1),channelId:r.int53(),savedPeerId:r.object(),}},
|
|
388
395
|
2775329342:function(r){return{_:'updates.state',pts:r.int(),qts:r.int(),date:r.int(),seq:r.int(),unreadCount:r.int(),}},
|
|
389
396
|
1567990072:function(r){return{_:'updates.differenceEmpty',date:r.int(),seq:r.int(),}},
|
|
390
397
|
16030880:function(r){return{_:'updates.difference',newMessages:r.vector(r.object),newEncryptedMessages:r.vector(r.object),otherUpdates:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),state:r.object(),}},
|
|
@@ -688,7 +695,7 @@ var m={
|
|
|
688
695
|
1891070632:function(r){return{_:'contacts.topPeers',categories:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
689
696
|
3039597469:function(r){return{_:'contacts.topPeersDisabled'}},
|
|
690
697
|
453805082:function(r){var flags=r.uint();return{_:'draftMessageEmpty',date:flags&1?r.int():void 0,}},
|
|
691
|
-
|
|
698
|
+
2531960299:function(r){var flags=r.uint();return{_:'draftMessage',noWebpage:!!(flags&2),invertMedia:!!(flags&64),replyTo:flags&16?r.object():void 0,message:r.string(),entities:flags&8?r.vector(r.object):void 0,media:flags&32?r.object():void 0,date:r.int(),effect:flags&128?r.long():void 0,suggestedPost:flags&256?r.object():void 0,}},
|
|
692
699
|
3336309862:function(r){return{_:'messages.featuredStickersNotModified',count:r.int(),}},
|
|
693
700
|
3191351558:function(r){var flags=r.uint();return{_:'messages.featuredStickers',premium:!!(flags&1),hash:r.long(),count:r.int(),sets:r.vector(r.object),unread:r.vector(r.long),}},
|
|
694
701
|
186120336:function(r){return{_:'messages.recentStickersNotModified'}},
|
|
@@ -858,6 +865,7 @@ var m={
|
|
|
858
865
|
1188577451:function(r){return{_:'channelAdminLogEventActionChangeEmojiStickerSet',prevStickerset:r.object(),newStickerset:r.object(),}},
|
|
859
866
|
1621597305:function(r){return{_:'channelAdminLogEventActionToggleSignatureProfiles',newValue:r.boolean(),}},
|
|
860
867
|
1684286899:function(r){return{_:'channelAdminLogEventActionParticipantSubExtend',prevParticipant:r.object(),newParticipant:r.object(),}},
|
|
868
|
+
3306682238:function(r){return{_:'channelAdminLogEventActionToggleAutotranslation',newValue:r.boolean(),}},
|
|
861
869
|
531458253:function(r){return{_:'channelAdminLogEvent',id:r.long(),date:r.int(),userId:r.int53(),action:r.object(),}},
|
|
862
870
|
3985307469:function(r){return{_:'channels.adminLogResults',events:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
863
871
|
3926948580:function(r){var flags=r.uint();return{_:'channelAdminLogEventsFilter',join:!!(flags&1),leave:!!(flags&2),invite:!!(flags&4),ban:!!(flags&8),unban:!!(flags&16),kick:!!(flags&32),unkick:!!(flags&64),promote:!!(flags&128),demote:!!(flags&256),info:!!(flags&512),settings:!!(flags&1024),pinned:!!(flags&2048),edit:!!(flags&4096),delete:!!(flags&8192),groupCall:!!(flags&16384),invites:!!(flags&32768),send:!!(flags&65536),forums:!!(flags&131072),subExtend:!!(flags&262144),}},
|
|
@@ -964,7 +972,7 @@ var m={
|
|
|
964
972
|
2061444128:function(r){var flags=r.uint();return{_:'pollResults',min:!!(flags&1),results:flags&2?r.vector(r.object):void 0,totalVoters:flags&4?r.int():void 0,recentVoters:flags&8?r.vector(r.object):void 0,solution:flags&16?r.string():void 0,solutionEntities:flags&16?r.vector(r.object):void 0,}},
|
|
965
973
|
4030849616:function(r){return{_:'chatOnlines',onlines:r.int(),}},
|
|
966
974
|
1202287072:function(r){return{_:'statsURL',url:r.string(),}},
|
|
967
|
-
1605510357:function(r){var flags=r.uint();return{_:'chatAdminRights',changeInfo:!!(flags&1),postMessages:!!(flags&2),editMessages:!!(flags&4),deleteMessages:!!(flags&8),banUsers:!!(flags&16),inviteUsers:!!(flags&32),pinMessages:!!(flags&128),addAdmins:!!(flags&512),anonymous:!!(flags&1024),manageCall:!!(flags&2048),other:!!(flags&4096),manageTopics:!!(flags&8192),postStories:!!(flags&16384),editStories:!!(flags&32768),deleteStories:!!(flags&65536),}},
|
|
975
|
+
1605510357:function(r){var flags=r.uint();return{_:'chatAdminRights',changeInfo:!!(flags&1),postMessages:!!(flags&2),editMessages:!!(flags&4),deleteMessages:!!(flags&8),banUsers:!!(flags&16),inviteUsers:!!(flags&32),pinMessages:!!(flags&128),addAdmins:!!(flags&512),anonymous:!!(flags&1024),manageCall:!!(flags&2048),other:!!(flags&4096),manageTopics:!!(flags&8192),postStories:!!(flags&16384),editStories:!!(flags&32768),deleteStories:!!(flags&65536),manageDirectMessages:!!(flags&131072),}},
|
|
968
976
|
2668758040:function(r){var flags=r.uint();return{_:'chatBannedRights',viewMessages:!!(flags&1),sendMessages:!!(flags&2),sendMedia:!!(flags&4),sendStickers:!!(flags&8),sendGifs:!!(flags&16),sendGames:!!(flags&32),sendInline:!!(flags&64),embedLinks:!!(flags&128),sendPolls:!!(flags&256),changeInfo:!!(flags&1024),inviteUsers:!!(flags&32768),pinMessages:!!(flags&131072),manageTopics:!!(flags&262144),sendPhotos:!!(flags&524288),sendVideos:!!(flags&1048576),sendRoundvideos:!!(flags&2097152),sendAudios:!!(flags&4194304),sendVoices:!!(flags&8388608),sendDocs:!!(flags&16777216),sendPlain:!!(flags&33554432),untilDate:r.int(),}},
|
|
969
977
|
3861952889:function(r){return{_:'inputWallPaper',id:r.long(),accessHash:r.long(),}},
|
|
970
978
|
1913199744:function(r){return{_:'inputWallPaperSlug',slug:r.string(),}},
|
|
@@ -1089,8 +1097,8 @@ var m={
|
|
|
1089
1097
|
3816265825:function(r){return{_:'account.resetPasswordFailedWait',retryDate:r.int(),}},
|
|
1090
1098
|
3924819069:function(r){return{_:'account.resetPasswordRequestedWait',untilDate:r.int(),}},
|
|
1091
1099
|
3911636542:function(r){return{_:'account.resetPasswordOk'}},
|
|
1092
|
-
|
|
1093
|
-
|
|
1100
|
+
2109703795:function(r){var flags=r.uint();return{_:'sponsoredMessage',recommended:!!(flags&32),canReport:!!(flags&4096),randomId:r.bytes(),url:r.string(),title:r.string(),message:r.string(),entities:flags&2?r.vector(r.object):void 0,photo:flags&64?r.object():void 0,media:flags&16384?r.object():void 0,color:flags&8192?r.object():void 0,buttonText:r.string(),sponsorInfo:flags&128?r.string():void 0,additionalInfo:flags&256?r.string():void 0,minDisplayDuration:flags&32768?r.int():void 0,maxDisplayDuration:flags&32768?r.int():void 0,}},
|
|
1101
|
+
4292502893:function(r){var flags=r.uint();return{_:'messages.sponsoredMessages',postsBetween:flags&1?r.int():void 0,startDelay:flags&2?r.int():void 0,betweenDelay:flags&4?r.int():void 0,messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1094
1102
|
406407439:function(r){return{_:'messages.sponsoredMessagesEmpty'}},
|
|
1095
1103
|
3383776159:function(r){return{_:'searchResultsCalendarPeriod',date:r.int(),minMsgId:r.int(),maxMsgId:r.int(),count:r.int(),}},
|
|
1096
1104
|
343859772:function(r){var flags=r.uint();return{_:'messages.searchResultsCalendar',inexact:!!(flags&1),count:r.int(),minDate:r.int(),minMsgId:r.int(),offsetIdOffset:flags&2?r.int():void 0,periods:r.vector(r.object),messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
@@ -1144,6 +1152,7 @@ var m={
|
|
|
1144
1152
|
1247763417:function(r){return{_:'inputInvoiceStarGiftTransfer',stargift:r.object(),toId:r.object(),}},
|
|
1145
1153
|
3669668591:function(r){var flags=r.uint();return{_:'inputInvoicePremiumGiftStars',userId:r.object(),months:r.int(),message:flags&1?r.object():void 0,}},
|
|
1146
1154
|
4103700034:function(r){return{_:'inputInvoiceBusinessBotTransferStars',bot:r.object(),stars:r.long(),}},
|
|
1155
|
+
1674298252:function(r){return{_:'inputInvoiceStarGiftResale',slug:r.string(),toId:r.object(),}},
|
|
1147
1156
|
2932919257:function(r){return{_:'payments.exportedInvoice',url:r.string(),}},
|
|
1148
1157
|
3485063511:function(r){var flags=r.uint();return{_:'messages.transcribedAudio',pending:!!(flags&1),transcriptionId:r.long(),text:r.string(),trialRemainsNum:flags&2?r.int():void 0,trialRemainsUntilDate:flags&2?r.int():void 0,}},
|
|
1149
1158
|
1395946908:function(r){return{_:'help.premiumPromo',statusText:r.string(),statusEntities:r.vector(r.object),videoSections:r.vector(r.string),videos:r.vector(r.object),periodOptions:r.vector(r.object),users:r.vector(r.object),}},
|
|
@@ -1237,8 +1246,9 @@ var m={
|
|
|
1237
1246
|
3178549065:function(r){var flags=r.uint();return{_:'storyViewPublicRepost',blocked:!!(flags&1),blockedMyStoriesFrom:!!(flags&2),peerId:r.object(),story:r.object(),}},
|
|
1238
1247
|
1507299269:function(r){var flags=r.uint();return{_:'stories.storyViewsList',count:r.int(),viewsCount:r.int(),forwardsCount:r.int(),reactionsCount:r.int(),views:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),nextOffset:flags&1?r.string():void 0,}},
|
|
1239
1248
|
3734957341:function(r){return{_:'stories.storyViews',views:r.vector(r.object),users:r.vector(r.object),}},
|
|
1240
|
-
|
|
1249
|
+
2960144560:function(r){var flags=r.uint();return{_:'inputReplyToMessage',replyToMsgId:r.int(),topMsgId:flags&1?r.int():void 0,replyToPeerId:flags&2?r.object():void 0,quoteText:flags&4?r.string():void 0,quoteEntities:flags&8?r.vector(r.object):void 0,quoteOffset:flags&16?r.int():void 0,monoforumPeerId:flags&32?r.object():void 0,}},
|
|
1241
1250
|
1484862010:function(r){return{_:'inputReplyToStory',peer:r.object(),storyId:r.int(),}},
|
|
1251
|
+
1775660101:function(r){return{_:'inputReplyToMonoForum',monoforumPeerId:r.object(),}},
|
|
1242
1252
|
1070138683:function(r){return{_:'exportedStoryLink',link:r.string(),}},
|
|
1243
1253
|
1898850301:function(r){var flags=r.uint();return{_:'storiesStealthMode',activeUntilDate:flags&1?r.int():void 0,cooldownUntilDate:flags&2?r.int():void 0,}},
|
|
1244
1254
|
3486113794:function(r){var flags=r.uint();return{_:'mediaAreaCoordinates',x:r.double(),y:r.double(),w:r.double(),h:r.double(),rotation:r.double(),radius:flags&1?r.double():void 0,}},
|
|
@@ -1283,6 +1293,7 @@ var m={
|
|
|
1283
1293
|
3486322451:function(r){return{_:'storyReactionPublicRepost',peerId:r.object(),story:r.object(),}},
|
|
1284
1294
|
2858383516:function(r){var flags=r.uint();return{_:'stories.storyReactionsList',count:r.int(),reactions:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),nextOffset:flags&1?r.string():void 0,}},
|
|
1285
1295
|
3179793260:function(r){var flags=r.uint();return{_:'savedDialog',pinned:!!(flags&4),peer:r.object(),topMessage:r.int(),}},
|
|
1296
|
+
1681948327:function(r){var flags=r.uint();return{_:'monoForumDialog',unreadMark:!!(flags&8),nopaidMessagesException:!!(flags&16),peer:r.object(),topMessage:r.int(),readInboxMaxId:r.int(),readOutboxMaxId:r.int(),unreadCount:r.int(),unreadReactionsCount:r.int(),draft:flags&2?r.object():void 0,}},
|
|
1286
1297
|
4164608545:function(r){return{_:'messages.savedDialogs',dialogs:r.vector(r.object),messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1287
1298
|
1153080793:function(r){return{_:'messages.savedDialogsSlice',count:r.int(),dialogs:r.vector(r.object),messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1288
1299
|
3223285736:function(r){return{_:'messages.savedDialogsNotModified',count:r.int(),}},
|
|
@@ -1364,13 +1375,13 @@ var m={
|
|
|
1364
1375
|
1617438738:function(r){return{_:'starsTransactionPeerAds'}},
|
|
1365
1376
|
4184308397:function(r){return{_:'starsTransactionPeerAPI'}},
|
|
1366
1377
|
198776256:function(r){var flags=r.uint();return{_:'starsTopupOption',extended:!!(flags&2),stars:r.long(),storeProduct:flags&1?r.string():void 0,currency:r.string(),amount:r.long(),}},
|
|
1367
|
-
|
|
1378
|
+
325426864:function(r){var flags=r.uint();return{_:'starsTransaction',refund:!!(flags&8),pending:!!(flags&16),failed:!!(flags&64),gift:!!(flags&1024),reaction:!!(flags&2048),stargiftUpgrade:!!(flags&262144),businessTransfer:!!(flags&2097152),stargiftResale:!!(flags&4194304),id:r.string(),amount:r.object(),date:r.int(),peer:r.object(),title:flags&1?r.string():void 0,description:flags&2?r.string():void 0,photo:flags&4?r.object():void 0,transactionDate:flags&32?r.int():void 0,transactionUrl:flags&32?r.string():void 0,botPayload:flags&128?r.bytes():void 0,msgId:flags&256?r.int():void 0,extendedMedia:flags&512?r.vector(r.object):void 0,subscriptionPeriod:flags&4096?r.int():void 0,giveawayPostId:flags&8192?r.int():void 0,stargift:flags&16384?r.object():void 0,floodskipNumber:flags&32768?r.int():void 0,starrefCommissionPermille:flags&65536?r.int():void 0,starrefPeer:flags&131072?r.object():void 0,starrefAmount:flags&131072?r.object():void 0,paidMessages:flags&524288?r.int():void 0,premiumGiftMonths:flags&1048576?r.int():void 0,adsProceedsFromDate:flags&8388608?r.int():void 0,adsProceedsToDate:flags&8388608?r.int():void 0,}},
|
|
1368
1379
|
1822222573:function(r){var flags=r.uint();return{_:'payments.starsStatus',balance:r.object(),subscriptions:flags&2?r.vector(r.object):void 0,subscriptionsNextOffset:flags&4?r.string():void 0,subscriptionsMissingBalance:flags&16?r.long():void 0,history:flags&8?r.vector(r.object):void 0,nextOffset:flags&1?r.string():void 0,chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1369
1380
|
3900361664:function(r){return{_:'foundStory',peer:r.object(),story:r.object(),}},
|
|
1370
1381
|
3806230327:function(r){var flags=r.uint();return{_:'stories.foundStories',count:r.int(),stories:r.vector(r.object),nextOffset:flags&1?r.string():void 0,chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1371
1382
|
3729546643:function(r){var flags=r.uint();return{_:'geoPointAddress',countryIso2:r.string(),state:flags&1?r.string():void 0,city:flags&2?r.string():void 0,street:flags&4?r.string():void 0,}},
|
|
1372
1383
|
4273886353:function(r){var flags=r.uint();return{_:'starsRevenueStatus',withdrawalEnabled:!!(flags&1),currentBalance:r.object(),availableBalance:r.object(),overallRevenue:r.object(),nextWithdrawalAt:flags&2?r.int():void 0,}},
|
|
1373
|
-
|
|
1384
|
+
1814066038:function(r){var flags=r.uint();return{_:'payments.starsRevenueStats',topHoursGraph:flags&1?r.object():void 0,revenueGraph:r.object(),status:r.object(),usdRate:r.double(),}},
|
|
1374
1385
|
497778871:function(r){return{_:'payments.starsRevenueWithdrawalUrl',url:r.string(),}},
|
|
1375
1386
|
961445665:function(r){return{_:'payments.starsRevenueAdsAccountUrl',url:r.string(),}},
|
|
1376
1387
|
543876817:function(r){var flags=r.uint();return{_:'inputStarsTransaction',refund:!!(flags&1),id:r.string(),}},
|
|
@@ -1416,6 +1427,7 @@ var m={
|
|
|
1416
1427
|
2515765681:function(r){var flags=r.uint();return{_:'payments.savedStarGifts',count:r.int(),chatNotificationsEnabled:flags&2?r.boolean():void 0,gifts:r.vector(r.object),nextOffset:flags&1?r.string():void 0,chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1417
1428
|
1764202389:function(r){return{_:'inputSavedStarGiftUser',msgId:r.int(),}},
|
|
1418
1429
|
4043418239:function(r){return{_:'inputSavedStarGiftChat',peer:r.object(),savedId:r.long(),}},
|
|
1430
|
+
545636920:function(r){return{_:'inputSavedStarGiftSlug',slug:r.string(),}},
|
|
1419
1431
|
2225748636:function(r){return{_:'payments.starGiftWithdrawalUrl',url:r.string(),}},
|
|
1420
1432
|
543872158:function(r){return{_:'paidReactionPrivacyDefault'}},
|
|
1421
1433
|
520887001:function(r){return{_:'paidReactionPrivacyAnonymous'}},
|
|
@@ -1429,9 +1441,6 @@ var m={
|
|
|
1429
1441
|
3331786963:function(r){var flags=r.uint();return{_:'sponsoredPeer',randomId:r.bytes(),peer:r.object(),sponsorInfo:flags&1?r.string():void 0,additionalInfo:flags&2?r.string():void 0,}},
|
|
1430
1442
|
3929191601:function(r){return{_:'contacts.sponsoredPeersEmpty'}},
|
|
1431
1443
|
3942852740:function(r){return{_:'contacts.sponsoredPeers',peers:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1432
|
-
3306682238:function(r){return{_:'channelAdminLogEventActionToggleAutotranslation',newValue:r.boolean(),}},
|
|
1433
|
-
1674298252:function(r){return{_:'inputInvoiceStarGiftResale',slug:r.string(),toId:r.object(),}},
|
|
1434
|
-
545636920:function(r){return{_:'inputSavedStarGiftSlug',slug:r.string(),}},
|
|
1435
1444
|
1219145276:function(r){return{_:'starGiftAttributeIdModel',documentId:r.long(),}},
|
|
1436
1445
|
1242965043:function(r){return{_:'starGiftAttributeIdPattern',documentId:r.long(),}},
|
|
1437
1446
|
520210263:function(r){return{_:'starGiftAttributeIdBackdrop',backdropId:r.int(),}},
|
|
@@ -1439,6 +1448,16 @@ var m={
|
|
|
1439
1448
|
2491028191:function(r){var flags=r.uint();return{_:'payments.resaleStarGifts',count:r.int(),gifts:r.vector(r.object),nextOffset:flags&1?r.string():void 0,attributes:flags&2?r.vector(r.object):void 0,attributesHash:flags&2?r.long():void 0,chats:r.vector(r.object),counters:flags&4?r.vector(r.object):void 0,users:r.vector(r.object),}},
|
|
1440
1449
|
3280453710:function(r){return{_:'stories.canSendStoryCount',countRemains:r.int(),}},
|
|
1441
1450
|
3890753042:function(r){return{_:'pendingSuggestion',suggestion:r.string(),title:r.object(),description:r.object(),url:r.string(),}},
|
|
1451
|
+
3416892719:function(r){return{_:'todoItem',id:r.int(),title:r.object(),}},
|
|
1452
|
+
1236871718:function(r){var flags=r.uint();return{_:'todoList',othersCanAppend:!!(flags&1),othersCanComplete:!!(flags&2),title:r.object(),list:r.vector(r.object),}},
|
|
1453
|
+
1287725239:function(r){return{_:'todoCompletion',id:r.int(),completedBy:r.int53(),date:r.int(),}},
|
|
1454
|
+
4000978326:function(r){var flags=r.uint();return{_:'messageActionSuggestedPostApproval',rejected:!!(flags&1),balanceTooLow:!!(flags&2),rejectComment:flags&4?r.string():void 0,scheduleDate:flags&8?r.int():void 0,price:flags&16?r.object():void 0,}},
|
|
1455
|
+
2514341737:function(r){return{_:'messageActionSuggestedPostSuccess',price:r.object(),}},
|
|
1456
|
+
1777932024:function(r){var flags=r.uint();return{_:'messageActionSuggestedPostRefund',payerInitiated:!!(flags&1),}},
|
|
1457
|
+
2829305497:function(r){var flags=r.uint();return{_:'messageActionGiftTon',currency:r.string(),amount:r.long(),cryptoCurrency:r.string(),cryptoAmount:r.long(),transactionId:flags&1?r.string():void 0,}},
|
|
1458
|
+
485912992:function(r){return{_:'inputStickerSetTonGifts'}},
|
|
1459
|
+
1957618656:function(r){return{_:'starsTonAmount',amount:r.long(),}},
|
|
1460
|
+
244201445:function(r){var flags=r.uint();return{_:'suggestedPost',accepted:!!(flags&2),rejected:!!(flags&4),price:flags&8?r.object():void 0,scheduleDate:flags&1?r.int():void 0,}},
|
|
1442
1461
|
1958953753:function(r){var flags=r.uint();return{_:'premiumGiftOption',months:r.int(),currency:r.string(),amount:r.long(),botUrl:r.string(),storeProduct:flags&1?r.string():void 0,}},
|
|
1443
1462
|
4197492935:function(r){return{_:'emojiStatusUntil',documentId:r.long(),until:r.int(),}},
|
|
1444
1463
|
4003764846:function(r){var flags=r.uint();return{_:'userStarGift',nameHidden:!!(flags&1),unsaved:!!(flags&32),fromId:flags&2?r.int53():void 0,date:r.int(),gift:r.object(),message:flags&4?r.object():void 0,msgId:flags&8?r.int():void 0,convertStars:flags&16?r.long():void 0,}},
|