@mtcute/tl 199.0.0 → 201.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 +31 -13
- package/binary/writer.js +59 -29
- package/compat/index.d.ts +495 -0
- package/compat/reader.d.ts +1 -0
- package/compat/reader.js +18 -0
- package/index.d.ts +280 -157
- package/index.js +9 -5
- package/package.json +1 -1
package/binary/reader.js
CHANGED
|
@@ -73,7 +73,7 @@ var m={
|
|
|
73
73
|
3016663268:function(r){return{_:'storage.fileMp4'}},
|
|
74
74
|
276907596:function(r){return{_:'storage.fileWebp'}},
|
|
75
75
|
3552332666:function(r){return{_:'userEmpty',id:r.int53(),}},
|
|
76
|
-
|
|
76
|
+
34280482:function(r){var flags=r.uint(),flags2=r.uint();return{_:'user',self:!!(flags&1024),contact:!!(flags&2048),mutualContact:!!(flags&4096),deleted:!!(flags&8192),bot:!!(flags&16384),botChatHistory:!!(flags&32768),botNochats:!!(flags&65536),verified:!!(flags&131072),restricted:!!(flags&262144),min:!!(flags&1048576),botInlineGeo:!!(flags&2097152),support:!!(flags&8388608),scam:!!(flags&16777216),applyMinPhoto:!!(flags&33554432),fake:!!(flags&67108864),botAttachMenu:!!(flags&134217728),premium:!!(flags&268435456),attachMenuEnabled:!!(flags&536870912),botCanEdit:!!(flags2&2),closeFriend:!!(flags2&4),storiesHidden:!!(flags2&8),storiesUnavailable:!!(flags2&16),contactRequirePremium:!!(flags2&1024),botBusiness:!!(flags2&2048),botHasMainApp:!!(flags2&8192),id:r.int53(),accessHash:flags&1?r.long():void 0,firstName:flags&2?r.string():void 0,lastName:flags&4?r.string():void 0,username:flags&8?r.string():void 0,phone:flags&16?r.string():void 0,photo:flags&32?r.object():void 0,status:flags&64?r.object():void 0,botInfoVersion:flags&16384?r.int():void 0,restrictionReason:flags&262144?r.vector(r.object):void 0,botInlinePlaceholder:flags&524288?r.string():void 0,langCode:flags&4194304?r.string():void 0,emojiStatus:flags&1073741824?r.object():void 0,usernames:flags2&1?r.vector(r.object):void 0,storiesMaxId:flags2&32?r.int():void 0,color:flags2&256?r.object():void 0,profileColor:flags2&512?r.object():void 0,botActiveUsers:flags2&4096?r.int():void 0,botVerificationIcon:flags2&16384?r.long():void 0,sendPaidMessagesStars:flags2&32768?r.long():void 0,}},
|
|
77
77
|
1326562017:function(r){return{_:'userProfilePhotoEmpty'}},
|
|
78
78
|
2194798342:function(r){var flags=r.uint();return{_:'userProfilePhoto',hasVideo:!!(flags&1),personal:!!(flags&4),photoId:r.long(),strippedThumb:flags&2?r.bytes():void 0,dcId:r.int(),}},
|
|
79
79
|
164646985:function(r){return{_:'userStatusEmpty'}},
|
|
@@ -85,10 +85,10 @@ var m={
|
|
|
85
85
|
693512293:function(r){return{_:'chatEmpty',id:r.int53(),}},
|
|
86
86
|
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
87
|
1704108455:function(r){return{_:'chatForbidden',id:r.int53(),title:r.string(),}},
|
|
88
|
-
|
|
88
|
+
1954681982: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),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,}},
|
|
89
89
|
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
90
|
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
|
-
1389789291: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),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,}},
|
|
91
|
+
1389789291: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,}},
|
|
92
92
|
3224190983:function(r){return{_:'chatParticipant',userId:r.int53(),inviterId:r.int53(),date:r.int(),}},
|
|
93
93
|
3832270564:function(r){return{_:'chatParticipantCreator',userId:r.int53(),}},
|
|
94
94
|
2694004571:function(r){return{_:'chatParticipantAdmin',userId:r.int53(),inviterId:r.int53(),date:r.int(),}},
|
|
@@ -97,7 +97,7 @@ var m={
|
|
|
97
97
|
935395612:function(r){return{_:'chatPhotoEmpty'}},
|
|
98
98
|
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
99
|
2426849924:function(r){var flags=r.uint();return{_:'messageEmpty',id:r.int(),peerId:flags&1?r.object():void 0,}},
|
|
100
|
-
|
|
100
|
+
3938245965: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),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,}},
|
|
101
101
|
3553789248: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(),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
102
|
1038967584:function(r){return{_:'messageMediaEmpty'}},
|
|
103
103
|
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,}},
|
|
@@ -154,7 +154,7 @@ var m={
|
|
|
154
154
|
1474192222:function(r){return{_:'messageActionSuggestProfilePhoto',photo:r.object(),}},
|
|
155
155
|
827428507:function(r){return{_:'messageActionRequestedPeer',buttonId:r.int(),peers:r.vector(r.object),}},
|
|
156
156
|
1348510708:function(r){var flags=r.uint();return{_:'messageActionSetChatWallPaper',same:!!(flags&1),forBoth:!!(flags&2),wallpaper:r.object(),}},
|
|
157
|
-
1456486804:function(r){var flags=r.uint();return{_:'messageActionGiftCode',viaGiveaway:!!(flags&1),unclaimed:!!(flags&
|
|
157
|
+
1456486804:function(r){var flags=r.uint();return{_:'messageActionGiftCode',viaGiveaway:!!(flags&1),unclaimed:!!(flags&32),boostPeer:flags&2?r.object():void 0,months:r.int(),slug:r.string(),currency:flags&4?r.string():void 0,amount:flags&4?r.long():void 0,cryptoCurrency:flags&8?r.string():void 0,cryptoAmount:flags&8?r.long():void 0,message:flags&16?r.object():void 0,}},
|
|
158
158
|
2819576292:function(r){var flags=r.uint();return{_:'messageActionGiveawayLaunch',stars:flags&1?r.long():void 0,}},
|
|
159
159
|
2279797077:function(r){var flags=r.uint();return{_:'messageActionGiveawayResults',stars:!!(flags&1),winnersCount:r.int(),unclaimedCount:r.int(),}},
|
|
160
160
|
3422726765:function(r){return{_:'messageActionBoostApply',boosts:r.int(),}},
|
|
@@ -188,7 +188,7 @@ var m={
|
|
|
188
188
|
1548122514:function(r){return{_:'inputNotifyForumTopic',peer:r.object(),topMsgId:r.int(),}},
|
|
189
189
|
3402328802:function(r){var flags=r.uint();return{_:'inputPeerNotifySettings',showPreviews:flags&1?r.boolean():void 0,silent:flags&2?r.boolean():void 0,muteUntil:flags&4?r.int():void 0,sound:flags&8?r.object():void 0,storiesMuted:flags&64?r.boolean():void 0,storiesHideSender:flags&128?r.boolean():void 0,storiesSound:flags&256?r.object():void 0,}},
|
|
190
190
|
2573347852:function(r){var flags=r.uint();return{_:'peerNotifySettings',showPreviews:flags&1?r.boolean():void 0,silent:flags&2?r.boolean():void 0,muteUntil:flags&4?r.int():void 0,iosSound:flags&8?r.object():void 0,androidSound:flags&16?r.object():void 0,otherSound:flags&32?r.object():void 0,storiesMuted:flags&64?r.boolean():void 0,storiesHideSender:flags&128?r.boolean():void 0,storiesIosSound:flags&256?r.object():void 0,storiesAndroidSound:flags&512?r.object():void 0,storiesOtherSound:flags&1024?r.object():void 0,}},
|
|
191
|
-
|
|
191
|
+
4101456375:function(r){var flags=r.uint();return{_:'peerSettings',reportSpam:!!(flags&1),addContact:!!(flags&2),blockContact:!!(flags&4),shareContact:!!(flags&8),needContactsException:!!(flags&16),reportGeo:!!(flags&32),autoarchived:!!(flags&128),inviteMembers:!!(flags&256),requestChatBroadcast:!!(flags&1024),businessBotPaused:!!(flags&2048),businessBotCanReply:!!(flags&4096),geoDistance:flags&64?r.int():void 0,requestChatTitle:flags&512?r.string():void 0,requestChatDate:flags&512?r.int():void 0,businessBotId:flags&8192?r.int53():void 0,businessBotManageUrl:flags&8192?r.string():void 0,chargePaidMessageStars:flags&16384?r.long():void 0,registrationMonth:flags&32768?r.string():void 0,phoneCountry:flags&65536?r.string():void 0,nameChangeDate:flags&131072?r.int():void 0,photoChangeDate:flags&262144?r.int():void 0,}},
|
|
192
192
|
2755118061:function(r){var id=r.long(),flags=r.uint();return{_:'wallPaper',id:id,creator:!!(flags&1),default:!!(flags&2),pattern:!!(flags&8),dark:!!(flags&16),accessHash:r.long(),slug:r.string(),document:r.object(),settings:flags&4?r.object():void 0,}},
|
|
193
193
|
3766501654:function(r){var id=r.long(),flags=r.uint();return{_:'wallPaperNoFile',id:id,default:!!(flags&2),dark:!!(flags&16),settings:flags&4?r.object():void 0,}},
|
|
194
194
|
1490799288:function(r){return{_:'inputReportReasonSpam'}},
|
|
@@ -201,7 +201,7 @@ var m={
|
|
|
201
201
|
4124956391:function(r){return{_:'inputReportReasonFake'}},
|
|
202
202
|
177124030:function(r){return{_:'inputReportReasonIllegalDrugs'}},
|
|
203
203
|
2663876157:function(r){return{_:'inputReportReasonPersonalDetails'}},
|
|
204
|
-
|
|
204
|
+
2582085701:function(r){var flags=r.uint(),flags2=r.uint();return{_:'userFull',blocked:!!(flags&1),phoneCallsAvailable:!!(flags&16),phoneCallsPrivate:!!(flags&32),canPinMessage:!!(flags&128),hasScheduled:!!(flags&4096),videoCallsAvailable:!!(flags&8192),voiceMessagesForbidden:!!(flags&1048576),translationsDisabled:!!(flags&8388608),storiesPinnedAvailable:!!(flags&67108864),blockedMyStoriesFrom:!!(flags&134217728),wallpaperOverridden:!!(flags&268435456),contactRequirePremium:!!(flags&536870912),readDatesPrivate:!!(flags&1073741824),sponsoredEnabled:!!(flags2&128),canViewRevenue:!!(flags2&512),botCanManageEmojiStatus:!!(flags2&1024),displayGiftsButton:!!(flags2&65536),id:r.int53(),about:flags&2?r.string():void 0,settings:r.object(),personalPhoto:flags&2097152?r.object():void 0,profilePhoto:flags&4?r.object():void 0,fallbackPhoto:flags&4194304?r.object():void 0,notifySettings:r.object(),botInfo:flags&8?r.object():void 0,pinnedMsgId:flags&64?r.int():void 0,commonChatsCount:r.int(),folderId:flags&2048?r.int():void 0,ttlPeriod:flags&16384?r.int():void 0,themeEmoticon:flags&32768?r.string():void 0,privateForwardName:flags&65536?r.string():void 0,botGroupAdminRights:flags&131072?r.object():void 0,botBroadcastAdminRights:flags&262144?r.object():void 0,wallpaper:flags&16777216?r.object():void 0,stories:flags&33554432?r.object():void 0,businessWorkHours:flags2&1?r.object():void 0,businessLocation:flags2&2?r.object():void 0,businessGreetingMessage:flags2&4?r.object():void 0,businessAwayMessage:flags2&8?r.object():void 0,businessIntro:flags2&16?r.object():void 0,birthday:flags2&32?r.object():void 0,personalChannelId:flags2&64?r.int53():void 0,personalChannelMessage:flags2&64?r.int():void 0,stargiftsCount:flags2&256?r.int():void 0,starrefProgram:flags2&2048?r.object():void 0,botVerification:flags2&4096?r.object():void 0,sendPaidMessagesStars:flags2&16384?r.long():void 0,disallowedGifts:flags2&32768?r.object():void 0,}},
|
|
205
205
|
341499403:function(r){return{_:'contact',userId:r.int53(),mutual:r.boolean(),}},
|
|
206
206
|
3242081360:function(r){return{_:'importedContact',userId:r.int53(),clientId:r.long(),}},
|
|
207
207
|
383348795:function(r){return{_:'contactStatus',userId:r.int53(),status:r.object(),}},
|
|
@@ -461,6 +461,7 @@ var m={
|
|
|
461
461
|
941870144:function(r){return{_:'inputPrivacyKeyAbout'}},
|
|
462
462
|
3596227020:function(r){return{_:'inputPrivacyKeyBirthday'}},
|
|
463
463
|
3782419265:function(r){return{_:'inputPrivacyKeyStarGiftsAutoSave'}},
|
|
464
|
+
3183843252:function(r){return{_:'inputPrivacyKeyNoPaidMessages'}},
|
|
464
465
|
3157175088:function(r){return{_:'privacyKeyStatusTimestamp'}},
|
|
465
466
|
1343122938:function(r){return{_:'privacyKeyChatInvite'}},
|
|
466
467
|
1030105979:function(r){return{_:'privacyKeyPhoneCall'}},
|
|
@@ -473,6 +474,7 @@ var m={
|
|
|
473
474
|
2760292193:function(r){return{_:'privacyKeyAbout'}},
|
|
474
475
|
536913176:function(r){return{_:'privacyKeyBirthday'}},
|
|
475
476
|
749010424:function(r){return{_:'privacyKeyStarGiftsAutoSave'}},
|
|
477
|
+
399722706:function(r){return{_:'privacyKeyNoPaidMessages'}},
|
|
476
478
|
218751099:function(r){return{_:'inputPrivacyValueAllowContacts'}},
|
|
477
479
|
407582158:function(r){return{_:'inputPrivacyValueAllowAll'}},
|
|
478
480
|
320652927:function(r){return{_:'inputPrivacyValueAllowUsers',users:r.vector(r.object),}},
|
|
@@ -1028,7 +1030,7 @@ var m={
|
|
|
1028
1030
|
3612888199:function(r){return{_:'statsGroupTopAdmin',userId:r.int53(),deleted:r.int(),kicked:r.int(),banned:r.int(),}},
|
|
1029
1031
|
1398765469:function(r){return{_:'statsGroupTopInviter',userId:r.int53(),invitations:r.int(),}},
|
|
1030
1032
|
4018141462:function(r){return{_:'stats.megagroupStats',period:r.object(),members:r.object(),messages:r.object(),viewers:r.object(),posters:r.object(),growthGraph:r.object(),membersGraph:r.object(),newMembersBySourceGraph:r.object(),languagesGraph:r.object(),messagesGraph:r.object(),actionsGraph:r.object(),topHoursGraph:r.object(),weekdaysGraph:r.object(),topPosters:r.vector(r.object),topAdmins:r.vector(r.object),topInviters:r.vector(r.object),users:r.vector(r.object),}},
|
|
1031
|
-
|
|
1033
|
+
4265718607:function(r){var flags=r.uint();return{_:'globalPrivacySettings',archiveAndMuteNewNoncontactPeers:!!(flags&1),keepArchivedUnmuted:!!(flags&2),keepArchivedFolders:!!(flags&4),hideReadMarks:!!(flags&8),newNoncontactPeersRequirePremium:!!(flags&16),displayGiftsButton:!!(flags&128),noncontactPeersPaidStars:flags&32?r.long():void 0,disallowedGifts:flags&64?r.object():void 0,}},
|
|
1032
1034
|
1107543535:function(r){var flags=r.uint();return{_:'help.countryCode',countryCode:r.string(),prefixes:flags&1?r.vector(r.string):void 0,patterns:flags&2?r.vector(r.string):void 0,}},
|
|
1033
1035
|
3280440867:function(r){var flags=r.uint();return{_:'help.country',hidden:!!(flags&1),iso2:r.string(),defaultName:r.string(),name:flags&2?r.string():void 0,countryCodes:r.vector(r.object),}},
|
|
1034
1036
|
2479628082:function(r){return{_:'help.countriesListNotModified'}},
|
|
@@ -1132,6 +1134,7 @@ var m={
|
|
|
1132
1134
|
3898760850:function(r){var flags=r.uint();return{_:'inputInvoiceStarGift',hideName:!!(flags&1),includeUpgrade:!!(flags&4),peer:r.object(),giftId:r.long(),message:flags&2?r.object():void 0,}},
|
|
1133
1135
|
1300335965:function(r){var flags=r.uint();return{_:'inputInvoiceStarGiftUpgrade',keepOriginalDetails:!!(flags&1),stargift:r.object(),}},
|
|
1134
1136
|
1247763417:function(r){return{_:'inputInvoiceStarGiftTransfer',stargift:r.object(),toId:r.object(),}},
|
|
1137
|
+
3669668591:function(r){var flags=r.uint();return{_:'inputInvoicePremiumGiftStars',userId:r.object(),months:r.int(),message:flags&1?r.object():void 0,}},
|
|
1135
1138
|
2932919257:function(r){return{_:'payments.exportedInvoice',url:r.string(),}},
|
|
1136
1139
|
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,}},
|
|
1137
1140
|
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),}},
|
|
@@ -1142,7 +1145,6 @@ var m={
|
|
|
1142
1145
|
3722252118:function(r){return{_:'inputStorePaymentStarsTopup',stars:r.long(),currency:r.string(),amount:r.long(),}},
|
|
1143
1146
|
494149367:function(r){return{_:'inputStorePaymentStarsGift',userId:r.object(),stars:r.long(),currency:r.string(),amount:r.long(),}},
|
|
1144
1147
|
1964968186:function(r){var flags=r.uint();return{_:'inputStorePaymentStarsGiveaway',onlyNewSubscribers:!!(flags&1),winnersAreVisible:!!(flags&8),stars:r.long(),boostPeer:r.object(),additionalPeers:flags&2?r.vector(r.object):void 0,countriesIso2:flags&4?r.vector(r.string):void 0,prizeDescription:flags&16?r.string():void 0,randomId:r.long(),untilDate:r.int(),currency:r.string(),amount:r.long(),users:r.int(),}},
|
|
1145
|
-
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,}},
|
|
1146
1148
|
2298016283:function(r){return{_:'paymentFormMethod',url:r.string(),title:r.string(),}},
|
|
1147
1149
|
769727150:function(r){return{_:'emojiStatusEmpty'}},
|
|
1148
1150
|
3892250250:function(r){var flags=r.uint();return{_:'emojiStatus',documentId:r.long(),until:flags&1?r.int():void 0,}},
|
|
@@ -1301,11 +1303,11 @@ var m={
|
|
|
1301
1303
|
18418929:function(r){return{_:'inputQuickReplyShortcutId',shortcutId:r.int(),}},
|
|
1302
1304
|
3331155605:function(r){return{_:'messages.quickReplies',quickReplies:r.vector(r.object),messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1303
1305
|
1603398491:function(r){return{_:'messages.quickRepliesNotModified'}},
|
|
1304
|
-
|
|
1306
|
+
3445908332:function(r){var flags=r.uint();return{_:'connectedBot',botId:r.int53(),recipients:r.object(),rights:r.object(),}},
|
|
1305
1307
|
400029819:function(r){return{_:'account.connectedBots',connectedBots:r.vector(r.object),users:r.vector(r.object),}},
|
|
1306
1308
|
718878489:function(r){var flags=r.uint();return{_:'messages.dialogFilters',tagsEnabled:!!(flags&1),filters:r.vector(r.object),}},
|
|
1307
1309
|
1821253126:function(r){var flags=r.uint();return{_:'birthday',day:r.int(),month:r.int(),year:flags&1?r.int():void 0,}},
|
|
1308
|
-
|
|
1310
|
+
2402595573:function(r){var flags=r.uint();return{_:'botBusinessConnection',disabled:!!(flags&2),connectionId:r.string(),userId:r.int53(),dcId:r.int(),date:r.int(),rights:flags&4?r.object():void 0,}},
|
|
1309
1311
|
163867085:function(r){var flags=r.uint();return{_:'inputBusinessIntro',title:r.string(),description:r.string(),sticker:flags&1?r.object():void 0,}},
|
|
1310
1312
|
1510606445:function(r){var flags=r.uint();return{_:'businessIntro',title:r.string(),description:r.string(),sticker:flags&1?r.object():void 0,}},
|
|
1311
1313
|
4211040925:function(r){return{_:'messages.myStickers',count:r.int(),sets:r.vector(r.object),}},
|
|
@@ -1352,7 +1354,7 @@ var m={
|
|
|
1352
1354
|
1617438738:function(r){return{_:'starsTransactionPeerAds'}},
|
|
1353
1355
|
4184308397:function(r){return{_:'starsTransactionPeerAPI'}},
|
|
1354
1356
|
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(),}},
|
|
1355
|
-
|
|
1357
|
+
2745162058: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),id:r.string(),stars: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,businessTransfer:!!(flags&2097152),}},
|
|
1356
1358
|
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),}},
|
|
1357
1359
|
3900361664:function(r){return{_:'foundStory',peer:r.object(),story:r.object(),}},
|
|
1358
1360
|
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),}},
|
|
@@ -1400,7 +1402,7 @@ var m={
|
|
|
1400
1402
|
828000628:function(r){return{_:'users.usersSlice',count:r.int(),users:r.vector(r.object),}},
|
|
1401
1403
|
3399677451:function(r){return{_:'payments.uniqueStarGift',gift:r.object(),users:r.vector(r.object),}},
|
|
1402
1404
|
3040774945:function(r){return{_:'messages.webPagePreview',media:r.object(),users:r.vector(r.object),}},
|
|
1403
|
-
1616305061:function(r){var flags=r.uint();return{_:'savedStarGift',nameHidden:!!(flags&1),unsaved:!!(flags&32),refunded:!!(flags&512),canUpgrade:!!(flags&1024),fromId:flags&2?r.object():void 0,date:r.int(),gift:r.object(),message:flags&4?r.object():void 0,msgId:flags&8?r.int():void 0,savedId:flags&2048?r.long():void 0,convertStars:flags&16?r.long():void 0,upgradeStars:flags&64?r.long():void 0,canExportAt:flags&128?r.int():void 0,transferStars:flags&256?r.long():void 0,}},
|
|
1405
|
+
1616305061:function(r){var flags=r.uint();return{_:'savedStarGift',nameHidden:!!(flags&1),unsaved:!!(flags&32),refunded:!!(flags&512),canUpgrade:!!(flags&1024),pinnedToTop:!!(flags&4096),fromId:flags&2?r.object():void 0,date:r.int(),gift:r.object(),message:flags&4?r.object():void 0,msgId:flags&8?r.int():void 0,savedId:flags&2048?r.long():void 0,convertStars:flags&16?r.long():void 0,upgradeStars:flags&64?r.long():void 0,canExportAt:flags&128?r.int():void 0,transferStars:flags&256?r.long():void 0,}},
|
|
1404
1406
|
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),}},
|
|
1405
1407
|
1764202389:function(r){return{_:'inputSavedStarGiftUser',msgId:r.int(),}},
|
|
1406
1408
|
4043418239:function(r){return{_:'inputSavedStarGiftChat',peer:r.object(),savedId:r.long(),}},
|
|
@@ -1408,9 +1410,25 @@ var m={
|
|
|
1408
1410
|
543872158:function(r){return{_:'paidReactionPrivacyDefault'}},
|
|
1409
1411
|
520887001:function(r){return{_:'paidReactionPrivacyAnonymous'}},
|
|
1410
1412
|
3698130160:function(r){return{_:'paidReactionPrivacyPeer',peer:r.object(),}},
|
|
1413
|
+
504403720:function(r){return{_:'account.paidMessagesRevenue',starsAmount:r.long(),}},
|
|
1414
|
+
84580409:function(r){return{_:'requirementToContactEmpty'}},
|
|
1415
|
+
3850495209:function(r){return{_:'requirementToContactPremium'}},
|
|
1416
|
+
3036053139:function(r){return{_:'requirementToContactPaidMessages',starsAmount:r.long(),}},
|
|
1417
|
+
2887720909:function(r){return{_:'messageActionPaidMessagesRefunded',count:r.int(),stars:r.long(),}},
|
|
1418
|
+
3168211993:function(r){return{_:'messageActionPaidMessagesPrice',stars:r.long(),}},
|
|
1419
|
+
3620665728:function(r){return{_:'auth.sentCodePaymentRequired',storeProduct:r.string(),phoneCodeHash:r.string(),}},
|
|
1420
|
+
1347068303:function(r){return{_:'updateSentPhoneCode',sentCode:r.object(),}},
|
|
1421
|
+
2612159341:function(r){var flags=r.uint();return{_:'inputStorePaymentAuthCode',restore:!!(flags&1),phoneNumber:r.string(),phoneCodeHash:r.string(),currency:r.string(),amount:r.long(),}},
|
|
1422
|
+
2690796791:function(r){var flags=r.uint();return{_:'businessBotRights',reply:!!(flags&1),readMessages:!!(flags&2),deleteSentMessages:!!(flags&4),deleteReceivedMessages:!!(flags&8),editName:!!(flags&16),editBio:!!(flags&32),editProfilePhoto:!!(flags&64),editUsername:!!(flags&128),viewGifts:!!(flags&256),sellGifts:!!(flags&512),changeGiftSettings:!!(flags&1024),transferAndUpgradeGifts:!!(flags&2048),transferStars:!!(flags&4096),manageStories:!!(flags&8192),}},
|
|
1423
|
+
1911715524:function(r){var flags=r.uint();return{_:'disallowedGiftsSettings',disallowUnlimitedStargifts:!!(flags&1),disallowLimitedStargifts:!!(flags&2),disallowUniqueStargifts:!!(flags&4),disallowPremiumGifts:!!(flags&8),}},
|
|
1424
|
+
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,}},
|
|
1425
|
+
3929191601:function(r){return{_:'contacts.sponsoredPeersEmpty'}},
|
|
1426
|
+
3942852740:function(r){return{_:'contacts.sponsoredPeers',peers:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1427
|
+
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,}},
|
|
1411
1428
|
4197492935:function(r){return{_:'emojiStatusUntil',documentId:r.long(),until:r.int(),}},
|
|
1412
1429
|
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,}},
|
|
1413
1430
|
1801827607:function(r){var flags=r.uint();return{_:'payments.userStarGifts',count:r.int(),gifts:r.vector(r.object),nextOffset:flags&1?r.string():void 0,users:r.vector(r.object),}},
|
|
1431
|
+
4103700034:function(r){return{_:'inputInvoiceBusinessBotTransferStars',bot:r.object(),stars:r.long(),}},
|
|
1414
1432
|
_results:{
|
|
1415
1433
|
'contacts.getContactIDs':function(r){return r.vector(r.int)},
|
|
1416
1434
|
'messages.receivedQueue':function(r){return r.vector(r.long)},
|