@mtcute/tl 202.0.0 → 203.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 +18 -9
- package/binary/writer.js +27 -10
- package/compat/index.d.ts +84 -2
- package/compat/reader.js +4 -0
- package/index.d.ts +140 -20
- package/index.js +7 -2
- package/package.json +1 -1
package/binary/reader.js
CHANGED
|
@@ -85,7 +85,7 @@ 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
|
-
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,}},
|
|
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),autotranslation:!!(flags2&32768),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
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,}},
|
|
@@ -163,7 +163,7 @@ var m={
|
|
|
163
163
|
1171632161:function(r){var flags=r.uint();return{_:'messageActionGiftStars',currency:r.string(),amount:r.long(),stars:r.long(),cryptoCurrency:flags&1?r.string():void 0,cryptoAmount:flags&1?r.long():void 0,transactionId:flags&2?r.string():void 0,}},
|
|
164
164
|
2953594786:function(r){var flags=r.uint();return{_:'messageActionPrizeStars',unclaimed:!!(flags&1),stars:r.long(),transactionId:r.string(),boostPeer:r.object(),giveawayMsgId:r.int(),}},
|
|
165
165
|
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
|
-
|
|
166
|
+
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
167
|
2887720909:function(r){return{_:'messageActionPaidMessagesRefunded',count:r.int(),stars:r.long(),}},
|
|
168
168
|
3168211993:function(r){return{_:'messageActionPaidMessagesPrice',stars:r.long(),}},
|
|
169
169
|
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,}},
|
|
@@ -1028,7 +1028,7 @@ var m={
|
|
|
1028
1028
|
2393138358:function(r){var flags=r.uint();return{_:'statsGraph',json:r.object(),zoomToken:flags&1?r.string():void 0,}},
|
|
1029
1029
|
963421692:function(r){return{_:'stats.broadcastStats',period:r.object(),followers:r.object(),viewsPerPost:r.object(),sharesPerPost:r.object(),reactionsPerPost:r.object(),viewsPerStory:r.object(),sharesPerStory:r.object(),reactionsPerStory:r.object(),enabledNotifications:r.object(),growthGraph:r.object(),followersGraph:r.object(),muteGraph:r.object(),topHoursGraph:r.object(),interactionsGraph:r.object(),ivInteractionsGraph:r.object(),viewsBySourceGraph:r.object(),newFollowersBySourceGraph:r.object(),languagesGraph:r.object(),reactionsByEmotionGraph:r.object(),storyInteractionsGraph:r.object(),storyReactionsByEmotionGraph:r.object(),recentPostsInteractions:r.vector(r.object),}},
|
|
1030
1030
|
2566302837:function(r){return{_:'help.promoDataEmpty',expires:r.int(),}},
|
|
1031
|
-
|
|
1031
|
+
145021050:function(r){var flags=r.uint();return{_:'help.promoData',proxy:!!(flags&1),expires:r.int(),peer:flags&8?r.object():void 0,psaType:flags&2?r.string():void 0,psaMessage:flags&4?r.string():void 0,pendingSuggestions:r.vector(r.string),dismissedSuggestions:r.vector(r.string),customPendingSuggestion:flags&16?r.object():void 0,chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1032
1032
|
3727929492:function(r){var flags=r.uint();return{_:'videoSize',type:r.string(),w:r.int(),h:r.int(),size:r.int(),videoStartTs:flags&1?r.double():void 0,}},
|
|
1033
1033
|
4166795580:function(r){return{_:'videoSizeEmojiMarkup',emojiId:r.long(),backgroundColors:r.vector(r.int),}},
|
|
1034
1034
|
228623102:function(r){return{_:'videoSizeStickerMarkup',stickerset:r.object(),stickerId:r.long(),backgroundColors:r.vector(r.int),}},
|
|
@@ -1364,7 +1364,7 @@ var m={
|
|
|
1364
1364
|
1617438738:function(r){return{_:'starsTransactionPeerAds'}},
|
|
1365
1365
|
4184308397:function(r){return{_:'starsTransactionPeerAPI'}},
|
|
1366
1366
|
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
|
-
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),businessTransfer:!!(flags&2097152),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,}},
|
|
1367
|
+
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),businessTransfer:!!(flags&2097152),stargiftResale:!!(flags&4194304),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,}},
|
|
1368
1368
|
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
1369
|
3900361664:function(r){return{_:'foundStory',peer:r.object(),story:r.object(),}},
|
|
1370
1370
|
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),}},
|
|
@@ -1383,8 +1383,8 @@ var m={
|
|
|
1383
1383
|
1269016922:function(r){var flags=r.uint();return{_:'messageReactor',top:!!(flags&1),my:!!(flags&2),anonymous:!!(flags&4),peerId:flags&8?r.object():void 0,count:r.int(),}},
|
|
1384
1384
|
2496562474:function(r){var flags=r.uint();return{_:'starsGiveawayOption',extended:!!(flags&1),default:!!(flags&2),stars:r.long(),yearlyBoosts:r.int(),storeProduct:flags&4?r.string():void 0,currency:r.string(),amount:r.long(),winners:r.vector(r.object),}},
|
|
1385
1385
|
1411605001:function(r){var flags=r.uint();return{_:'starsGiveawayWinnersOption',default:!!(flags&1),users:r.int(),perUserStars:r.long(),}},
|
|
1386
|
-
|
|
1387
|
-
|
|
1386
|
+
3324693032:function(r){var flags=r.uint();return{_:'starGift',limited:!!(flags&1),soldOut:!!(flags&2),birthday:!!(flags&4),id:r.long(),sticker:r.object(),stars:r.long(),availabilityRemains:flags&1?r.int():void 0,availabilityTotal:flags&1?r.int():void 0,availabilityResale:flags&16?r.long():void 0,convertStars:r.long(),firstSaleDate:flags&2?r.int():void 0,lastSaleDate:flags&2?r.int():void 0,upgradeStars:flags&8?r.long():void 0,resellMinStars:flags&16?r.long():void 0,title:flags&32?r.string():void 0,}},
|
|
1387
|
+
1678891913:function(r){var flags=r.uint();return{_:'starGiftUnique',id:r.long(),title:r.string(),slug:r.string(),num:r.int(),ownerId:flags&1?r.object():void 0,ownerName:flags&2?r.string():void 0,ownerAddress:flags&4?r.string():void 0,attributes:r.vector(r.object),availabilityIssued:r.int(),availabilityTotal:r.int(),giftAddress:flags&8?r.string():void 0,resellStars:flags&16?r.long():void 0,}},
|
|
1388
1388
|
2743640936:function(r){return{_:'payments.starGiftsNotModified'}},
|
|
1389
1389
|
2417396202:function(r){return{_:'payments.starGifts',hash:r.int(),gifts:r.vector(r.object),}},
|
|
1390
1390
|
2030298073:function(r){return{_:'messageReportOption',text:r.string(),option:r.bytes(),}},
|
|
@@ -1405,14 +1405,14 @@ var m={
|
|
|
1405
1405
|
4181513308:function(r){return{_:'botVerification',botId:r.int53(),icon:r.long(),description:r.string(),}},
|
|
1406
1406
|
970559507:function(r){return{_:'starGiftAttributeModel',name:r.string(),document:r.object(),rarityPermille:r.int(),}},
|
|
1407
1407
|
330104601:function(r){return{_:'starGiftAttributePattern',name:r.string(),document:r.object(),rarityPermille:r.int(),}},
|
|
1408
|
-
|
|
1408
|
+
3644687772:function(r){return{_:'starGiftAttributeBackdrop',name:r.string(),backdropId:r.int(),centerColor:r.int(),edgeColor:r.int(),patternColor:r.int(),textColor:r.int(),rarityPermille:r.int(),}},
|
|
1409
1409
|
3770675820:function(r){var flags=r.uint();return{_:'starGiftAttributeOriginalDetails',senderId:flags&1?r.object():void 0,recipientId:r.object(),date:r.int(),message:flags&2?r.object():void 0,}},
|
|
1410
1410
|
377215243:function(r){return{_:'payments.starGiftUpgradePreview',sampleAttributes:r.vector(r.object),}},
|
|
1411
1411
|
1658259128:function(r){return{_:'users.users',users:r.vector(r.object),}},
|
|
1412
1412
|
828000628:function(r){return{_:'users.usersSlice',count:r.int(),users:r.vector(r.object),}},
|
|
1413
1413
|
3399677451:function(r){return{_:'payments.uniqueStarGift',gift:r.object(),users:r.vector(r.object),}},
|
|
1414
1414
|
3040774945:function(r){return{_:'messages.webPagePreview',media:r.object(),users:r.vector(r.object),}},
|
|
1415
|
-
|
|
1415
|
+
3755607193: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,canTransferAt:flags&8192?r.int():void 0,canResellAt:flags&16384?r.int():void 0,}},
|
|
1416
1416
|
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
1417
|
1764202389:function(r){return{_:'inputSavedStarGiftUser',msgId:r.int(),}},
|
|
1418
1418
|
4043418239:function(r){return{_:'inputSavedStarGiftChat',peer:r.object(),savedId:r.long(),}},
|
|
@@ -1429,7 +1429,16 @@ var m={
|
|
|
1429
1429
|
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
1430
|
3929191601:function(r){return{_:'contacts.sponsoredPeersEmpty'}},
|
|
1431
1431
|
3942852740:function(r){return{_:'contacts.sponsoredPeers',peers:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1432
|
-
|
|
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
|
+
1219145276:function(r){return{_:'starGiftAttributeIdModel',documentId:r.long(),}},
|
|
1436
|
+
1242965043:function(r){return{_:'starGiftAttributeIdPattern',documentId:r.long(),}},
|
|
1437
|
+
520210263:function(r){return{_:'starGiftAttributeIdBackdrop',backdropId:r.int(),}},
|
|
1438
|
+
783398488:function(r){return{_:'starGiftAttributeCounter',attribute:r.object(),count:r.int(),}},
|
|
1439
|
+
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
|
+
3280453710:function(r){return{_:'stories.canSendStoryCount',countRemains:r.int(),}},
|
|
1441
|
+
3890753042:function(r){return{_:'pendingSuggestion',suggestion:r.string(),title:r.object(),description:r.object(),url:r.string(),}},
|
|
1433
1442
|
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,}},
|
|
1434
1443
|
4197492935:function(r){return{_:'emojiStatusUntil',documentId:r.long(),until:r.int(),}},
|
|
1435
1444
|
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,}},
|
package/binary/writer.js
CHANGED
|
@@ -86,7 +86,7 @@ var m={
|
|
|
86
86
|
'chatEmpty':function(w,v){w.uint(693512293);w.int53(h(v,'id'));},
|
|
87
87
|
'chat':function(w,v){w.uint(1103884886);var flags=0;if(v.creator===true)flags|=1;if(v.left===true)flags|=4;if(v.deactivated===true)flags|=32;var _migratedTo=v.migratedTo!==undefined;if(_migratedTo)flags|=64;var _adminRights=v.adminRights!==undefined;if(_adminRights)flags|=16384;var _defaultBannedRights=v.defaultBannedRights!==undefined;if(_defaultBannedRights)flags|=262144;if(v.callActive===true)flags|=8388608;if(v.callNotEmpty===true)flags|=16777216;if(v.noforwards===true)flags|=33554432;w.uint(flags);w.int53(h(v,'id'));w.string(h(v,'title'));w.object(h(v,'photo'));w.int(h(v,'participantsCount'));w.int(h(v,'date'));w.int(h(v,'version'));if(_migratedTo)w.object(v.migratedTo);if(_adminRights)w.object(v.adminRights);if(_defaultBannedRights)w.object(v.defaultBannedRights);},
|
|
88
88
|
'chatForbidden':function(w,v){w.uint(1704108455);w.int53(h(v,'id'));w.string(h(v,'title'));},
|
|
89
|
-
'channel':function(w,v){w.uint(1954681982);var flags=0;if(v.creator===true)flags|=1;if(v.left===true)flags|=4;if(v.broadcast===true)flags|=32;var _username=v.username!==undefined;if(_username)flags|=64;if(v.verified===true)flags|=128;if(v.megagroup===true)flags|=256;var _restrictionReason=v.restrictionReason&&v.restrictionReason.length;var _flags_9=v.restricted===true||_restrictionReason;if(_flags_9)flags|=512;if(v.signatures===true)flags|=2048;if(v.min===true)flags|=4096;var _accessHash=v.accessHash!==undefined;if(_accessHash)flags|=8192;var _adminRights=v.adminRights!==undefined;if(_adminRights)flags|=16384;var _bannedRights=v.bannedRights!==undefined;if(_bannedRights)flags|=32768;var _participantsCount=v.participantsCount!==undefined;if(_participantsCount)flags|=131072;var _defaultBannedRights=v.defaultBannedRights!==undefined;if(_defaultBannedRights)flags|=262144;if(v.scam===true)flags|=524288;if(v.hasLink===true)flags|=1048576;if(v.hasGeo===true)flags|=2097152;if(v.slowmodeEnabled===true)flags|=4194304;if(v.callActive===true)flags|=8388608;if(v.callNotEmpty===true)flags|=16777216;if(v.fake===true)flags|=33554432;if(v.gigagroup===true)flags|=67108864;if(v.noforwards===true)flags|=134217728;if(v.joinToSend===true)flags|=268435456;if(v.joinRequest===true)flags|=536870912;if(v.forum===true)flags|=1073741824;w.uint(flags);var flags2=0;var _usernames=v.usernames&&v.usernames.length;if(_usernames)flags2|=1;if(v.storiesHidden===true)flags2|=2;if(v.storiesHiddenMin===true)flags2|=4;if(v.storiesUnavailable===true)flags2|=8;var _storiesMaxId=v.storiesMaxId!==undefined;if(_storiesMaxId)flags2|=16;var _color=v.color!==undefined;if(_color)flags2|=128;var _profileColor=v.profileColor!==undefined;if(_profileColor)flags2|=256;var _emojiStatus=v.emojiStatus!==undefined;if(_emojiStatus)flags2|=512;var _level=v.level!==undefined;if(_level)flags2|=1024;var _subscriptionUntilDate=v.subscriptionUntilDate!==undefined;if(_subscriptionUntilDate)flags2|=2048;if(v.signatureProfiles===true)flags2|=4096;var _botVerificationIcon=v.botVerificationIcon!==undefined;if(_botVerificationIcon)flags2|=8192;var _sendPaidMessagesStars=v.sendPaidMessagesStars!==undefined;if(_sendPaidMessagesStars)flags2|=16384;w.uint(flags2);w.int53(h(v,'id'));if(_accessHash)w.long(v.accessHash);w.string(h(v,'title'));if(_username)w.string(v.username);w.object(h(v,'photo'));w.int(h(v,'date'));if(_flags_9)w.vector(w.object,v.restrictionReason);if(_adminRights)w.object(v.adminRights);if(_bannedRights)w.object(v.bannedRights);if(_defaultBannedRights)w.object(v.defaultBannedRights);if(_participantsCount)w.int(v.participantsCount);if(_usernames)w.vector(w.object,v.usernames);if(_storiesMaxId)w.int(v.storiesMaxId);if(_color)w.object(v.color);if(_profileColor)w.object(v.profileColor);if(_emojiStatus)w.object(v.emojiStatus);if(_level)w.int(v.level);if(_subscriptionUntilDate)w.int(v.subscriptionUntilDate);if(_botVerificationIcon)w.long(v.botVerificationIcon);if(_sendPaidMessagesStars)w.long(v.sendPaidMessagesStars);},
|
|
89
|
+
'channel':function(w,v){w.uint(1954681982);var flags=0;if(v.creator===true)flags|=1;if(v.left===true)flags|=4;if(v.broadcast===true)flags|=32;var _username=v.username!==undefined;if(_username)flags|=64;if(v.verified===true)flags|=128;if(v.megagroup===true)flags|=256;var _restrictionReason=v.restrictionReason&&v.restrictionReason.length;var _flags_9=v.restricted===true||_restrictionReason;if(_flags_9)flags|=512;if(v.signatures===true)flags|=2048;if(v.min===true)flags|=4096;var _accessHash=v.accessHash!==undefined;if(_accessHash)flags|=8192;var _adminRights=v.adminRights!==undefined;if(_adminRights)flags|=16384;var _bannedRights=v.bannedRights!==undefined;if(_bannedRights)flags|=32768;var _participantsCount=v.participantsCount!==undefined;if(_participantsCount)flags|=131072;var _defaultBannedRights=v.defaultBannedRights!==undefined;if(_defaultBannedRights)flags|=262144;if(v.scam===true)flags|=524288;if(v.hasLink===true)flags|=1048576;if(v.hasGeo===true)flags|=2097152;if(v.slowmodeEnabled===true)flags|=4194304;if(v.callActive===true)flags|=8388608;if(v.callNotEmpty===true)flags|=16777216;if(v.fake===true)flags|=33554432;if(v.gigagroup===true)flags|=67108864;if(v.noforwards===true)flags|=134217728;if(v.joinToSend===true)flags|=268435456;if(v.joinRequest===true)flags|=536870912;if(v.forum===true)flags|=1073741824;w.uint(flags);var flags2=0;var _usernames=v.usernames&&v.usernames.length;if(_usernames)flags2|=1;if(v.storiesHidden===true)flags2|=2;if(v.storiesHiddenMin===true)flags2|=4;if(v.storiesUnavailable===true)flags2|=8;var _storiesMaxId=v.storiesMaxId!==undefined;if(_storiesMaxId)flags2|=16;var _color=v.color!==undefined;if(_color)flags2|=128;var _profileColor=v.profileColor!==undefined;if(_profileColor)flags2|=256;var _emojiStatus=v.emojiStatus!==undefined;if(_emojiStatus)flags2|=512;var _level=v.level!==undefined;if(_level)flags2|=1024;var _subscriptionUntilDate=v.subscriptionUntilDate!==undefined;if(_subscriptionUntilDate)flags2|=2048;if(v.signatureProfiles===true)flags2|=4096;var _botVerificationIcon=v.botVerificationIcon!==undefined;if(_botVerificationIcon)flags2|=8192;var _sendPaidMessagesStars=v.sendPaidMessagesStars!==undefined;if(_sendPaidMessagesStars)flags2|=16384;if(v.autotranslation===true)flags2|=32768;w.uint(flags2);w.int53(h(v,'id'));if(_accessHash)w.long(v.accessHash);w.string(h(v,'title'));if(_username)w.string(v.username);w.object(h(v,'photo'));w.int(h(v,'date'));if(_flags_9)w.vector(w.object,v.restrictionReason);if(_adminRights)w.object(v.adminRights);if(_bannedRights)w.object(v.bannedRights);if(_defaultBannedRights)w.object(v.defaultBannedRights);if(_participantsCount)w.int(v.participantsCount);if(_usernames)w.vector(w.object,v.usernames);if(_storiesMaxId)w.int(v.storiesMaxId);if(_color)w.object(v.color);if(_profileColor)w.object(v.profileColor);if(_emojiStatus)w.object(v.emojiStatus);if(_level)w.int(v.level);if(_subscriptionUntilDate)w.int(v.subscriptionUntilDate);if(_botVerificationIcon)w.long(v.botVerificationIcon);if(_sendPaidMessagesStars)w.long(v.sendPaidMessagesStars);},
|
|
90
90
|
'channelForbidden':function(w,v){w.uint(399807445);var flags=0;if(v.broadcast===true)flags|=32;if(v.megagroup===true)flags|=256;var _untilDate=v.untilDate!==undefined;if(_untilDate)flags|=65536;w.uint(flags);w.int53(h(v,'id'));w.long(h(v,'accessHash'));w.string(h(v,'title'));if(_untilDate)w.int(v.untilDate);},
|
|
91
91
|
'chatFull':function(w,v){w.uint(640893467);var flags=0;var _chatPhoto=v.chatPhoto!==undefined;if(_chatPhoto)flags|=4;var _botInfo=v.botInfo&&v.botInfo.length;if(_botInfo)flags|=8;var _pinnedMsgId=v.pinnedMsgId!==undefined;if(_pinnedMsgId)flags|=64;if(v.canSetUsername===true)flags|=128;if(v.hasScheduled===true)flags|=256;var _folderId=v.folderId!==undefined;if(_folderId)flags|=2048;var _call=v.call!==undefined;if(_call)flags|=4096;var _exportedInvite=v.exportedInvite!==undefined;if(_exportedInvite)flags|=8192;var _ttlPeriod=v.ttlPeriod!==undefined;if(_ttlPeriod)flags|=16384;var _groupcallDefaultJoinAs=v.groupcallDefaultJoinAs!==undefined;if(_groupcallDefaultJoinAs)flags|=32768;var _themeEmoticon=v.themeEmoticon!==undefined;if(_themeEmoticon)flags|=65536;var _requestsPending=v.requestsPending!==undefined;var _recentRequesters=v.recentRequesters&&v.recentRequesters.length;var _flags_17=_requestsPending||_recentRequesters;if(_flags_17)flags|=131072;var _availableReactions=v.availableReactions!==undefined;if(_availableReactions)flags|=262144;if(v.translationsDisabled===true)flags|=524288;var _reactionsLimit=v.reactionsLimit!==undefined;if(_reactionsLimit)flags|=1048576;w.uint(flags);w.int53(h(v,'id'));w.string(h(v,'about'));w.object(h(v,'participants'));if(_chatPhoto)w.object(v.chatPhoto);w.object(h(v,'notifySettings'));if(_exportedInvite)w.object(v.exportedInvite);if(_botInfo)w.vector(w.object,v.botInfo);if(_pinnedMsgId)w.int(v.pinnedMsgId);if(_folderId)w.int(v.folderId);if(_call)w.object(v.call);if(_ttlPeriod)w.int(v.ttlPeriod);if(_groupcallDefaultJoinAs)w.object(v.groupcallDefaultJoinAs);if(_themeEmoticon)w.string(v.themeEmoticon);if(_flags_17)w.int(v.requestsPending);if(_flags_17)w.vector(w.long,v.recentRequesters);if(_availableReactions)w.object(v.availableReactions);if(_reactionsLimit)w.int(v.reactionsLimit);},
|
|
92
92
|
'channelFull':function(w,v){w.uint(1389789291);var flags=0;var _participantsCount=v.participantsCount!==undefined;if(_participantsCount)flags|=1;var _adminsCount=v.adminsCount!==undefined;if(_adminsCount)flags|=2;var _kickedCount=v.kickedCount!==undefined;var _bannedCount=v.bannedCount!==undefined;var _flags_2=_kickedCount||_bannedCount;if(_flags_2)flags|=4;if(v.canViewParticipants===true)flags|=8;var _migratedFromChatId=v.migratedFromChatId!==undefined;var _migratedFromMaxId=v.migratedFromMaxId!==undefined;var _flags_4=_migratedFromChatId||_migratedFromMaxId;if(_flags_4)flags|=16;var _pinnedMsgId=v.pinnedMsgId!==undefined;if(_pinnedMsgId)flags|=32;if(v.canSetUsername===true)flags|=64;if(v.canSetStickers===true)flags|=128;var _stickerset=v.stickerset!==undefined;if(_stickerset)flags|=256;var _availableMinId=v.availableMinId!==undefined;if(_availableMinId)flags|=512;if(v.hiddenPrehistory===true)flags|=1024;var _folderId=v.folderId!==undefined;if(_folderId)flags|=2048;var _statsDc=v.statsDc!==undefined;if(_statsDc)flags|=4096;var _onlineCount=v.onlineCount!==undefined;if(_onlineCount)flags|=8192;var _linkedChatId=v.linkedChatId!==undefined;if(_linkedChatId)flags|=16384;var _location=v.location!==undefined;if(_location)flags|=32768;if(v.canSetLocation===true)flags|=65536;var _slowmodeSeconds=v.slowmodeSeconds!==undefined;if(_slowmodeSeconds)flags|=131072;var _slowmodeNextSendDate=v.slowmodeNextSendDate!==undefined;if(_slowmodeNextSendDate)flags|=262144;if(v.hasScheduled===true)flags|=524288;if(v.canViewStats===true)flags|=1048576;var _call=v.call!==undefined;if(_call)flags|=2097152;if(v.blocked===true)flags|=4194304;var _exportedInvite=v.exportedInvite!==undefined;if(_exportedInvite)flags|=8388608;var _ttlPeriod=v.ttlPeriod!==undefined;if(_ttlPeriod)flags|=16777216;var _pendingSuggestions=v.pendingSuggestions&&v.pendingSuggestions.length;if(_pendingSuggestions)flags|=33554432;var _groupcallDefaultJoinAs=v.groupcallDefaultJoinAs!==undefined;if(_groupcallDefaultJoinAs)flags|=67108864;var _themeEmoticon=v.themeEmoticon!==undefined;if(_themeEmoticon)flags|=134217728;var _requestsPending=v.requestsPending!==undefined;var _recentRequesters=v.recentRequesters&&v.recentRequesters.length;var _flags_28=_requestsPending||_recentRequesters;if(_flags_28)flags|=268435456;var _defaultSendAs=v.defaultSendAs!==undefined;if(_defaultSendAs)flags|=536870912;var _availableReactions=v.availableReactions!==undefined;if(_availableReactions)flags|=1073741824;w.uint(flags);var flags2=0;if(v.canDeleteChannel===true)flags2|=1;if(v.antispam===true)flags2|=2;if(v.participantsHidden===true)flags2|=4;if(v.translationsDisabled===true)flags2|=8;var _stories=v.stories!==undefined;if(_stories)flags2|=16;if(v.storiesPinnedAvailable===true)flags2|=32;if(v.viewForumAsMessages===true)flags2|=64;var _wallpaper=v.wallpaper!==undefined;if(_wallpaper)flags2|=128;var _boostsApplied=v.boostsApplied!==undefined;if(_boostsApplied)flags2|=256;var _boostsUnrestrict=v.boostsUnrestrict!==undefined;if(_boostsUnrestrict)flags2|=512;var _emojiset=v.emojiset!==undefined;if(_emojiset)flags2|=1024;if(v.restrictedSponsored===true)flags2|=2048;if(v.canViewRevenue===true)flags2|=4096;var _reactionsLimit=v.reactionsLimit!==undefined;if(_reactionsLimit)flags2|=8192;if(v.paidMediaAllowed===true)flags2|=16384;if(v.canViewStarsRevenue===true)flags2|=32768;if(v.paidReactionsAvailable===true)flags2|=65536;var _botVerification=v.botVerification!==undefined;if(_botVerification)flags2|=131072;var _stargiftsCount=v.stargiftsCount!==undefined;if(_stargiftsCount)flags2|=262144;if(v.stargiftsAvailable===true)flags2|=524288;if(v.paidMessagesAvailable===true)flags2|=1048576;w.uint(flags2);w.int53(h(v,'id'));w.string(h(v,'about'));if(_participantsCount)w.int(v.participantsCount);if(_adminsCount)w.int(v.adminsCount);if(_flags_2)w.int(v.kickedCount);if(_flags_2)w.int(v.bannedCount);if(_onlineCount)w.int(v.onlineCount);w.int(h(v,'readInboxMaxId'));w.int(h(v,'readOutboxMaxId'));w.int(h(v,'unreadCount'));w.object(h(v,'chatPhoto'));w.object(h(v,'notifySettings'));if(_exportedInvite)w.object(v.exportedInvite);w.vector(w.object,h(v,'botInfo'));if(_flags_4)w.long(v.migratedFromChatId);if(_flags_4)w.int(v.migratedFromMaxId);if(_pinnedMsgId)w.int(v.pinnedMsgId);if(_stickerset)w.object(v.stickerset);if(_availableMinId)w.int(v.availableMinId);if(_folderId)w.int(v.folderId);if(_linkedChatId)w.int53(v.linkedChatId);if(_location)w.object(v.location);if(_slowmodeSeconds)w.int(v.slowmodeSeconds);if(_slowmodeNextSendDate)w.int(v.slowmodeNextSendDate);if(_statsDc)w.int(v.statsDc);w.int(h(v,'pts'));if(_call)w.object(v.call);if(_ttlPeriod)w.int(v.ttlPeriod);if(_pendingSuggestions)w.vector(w.string,v.pendingSuggestions);if(_groupcallDefaultJoinAs)w.object(v.groupcallDefaultJoinAs);if(_themeEmoticon)w.string(v.themeEmoticon);if(_flags_28)w.int(v.requestsPending);if(_flags_28)w.vector(w.int53,v.recentRequesters);if(_defaultSendAs)w.object(v.defaultSendAs);if(_availableReactions)w.object(v.availableReactions);if(_reactionsLimit)w.int(v.reactionsLimit);if(_stories)w.object(v.stories);if(_wallpaper)w.object(v.wallpaper);if(_boostsApplied)w.int(v.boostsApplied);if(_boostsUnrestrict)w.int(v.boostsUnrestrict);if(_emojiset)w.object(v.emojiset);if(_botVerification)w.object(v.botVerification);if(_stargiftsCount)w.int(v.stargiftsCount);},
|
|
@@ -164,7 +164,7 @@ var m={
|
|
|
164
164
|
'messageActionGiftStars':function(w,v){w.uint(1171632161);var flags=0;var _cryptoCurrency=v.cryptoCurrency!==undefined;var _cryptoAmount=v.cryptoAmount!==undefined;var _flags_0=_cryptoCurrency||_cryptoAmount;if(_flags_0)flags|=1;var _transactionId=v.transactionId!==undefined;if(_transactionId)flags|=2;w.uint(flags);w.string(h(v,'currency'));w.long(h(v,'amount'));w.long(h(v,'stars'));if(_flags_0)w.string(v.cryptoCurrency);if(_flags_0)w.long(v.cryptoAmount);if(_transactionId)w.string(v.transactionId);},
|
|
165
165
|
'messageActionPrizeStars':function(w,v){w.uint(2953594786);var flags=0;if(v.unclaimed===true)flags|=1;w.uint(flags);w.long(h(v,'stars'));w.string(h(v,'transactionId'));w.object(h(v,'boostPeer'));w.int(h(v,'giveawayMsgId'));},
|
|
166
166
|
'messageActionStarGift':function(w,v){w.uint(1192749220);var flags=0;if(v.nameHidden===true)flags|=1;var _message=v.message!==undefined;if(_message)flags|=2;if(v.saved===true)flags|=4;if(v.converted===true)flags|=8;var _convertStars=v.convertStars!==undefined;if(_convertStars)flags|=16;var _upgradeMsgId=v.upgradeMsgId!==undefined;var _flags_5=v.upgraded===true||_upgradeMsgId;if(_flags_5)flags|=32;var _upgradeStars=v.upgradeStars!==undefined;if(_upgradeStars)flags|=256;if(v.refunded===true)flags|=512;if(v.canUpgrade===true)flags|=1024;var _fromId=v.fromId!==undefined;if(_fromId)flags|=2048;var _peer=v.peer!==undefined;var _savedId=v.savedId!==undefined;var _flags_12=_peer||_savedId;if(_flags_12)flags|=4096;w.uint(flags);w.object(h(v,'gift'));if(_message)w.object(v.message);if(_convertStars)w.long(v.convertStars);if(_flags_5)w.int(v.upgradeMsgId);if(_upgradeStars)w.long(v.upgradeStars);if(_fromId)w.object(v.fromId);if(_flags_12)w.object(v.peer);if(_flags_12)w.long(v.savedId);},
|
|
167
|
-
'messageActionStarGiftUnique':function(w,v){w.uint(
|
|
167
|
+
'messageActionStarGiftUnique':function(w,v){w.uint(775611918);var flags=0;if(v.upgrade===true)flags|=1;if(v.transferred===true)flags|=2;if(v.saved===true)flags|=4;var _canExportAt=v.canExportAt!==undefined;if(_canExportAt)flags|=8;var _transferStars=v.transferStars!==undefined;if(_transferStars)flags|=16;if(v.refunded===true)flags|=32;var _fromId=v.fromId!==undefined;if(_fromId)flags|=64;var _peer=v.peer!==undefined;var _savedId=v.savedId!==undefined;var _flags_7=_peer||_savedId;if(_flags_7)flags|=128;var _resaleStars=v.resaleStars!==undefined;if(_resaleStars)flags|=256;var _canTransferAt=v.canTransferAt!==undefined;if(_canTransferAt)flags|=512;var _canResellAt=v.canResellAt!==undefined;if(_canResellAt)flags|=1024;w.uint(flags);w.object(h(v,'gift'));if(_canExportAt)w.int(v.canExportAt);if(_transferStars)w.long(v.transferStars);if(_fromId)w.object(v.fromId);if(_flags_7)w.object(v.peer);if(_flags_7)w.long(v.savedId);if(_resaleStars)w.long(v.resaleStars);if(_canTransferAt)w.int(v.canTransferAt);if(_canResellAt)w.int(v.canResellAt);},
|
|
168
168
|
'messageActionPaidMessagesRefunded':function(w,v){w.uint(2887720909);w.int(h(v,'count'));w.long(h(v,'stars'));},
|
|
169
169
|
'messageActionPaidMessagesPrice':function(w,v){w.uint(3168211993);w.long(h(v,'stars'));},
|
|
170
170
|
'messageActionConferenceCall':function(w,v){w.uint(805187450);var flags=0;if(v.missed===true)flags|=1;if(v.active===true)flags|=2;var _duration=v.duration!==undefined;if(_duration)flags|=4;var _otherParticipants=v.otherParticipants&&v.otherParticipants.length;if(_otherParticipants)flags|=8;if(v.video===true)flags|=16;w.uint(flags);w.long(h(v,'callId'));if(_duration)w.int(v.duration);if(_otherParticipants)w.vector(w.object,v.otherParticipants);},
|
|
@@ -1029,7 +1029,7 @@ var m={
|
|
|
1029
1029
|
'statsGraph':function(w,v){w.uint(2393138358);var flags=0;var _zoomToken=v.zoomToken!==undefined;if(_zoomToken)flags|=1;w.uint(flags);w.object(h(v,'json'));if(_zoomToken)w.string(v.zoomToken);},
|
|
1030
1030
|
'stats.broadcastStats':function(w,v){w.uint(963421692);w.object(h(v,'period'));w.object(h(v,'followers'));w.object(h(v,'viewsPerPost'));w.object(h(v,'sharesPerPost'));w.object(h(v,'reactionsPerPost'));w.object(h(v,'viewsPerStory'));w.object(h(v,'sharesPerStory'));w.object(h(v,'reactionsPerStory'));w.object(h(v,'enabledNotifications'));w.object(h(v,'growthGraph'));w.object(h(v,'followersGraph'));w.object(h(v,'muteGraph'));w.object(h(v,'topHoursGraph'));w.object(h(v,'interactionsGraph'));w.object(h(v,'ivInteractionsGraph'));w.object(h(v,'viewsBySourceGraph'));w.object(h(v,'newFollowersBySourceGraph'));w.object(h(v,'languagesGraph'));w.object(h(v,'reactionsByEmotionGraph'));w.object(h(v,'storyInteractionsGraph'));w.object(h(v,'storyReactionsByEmotionGraph'));w.vector(w.object,h(v,'recentPostsInteractions'));},
|
|
1031
1031
|
'help.promoDataEmpty':function(w,v){w.uint(2566302837);w.int(h(v,'expires'));},
|
|
1032
|
-
'help.promoData':function(w,v){w.uint(
|
|
1032
|
+
'help.promoData':function(w,v){w.uint(145021050);var flags=0;if(v.proxy===true)flags|=1;var _psaType=v.psaType!==undefined;if(_psaType)flags|=2;var _psaMessage=v.psaMessage!==undefined;if(_psaMessage)flags|=4;var _peer=v.peer!==undefined;if(_peer)flags|=8;var _customPendingSuggestion=v.customPendingSuggestion!==undefined;if(_customPendingSuggestion)flags|=16;w.uint(flags);w.int(h(v,'expires'));if(_peer)w.object(v.peer);if(_psaType)w.string(v.psaType);if(_psaMessage)w.string(v.psaMessage);w.vector(w.string,h(v,'pendingSuggestions'));w.vector(w.string,h(v,'dismissedSuggestions'));if(_customPendingSuggestion)w.object(v.customPendingSuggestion);w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1033
1033
|
'videoSize':function(w,v){w.uint(3727929492);var flags=0;var _videoStartTs=v.videoStartTs!==undefined;if(_videoStartTs)flags|=1;w.uint(flags);w.string(h(v,'type'));w.int(h(v,'w'));w.int(h(v,'h'));w.int(h(v,'size'));if(_videoStartTs)w.double(v.videoStartTs);},
|
|
1034
1034
|
'videoSizeEmojiMarkup':function(w,v){w.uint(4166795580);w.long(h(v,'emojiId'));w.vector(w.int,h(v,'backgroundColors'));},
|
|
1035
1035
|
'videoSizeStickerMarkup':function(w,v){w.uint(228623102);w.object(h(v,'stickerset'));w.long(h(v,'stickerId'));w.vector(w.int,h(v,'backgroundColors'));},
|
|
@@ -1365,7 +1365,7 @@ var m={
|
|
|
1365
1365
|
'starsTransactionPeerAds':function(w){w.uint(1617438738);},
|
|
1366
1366
|
'starsTransactionPeerAPI':function(w){w.uint(4184308397);},
|
|
1367
1367
|
'starsTopupOption':function(w,v){w.uint(198776256);var flags=0;var _storeProduct=v.storeProduct!==undefined;if(_storeProduct)flags|=1;if(v.extended===true)flags|=2;w.uint(flags);w.long(h(v,'stars'));if(_storeProduct)w.string(v.storeProduct);w.string(h(v,'currency'));w.long(h(v,'amount'));},
|
|
1368
|
-
'starsTransaction':function(w,v){w.uint(2745162058);var flags=0;var _title=v.title!==undefined;if(_title)flags|=1;var _description=v.description!==undefined;if(_description)flags|=2;var _photo=v.photo!==undefined;if(_photo)flags|=4;if(v.refund===true)flags|=8;if(v.pending===true)flags|=16;var _transactionDate=v.transactionDate!==undefined;var _transactionUrl=v.transactionUrl!==undefined;var _flags_5=_transactionDate||_transactionUrl;if(_flags_5)flags|=32;if(v.failed===true)flags|=64;var _botPayload=v.botPayload!==undefined;if(_botPayload)flags|=128;var _msgId=v.msgId!==undefined;if(_msgId)flags|=256;var _extendedMedia=v.extendedMedia&&v.extendedMedia.length;if(_extendedMedia)flags|=512;if(v.gift===true)flags|=1024;if(v.reaction===true)flags|=2048;var _subscriptionPeriod=v.subscriptionPeriod!==undefined;if(_subscriptionPeriod)flags|=4096;var _giveawayPostId=v.giveawayPostId!==undefined;if(_giveawayPostId)flags|=8192;var _stargift=v.stargift!==undefined;if(_stargift)flags|=16384;var _floodskipNumber=v.floodskipNumber!==undefined;if(_floodskipNumber)flags|=32768;var _starrefCommissionPermille=v.starrefCommissionPermille!==undefined;if(_starrefCommissionPermille)flags|=65536;var _starrefPeer=v.starrefPeer!==undefined;var _starrefAmount=v.starrefAmount!==undefined;var _flags_17=_starrefPeer||_starrefAmount;if(_flags_17)flags|=131072;if(v.stargiftUpgrade===true)flags|=262144;var _paidMessages=v.paidMessages!==undefined;if(_paidMessages)flags|=524288;var _premiumGiftMonths=v.premiumGiftMonths!==undefined;if(_premiumGiftMonths)flags|=1048576;if(v.businessTransfer===true)flags|=2097152;w.uint(flags);w.string(h(v,'id'));w.object(h(v,'stars'));w.int(h(v,'date'));w.object(h(v,'peer'));if(_title)w.string(v.title);if(_description)w.string(v.description);if(_photo)w.object(v.photo);if(_flags_5)w.int(v.transactionDate);if(_flags_5)w.string(v.transactionUrl);if(_botPayload)w.bytes(v.botPayload);if(_msgId)w.int(v.msgId);if(_extendedMedia)w.vector(w.object,v.extendedMedia);if(_subscriptionPeriod)w.int(v.subscriptionPeriod);if(_giveawayPostId)w.int(v.giveawayPostId);if(_stargift)w.object(v.stargift);if(_floodskipNumber)w.int(v.floodskipNumber);if(_starrefCommissionPermille)w.int(v.starrefCommissionPermille);if(_flags_17)w.object(v.starrefPeer);if(_flags_17)w.object(v.starrefAmount);if(_paidMessages)w.int(v.paidMessages);if(_premiumGiftMonths)w.int(v.premiumGiftMonths);},
|
|
1368
|
+
'starsTransaction':function(w,v){w.uint(2745162058);var flags=0;var _title=v.title!==undefined;if(_title)flags|=1;var _description=v.description!==undefined;if(_description)flags|=2;var _photo=v.photo!==undefined;if(_photo)flags|=4;if(v.refund===true)flags|=8;if(v.pending===true)flags|=16;var _transactionDate=v.transactionDate!==undefined;var _transactionUrl=v.transactionUrl!==undefined;var _flags_5=_transactionDate||_transactionUrl;if(_flags_5)flags|=32;if(v.failed===true)flags|=64;var _botPayload=v.botPayload!==undefined;if(_botPayload)flags|=128;var _msgId=v.msgId!==undefined;if(_msgId)flags|=256;var _extendedMedia=v.extendedMedia&&v.extendedMedia.length;if(_extendedMedia)flags|=512;if(v.gift===true)flags|=1024;if(v.reaction===true)flags|=2048;var _subscriptionPeriod=v.subscriptionPeriod!==undefined;if(_subscriptionPeriod)flags|=4096;var _giveawayPostId=v.giveawayPostId!==undefined;if(_giveawayPostId)flags|=8192;var _stargift=v.stargift!==undefined;if(_stargift)flags|=16384;var _floodskipNumber=v.floodskipNumber!==undefined;if(_floodskipNumber)flags|=32768;var _starrefCommissionPermille=v.starrefCommissionPermille!==undefined;if(_starrefCommissionPermille)flags|=65536;var _starrefPeer=v.starrefPeer!==undefined;var _starrefAmount=v.starrefAmount!==undefined;var _flags_17=_starrefPeer||_starrefAmount;if(_flags_17)flags|=131072;if(v.stargiftUpgrade===true)flags|=262144;var _paidMessages=v.paidMessages!==undefined;if(_paidMessages)flags|=524288;var _premiumGiftMonths=v.premiumGiftMonths!==undefined;if(_premiumGiftMonths)flags|=1048576;if(v.businessTransfer===true)flags|=2097152;if(v.stargiftResale===true)flags|=4194304;w.uint(flags);w.string(h(v,'id'));w.object(h(v,'stars'));w.int(h(v,'date'));w.object(h(v,'peer'));if(_title)w.string(v.title);if(_description)w.string(v.description);if(_photo)w.object(v.photo);if(_flags_5)w.int(v.transactionDate);if(_flags_5)w.string(v.transactionUrl);if(_botPayload)w.bytes(v.botPayload);if(_msgId)w.int(v.msgId);if(_extendedMedia)w.vector(w.object,v.extendedMedia);if(_subscriptionPeriod)w.int(v.subscriptionPeriod);if(_giveawayPostId)w.int(v.giveawayPostId);if(_stargift)w.object(v.stargift);if(_floodskipNumber)w.int(v.floodskipNumber);if(_starrefCommissionPermille)w.int(v.starrefCommissionPermille);if(_flags_17)w.object(v.starrefPeer);if(_flags_17)w.object(v.starrefAmount);if(_paidMessages)w.int(v.paidMessages);if(_premiumGiftMonths)w.int(v.premiumGiftMonths);},
|
|
1369
1369
|
'payments.starsStatus':function(w,v){w.uint(1822222573);var flags=0;var _nextOffset=v.nextOffset!==undefined;if(_nextOffset)flags|=1;var _subscriptions=v.subscriptions&&v.subscriptions.length;if(_subscriptions)flags|=2;var _subscriptionsNextOffset=v.subscriptionsNextOffset!==undefined;if(_subscriptionsNextOffset)flags|=4;var _history=v.history&&v.history.length;if(_history)flags|=8;var _subscriptionsMissingBalance=v.subscriptionsMissingBalance!==undefined;if(_subscriptionsMissingBalance)flags|=16;w.uint(flags);w.object(h(v,'balance'));if(_subscriptions)w.vector(w.object,v.subscriptions);if(_subscriptionsNextOffset)w.string(v.subscriptionsNextOffset);if(_subscriptionsMissingBalance)w.long(v.subscriptionsMissingBalance);if(_history)w.vector(w.object,v.history);if(_nextOffset)w.string(v.nextOffset);w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1370
1370
|
'foundStory':function(w,v){w.uint(3900361664);w.object(h(v,'peer'));w.object(h(v,'story'));},
|
|
1371
1371
|
'stories.foundStories':function(w,v){w.uint(3806230327);var flags=0;var _nextOffset=v.nextOffset!==undefined;if(_nextOffset)flags|=1;w.uint(flags);w.int(h(v,'count'));w.vector(w.object,h(v,'stories'));if(_nextOffset)w.string(v.nextOffset);w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
@@ -1384,8 +1384,8 @@ var m={
|
|
|
1384
1384
|
'messageReactor':function(w,v){w.uint(1269016922);var flags=0;if(v.top===true)flags|=1;if(v.my===true)flags|=2;if(v.anonymous===true)flags|=4;var _peerId=v.peerId!==undefined;if(_peerId)flags|=8;w.uint(flags);if(_peerId)w.object(v.peerId);w.int(h(v,'count'));},
|
|
1385
1385
|
'starsGiveawayOption':function(w,v){w.uint(2496562474);var flags=0;if(v.extended===true)flags|=1;if(v.default===true)flags|=2;var _storeProduct=v.storeProduct!==undefined;if(_storeProduct)flags|=4;w.uint(flags);w.long(h(v,'stars'));w.int(h(v,'yearlyBoosts'));if(_storeProduct)w.string(v.storeProduct);w.string(h(v,'currency'));w.long(h(v,'amount'));w.vector(w.object,h(v,'winners'));},
|
|
1386
1386
|
'starsGiveawayWinnersOption':function(w,v){w.uint(1411605001);var flags=0;if(v.default===true)flags|=1;w.uint(flags);w.int(h(v,'users'));w.long(h(v,'perUserStars'));},
|
|
1387
|
-
'starGift':function(w,v){w.uint(
|
|
1388
|
-
'starGiftUnique':function(w,v){w.uint(
|
|
1387
|
+
'starGift':function(w,v){w.uint(3324693032);var flags=0;var _availabilityRemains=v.availabilityRemains!==undefined;var _availabilityTotal=v.availabilityTotal!==undefined;var _flags_0=v.limited===true||_availabilityRemains||_availabilityTotal;if(_flags_0)flags|=1;var _firstSaleDate=v.firstSaleDate!==undefined;var _lastSaleDate=v.lastSaleDate!==undefined;var _flags_1=v.soldOut===true||_firstSaleDate||_lastSaleDate;if(_flags_1)flags|=2;if(v.birthday===true)flags|=4;var _upgradeStars=v.upgradeStars!==undefined;if(_upgradeStars)flags|=8;var _availabilityResale=v.availabilityResale!==undefined;var _resellMinStars=v.resellMinStars!==undefined;var _flags_4=_availabilityResale||_resellMinStars;if(_flags_4)flags|=16;var _title=v.title!==undefined;if(_title)flags|=32;w.uint(flags);w.long(h(v,'id'));w.object(h(v,'sticker'));w.long(h(v,'stars'));if(_flags_0)w.int(v.availabilityRemains);if(_flags_0)w.int(v.availabilityTotal);if(_flags_4)w.long(v.availabilityResale);w.long(h(v,'convertStars'));if(_flags_1)w.int(v.firstSaleDate);if(_flags_1)w.int(v.lastSaleDate);if(_upgradeStars)w.long(v.upgradeStars);if(_flags_4)w.long(v.resellMinStars);if(_title)w.string(v.title);},
|
|
1388
|
+
'starGiftUnique':function(w,v){w.uint(1678891913);var flags=0;var _ownerId=v.ownerId!==undefined;if(_ownerId)flags|=1;var _ownerName=v.ownerName!==undefined;if(_ownerName)flags|=2;var _ownerAddress=v.ownerAddress!==undefined;if(_ownerAddress)flags|=4;var _giftAddress=v.giftAddress!==undefined;if(_giftAddress)flags|=8;var _resellStars=v.resellStars!==undefined;if(_resellStars)flags|=16;w.uint(flags);w.long(h(v,'id'));w.string(h(v,'title'));w.string(h(v,'slug'));w.int(h(v,'num'));if(_ownerId)w.object(v.ownerId);if(_ownerName)w.string(v.ownerName);if(_ownerAddress)w.string(v.ownerAddress);w.vector(w.object,h(v,'attributes'));w.int(h(v,'availabilityIssued'));w.int(h(v,'availabilityTotal'));if(_giftAddress)w.string(v.giftAddress);if(_resellStars)w.long(v.resellStars);},
|
|
1389
1389
|
'payments.starGiftsNotModified':function(w){w.uint(2743640936);},
|
|
1390
1390
|
'payments.starGifts':function(w,v){w.uint(2417396202);w.int(h(v,'hash'));w.vector(w.object,h(v,'gifts'));},
|
|
1391
1391
|
'messageReportOption':function(w,v){w.uint(2030298073);w.string(h(v,'text'));w.bytes(h(v,'option'));},
|
|
@@ -1406,14 +1406,14 @@ var m={
|
|
|
1406
1406
|
'botVerification':function(w,v){w.uint(4181513308);w.int53(h(v,'botId'));w.long(h(v,'icon'));w.string(h(v,'description'));},
|
|
1407
1407
|
'starGiftAttributeModel':function(w,v){w.uint(970559507);w.string(h(v,'name'));w.object(h(v,'document'));w.int(h(v,'rarityPermille'));},
|
|
1408
1408
|
'starGiftAttributePattern':function(w,v){w.uint(330104601);w.string(h(v,'name'));w.object(h(v,'document'));w.int(h(v,'rarityPermille'));},
|
|
1409
|
-
'starGiftAttributeBackdrop':function(w,v){w.uint(
|
|
1409
|
+
'starGiftAttributeBackdrop':function(w,v){w.uint(3644687772);w.string(h(v,'name'));w.int(h(v,'backdropId'));w.int(h(v,'centerColor'));w.int(h(v,'edgeColor'));w.int(h(v,'patternColor'));w.int(h(v,'textColor'));w.int(h(v,'rarityPermille'));},
|
|
1410
1410
|
'starGiftAttributeOriginalDetails':function(w,v){w.uint(3770675820);var flags=0;var _senderId=v.senderId!==undefined;if(_senderId)flags|=1;var _message=v.message!==undefined;if(_message)flags|=2;w.uint(flags);if(_senderId)w.object(v.senderId);w.object(h(v,'recipientId'));w.int(h(v,'date'));if(_message)w.object(v.message);},
|
|
1411
1411
|
'payments.starGiftUpgradePreview':function(w,v){w.uint(377215243);w.vector(w.object,h(v,'sampleAttributes'));},
|
|
1412
1412
|
'users.users':function(w,v){w.uint(1658259128);w.vector(w.object,h(v,'users'));},
|
|
1413
1413
|
'users.usersSlice':function(w,v){w.uint(828000628);w.int(h(v,'count'));w.vector(w.object,h(v,'users'));},
|
|
1414
1414
|
'payments.uniqueStarGift':function(w,v){w.uint(3399677451);w.object(h(v,'gift'));w.vector(w.object,h(v,'users'));},
|
|
1415
1415
|
'messages.webPagePreview':function(w,v){w.uint(3040774945);w.object(h(v,'media'));w.vector(w.object,h(v,'users'));},
|
|
1416
|
-
'savedStarGift':function(w,v){w.uint(
|
|
1416
|
+
'savedStarGift':function(w,v){w.uint(3755607193);var flags=0;if(v.nameHidden===true)flags|=1;var _fromId=v.fromId!==undefined;if(_fromId)flags|=2;var _message=v.message!==undefined;if(_message)flags|=4;var _msgId=v.msgId!==undefined;if(_msgId)flags|=8;var _convertStars=v.convertStars!==undefined;if(_convertStars)flags|=16;if(v.unsaved===true)flags|=32;var _upgradeStars=v.upgradeStars!==undefined;if(_upgradeStars)flags|=64;var _canExportAt=v.canExportAt!==undefined;if(_canExportAt)flags|=128;var _transferStars=v.transferStars!==undefined;if(_transferStars)flags|=256;if(v.refunded===true)flags|=512;if(v.canUpgrade===true)flags|=1024;var _savedId=v.savedId!==undefined;if(_savedId)flags|=2048;if(v.pinnedToTop===true)flags|=4096;var _canTransferAt=v.canTransferAt!==undefined;if(_canTransferAt)flags|=8192;var _canResellAt=v.canResellAt!==undefined;if(_canResellAt)flags|=16384;w.uint(flags);if(_fromId)w.object(v.fromId);w.int(h(v,'date'));w.object(h(v,'gift'));if(_message)w.object(v.message);if(_msgId)w.int(v.msgId);if(_savedId)w.long(v.savedId);if(_convertStars)w.long(v.convertStars);if(_upgradeStars)w.long(v.upgradeStars);if(_canExportAt)w.int(v.canExportAt);if(_transferStars)w.long(v.transferStars);if(_canTransferAt)w.int(v.canTransferAt);if(_canResellAt)w.int(v.canResellAt);},
|
|
1417
1417
|
'payments.savedStarGifts':function(w,v){w.uint(2515765681);var flags=0;var _nextOffset=v.nextOffset!==undefined;if(_nextOffset)flags|=1;var _chatNotificationsEnabled=v.chatNotificationsEnabled!==undefined;if(_chatNotificationsEnabled)flags|=2;w.uint(flags);w.int(h(v,'count'));if(_chatNotificationsEnabled)w.boolean(v.chatNotificationsEnabled);w.vector(w.object,h(v,'gifts'));if(_nextOffset)w.string(v.nextOffset);w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1418
1418
|
'inputSavedStarGiftUser':function(w,v){w.uint(1764202389);w.int(h(v,'msgId'));},
|
|
1419
1419
|
'inputSavedStarGiftChat':function(w,v){w.uint(4043418239);w.object(h(v,'peer'));w.long(h(v,'savedId'));},
|
|
@@ -1430,7 +1430,16 @@ var m={
|
|
|
1430
1430
|
'sponsoredPeer':function(w,v){w.uint(3331786963);var flags=0;var _sponsorInfo=v.sponsorInfo!==undefined;if(_sponsorInfo)flags|=1;var _additionalInfo=v.additionalInfo!==undefined;if(_additionalInfo)flags|=2;w.uint(flags);w.bytes(h(v,'randomId'));w.object(h(v,'peer'));if(_sponsorInfo)w.string(v.sponsorInfo);if(_additionalInfo)w.string(v.additionalInfo);},
|
|
1431
1431
|
'contacts.sponsoredPeersEmpty':function(w){w.uint(3929191601);},
|
|
1432
1432
|
'contacts.sponsoredPeers':function(w,v){w.uint(3942852740);w.vector(w.object,h(v,'peers'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1433
|
-
'
|
|
1433
|
+
'channelAdminLogEventActionToggleAutotranslation':function(w,v){w.uint(3306682238);w.boolean(h(v,'newValue'));},
|
|
1434
|
+
'inputInvoiceStarGiftResale':function(w,v){w.uint(1674298252);w.string(h(v,'slug'));w.object(h(v,'toId'));},
|
|
1435
|
+
'inputSavedStarGiftSlug':function(w,v){w.uint(545636920);w.string(h(v,'slug'));},
|
|
1436
|
+
'starGiftAttributeIdModel':function(w,v){w.uint(1219145276);w.long(h(v,'documentId'));},
|
|
1437
|
+
'starGiftAttributeIdPattern':function(w,v){w.uint(1242965043);w.long(h(v,'documentId'));},
|
|
1438
|
+
'starGiftAttributeIdBackdrop':function(w,v){w.uint(520210263);w.int(h(v,'backdropId'));},
|
|
1439
|
+
'starGiftAttributeCounter':function(w,v){w.uint(783398488);w.object(h(v,'attribute'));w.int(h(v,'count'));},
|
|
1440
|
+
'payments.resaleStarGifts':function(w,v){w.uint(2491028191);var flags=0;var _nextOffset=v.nextOffset!==undefined;if(_nextOffset)flags|=1;var _attributes=v.attributes&&v.attributes.length;var _attributesHash=v.attributesHash!==undefined;var _flags_1=_attributes||_attributesHash;if(_flags_1)flags|=2;var _counters=v.counters&&v.counters.length;if(_counters)flags|=4;w.uint(flags);w.int(h(v,'count'));w.vector(w.object,h(v,'gifts'));if(_nextOffset)w.string(v.nextOffset);if(_flags_1)w.vector(w.object,v.attributes);if(_flags_1)w.long(v.attributesHash);w.vector(w.object,h(v,'chats'));if(_counters)w.vector(w.object,v.counters);w.vector(w.object,h(v,'users'));},
|
|
1441
|
+
'stories.canSendStoryCount':function(w,v){w.uint(3280453710);w.int(h(v,'countRemains'));},
|
|
1442
|
+
'pendingSuggestion':function(w,v){w.uint(3890753042);w.string(h(v,'suggestion'));w.object(h(v,'title'));w.object(h(v,'description'));w.string(h(v,'url'));},
|
|
1434
1443
|
'premiumGiftOption':function(w,v){w.uint(1958953753);var flags=0;var _storeProduct=v.storeProduct!==undefined;if(_storeProduct)flags|=1;w.uint(flags);w.int(h(v,'months'));w.string(h(v,'currency'));w.long(h(v,'amount'));w.string(h(v,'botUrl'));if(_storeProduct)w.string(v.storeProduct);},
|
|
1435
1444
|
'emojiStatusUntil':function(w,v){w.uint(4197492935);w.long(h(v,'documentId'));w.int(h(v,'until'));},
|
|
1436
1445
|
'userStarGift':function(w,v){w.uint(4003764846);var flags=0;if(v.nameHidden===true)flags|=1;var _fromId=v.fromId!==undefined;if(_fromId)flags|=2;var _message=v.message!==undefined;if(_message)flags|=4;var _msgId=v.msgId!==undefined;if(_msgId)flags|=8;var _convertStars=v.convertStars!==undefined;if(_convertStars)flags|=16;if(v.unsaved===true)flags|=32;w.uint(flags);if(_fromId)w.int53(v.fromId);w.int(h(v,'date'));w.object(h(v,'gift'));if(_message)w.object(v.message);if(_msgId)w.int(v.msgId);if(_convertStars)w.long(v.convertStars);},
|
|
@@ -2102,7 +2111,7 @@ var m={
|
|
|
2102
2111
|
'chatlists.hideChatlistUpdates':function(w,v){w.uint(1726252795);w.object(h(v,'chatlist'));},
|
|
2103
2112
|
'chatlists.getLeaveChatlistSuggestions':function(w,v){w.uint(4257011476);w.object(h(v,'chatlist'));},
|
|
2104
2113
|
'chatlists.leaveChatlist':function(w,v){w.uint(1962598714);w.object(h(v,'chatlist'));w.vector(w.object,h(v,'peers'));},
|
|
2105
|
-
'stories.canSendStory':function(w,v){w.uint(
|
|
2114
|
+
'stories.canSendStory':function(w,v){w.uint(820732912);w.object(h(v,'peer'));},
|
|
2106
2115
|
'stories.sendStory':function(w,v){w.uint(3840305483);var flags=0;var _caption=v.caption!==undefined;if(_caption)flags|=1;var _entities=v.entities&&v.entities.length;if(_entities)flags|=2;if(v.pinned===true)flags|=4;var _period=v.period!==undefined;if(_period)flags|=8;if(v.noforwards===true)flags|=16;var _mediaAreas=v.mediaAreas&&v.mediaAreas.length;if(_mediaAreas)flags|=32;var _fwdFromId=v.fwdFromId!==undefined;var _fwdFromStory=v.fwdFromStory!==undefined;var _flags_6=_fwdFromId||_fwdFromStory;if(_flags_6)flags|=64;if(v.fwdModified===true)flags|=128;w.uint(flags);w.object(h(v,'peer'));w.object(h(v,'media'));if(_mediaAreas)w.vector(w.object,v.mediaAreas);if(_caption)w.string(v.caption);if(_entities)w.vector(w.object,v.entities);w.vector(w.object,h(v,'privacyRules'));w.long(h(v,'randomId'));if(_period)w.int(v.period);if(_flags_6)w.object(v.fwdFromId);if(_flags_6)w.int(v.fwdFromStory);},
|
|
2107
2116
|
'stories.editStory':function(w,v){w.uint(3045308998);var flags=0;var _media=v.media!==undefined;if(_media)flags|=1;var _caption=v.caption!==undefined;var _entities=v.entities&&v.entities.length;var _flags_1=_caption||_entities;if(_flags_1)flags|=2;var _privacyRules=v.privacyRules&&v.privacyRules.length;if(_privacyRules)flags|=4;var _mediaAreas=v.mediaAreas&&v.mediaAreas.length;if(_mediaAreas)flags|=8;w.uint(flags);w.object(h(v,'peer'));w.int(h(v,'id'));if(_media)w.object(v.media);if(_mediaAreas)w.vector(w.object,v.mediaAreas);if(_flags_1)w.string(v.caption);if(_flags_1)w.vector(w.object,v.entities);if(_privacyRules)w.vector(w.object,v.privacyRules);},
|
|
2108
2117
|
'stories.deleteStories':function(w,v){w.uint(2925124447);w.object(h(v,'peer'));w.vector(w.int,h(v,'id'));},
|
|
@@ -2141,6 +2150,9 @@ var m={
|
|
|
2141
2150
|
'smsjobs.getSmsJob':function(w,v){w.uint(2005766191);w.string(h(v,'jobId'));},
|
|
2142
2151
|
'smsjobs.finishJob':function(w,v){w.uint(1327415076);var flags=0;var _error=v.error!==undefined;if(_error)flags|=1;w.uint(flags);w.string(h(v,'jobId'));if(_error)w.string(v.error);},
|
|
2143
2152
|
'fragment.getCollectibleInfo':function(w,v){w.uint(3189671354);w.object(h(v,'collectible'));},
|
|
2153
|
+
'channels.toggleAutotranslation':function(w,v){w.uint(377471137);w.object(h(v,'channel'));w.boolean(h(v,'enabled'));},
|
|
2154
|
+
'payments.getResaleStarGifts':function(w,v){w.uint(2053087798);var flags=0;var _attributesHash=v.attributesHash!==undefined;if(_attributesHash)flags|=1;if(v.sortByPrice===true)flags|=2;if(v.sortByNum===true)flags|=4;var _attributes=v.attributes&&v.attributes.length;if(_attributes)flags|=8;w.uint(flags);if(_attributesHash)w.long(v.attributesHash);w.long(h(v,'giftId'));if(_attributes)w.vector(w.object,v.attributes);w.string(h(v,'offset'));w.int(h(v,'limit'));},
|
|
2155
|
+
'payments.updateStarGiftPrice':function(w,v){w.uint(1001301217);w.object(h(v,'stargift'));w.long(h(v,'resellStars'));},
|
|
2144
2156
|
'users.getIsPremiumRequiredToContact':function(w,v){w.uint(2787289616);w.vector(w.object,h(v,'id'));},
|
|
2145
2157
|
'payments.canPurchasePremium':function(w,v){w.uint(2680266422);w.object(h(v,'purpose'));},
|
|
2146
2158
|
'payments.getUserStarGifts':function(w,v){w.uint(1584580577);w.object(h(v,'userId'));w.string(h(v,'offset'));w.int(h(v,'limit'));},
|
|
@@ -2689,6 +2701,11 @@ _staticSize:{
|
|
|
2689
2701
|
'businessBotRights':8,
|
|
2690
2702
|
'disallowedGiftsSettings':8,
|
|
2691
2703
|
'contacts.sponsoredPeersEmpty':4,
|
|
2704
|
+
'channelAdminLogEventActionToggleAutotranslation':8,
|
|
2705
|
+
'starGiftAttributeIdModel':12,
|
|
2706
|
+
'starGiftAttributeIdPattern':12,
|
|
2707
|
+
'starGiftAttributeIdBackdrop':8,
|
|
2708
|
+
'stories.canSendStoryCount':8,
|
|
2692
2709
|
'emojiStatusUntil':16,
|
|
2693
2710
|
'test.useConfigSimple':4,
|
|
2694
2711
|
'test.parseInputAppEvent':4,
|
package/compat/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare namespace tlCompat {
|
|
|
23
23
|
* Added arguments:
|
|
24
24
|
* owner_address: flags.2?string
|
|
25
25
|
* gift_address: flags.3?string
|
|
26
|
+
* resell_stars: flags.4?long
|
|
26
27
|
* Changed arguments:
|
|
27
28
|
* owner_id: flags.0?int53 => flags.0?Peer
|
|
28
29
|
*/
|
|
@@ -146,6 +147,9 @@ export declare namespace tlCompat {
|
|
|
146
147
|
* from_id: flags.6?Peer
|
|
147
148
|
* peer: flags.7?Peer
|
|
148
149
|
* saved_id: flags.7?long
|
|
150
|
+
* resale_stars: flags.8?long
|
|
151
|
+
* can_transfer_at: flags.9?int
|
|
152
|
+
* can_resell_at: flags.10?int
|
|
149
153
|
*/
|
|
150
154
|
interface RawMessageActionStarGiftUnique_layer197 {
|
|
151
155
|
_: 'messageActionStarGiftUnique_layer197';
|
|
@@ -184,6 +188,7 @@ export declare namespace tlCompat {
|
|
|
184
188
|
*
|
|
185
189
|
* Added arguments:
|
|
186
190
|
* gift_address: flags.3?string
|
|
191
|
+
* resell_stars: flags.4?long
|
|
187
192
|
*/
|
|
188
193
|
interface RawStarGiftUnique_layer198 {
|
|
189
194
|
_: 'starGiftUnique_layer198';
|
|
@@ -313,6 +318,7 @@ export declare namespace tlCompat {
|
|
|
313
318
|
* Compared to the current schema, changes from this entry:
|
|
314
319
|
*
|
|
315
320
|
* Added arguments:
|
|
321
|
+
* autotranslation: flags2.15?true
|
|
316
322
|
* send_paid_messages_stars: flags2.14?long
|
|
317
323
|
*/
|
|
318
324
|
interface RawChannel_layer199 {
|
|
@@ -466,17 +472,89 @@ export declare namespace tlCompat {
|
|
|
466
472
|
botVerification?: tl.TypeBotVerification;
|
|
467
473
|
sendPaidMessagesStars?: Long;
|
|
468
474
|
}
|
|
475
|
+
/**
|
|
476
|
+
* Compared to the current schema, changes from this entry:
|
|
477
|
+
*
|
|
478
|
+
* Added arguments:
|
|
479
|
+
* resell_stars: flags.4?long
|
|
480
|
+
*/
|
|
481
|
+
interface RawStarGiftUnique_layer202 {
|
|
482
|
+
_: 'starGiftUnique_layer202';
|
|
483
|
+
id: Long;
|
|
484
|
+
title: string;
|
|
485
|
+
slug: string;
|
|
486
|
+
num: number;
|
|
487
|
+
ownerId?: tl.TypePeer;
|
|
488
|
+
ownerName?: string;
|
|
489
|
+
ownerAddress?: string;
|
|
490
|
+
attributes: tl.TypeStarGiftAttribute[];
|
|
491
|
+
availabilityIssued: number;
|
|
492
|
+
availabilityTotal: number;
|
|
493
|
+
giftAddress?: string;
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Compared to the current schema, changes from this entry:
|
|
497
|
+
*
|
|
498
|
+
* Added arguments:
|
|
499
|
+
* availability_resale: flags.4?long
|
|
500
|
+
* resell_min_stars: flags.4?long
|
|
501
|
+
* title: flags.5?string
|
|
502
|
+
*/
|
|
503
|
+
interface RawStarGift_layer202 {
|
|
504
|
+
_: 'starGift_layer202';
|
|
505
|
+
limited?: boolean;
|
|
506
|
+
soldOut?: boolean;
|
|
507
|
+
birthday?: boolean;
|
|
508
|
+
id: Long;
|
|
509
|
+
sticker: tl.TypeDocument;
|
|
510
|
+
stars: Long;
|
|
511
|
+
availabilityRemains?: number;
|
|
512
|
+
availabilityTotal?: number;
|
|
513
|
+
convertStars: Long;
|
|
514
|
+
firstSaleDate?: number;
|
|
515
|
+
lastSaleDate?: number;
|
|
516
|
+
upgradeStars?: Long;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Compared to the current schema, changes from this entry:
|
|
520
|
+
*
|
|
521
|
+
* Added arguments:
|
|
522
|
+
* resale_stars: flags.8?long
|
|
523
|
+
* can_transfer_at: flags.9?int
|
|
524
|
+
* can_resell_at: flags.10?int
|
|
525
|
+
*/
|
|
526
|
+
interface RawMessageActionStarGiftUnique_layer202 {
|
|
527
|
+
_: 'messageActionStarGiftUnique_layer202';
|
|
528
|
+
upgrade?: boolean;
|
|
529
|
+
transferred?: boolean;
|
|
530
|
+
saved?: boolean;
|
|
531
|
+
refunded?: boolean;
|
|
532
|
+
gift: tlCompat.TypeStarGift;
|
|
533
|
+
canExportAt?: number;
|
|
534
|
+
transferStars?: Long;
|
|
535
|
+
fromId?: tl.TypePeer;
|
|
536
|
+
peer?: tl.TypePeer;
|
|
537
|
+
savedId?: Long;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Entry was removed from the schema
|
|
541
|
+
*/
|
|
542
|
+
interface RawPhoneCallDiscardReasonAllowGroupCall_layer202 {
|
|
543
|
+
_: 'phoneCallDiscardReasonAllowGroupCall_layer202';
|
|
544
|
+
encryptedKey: Uint8Array;
|
|
545
|
+
}
|
|
469
546
|
interface RpcCallReturn {
|
|
470
547
|
}
|
|
471
|
-
type TypeStarGift = tlCompat.RawStarGiftUnique_layer197 | tlCompat.RawStarGiftUnique_layer198 | AnyToNever<tl.TypeStarGift>
|
|
548
|
+
type TypeStarGift = tlCompat.RawStarGiftUnique_layer197 | tlCompat.RawStarGiftUnique_layer198 | tlCompat.RawStarGiftUnique_layer202 | tlCompat.RawStarGift_layer202 | AnyToNever<tl.TypeStarGift>
|
|
472
549
|
type TypeEmojiStatus = tlCompat.RawEmojiStatus_layer197 | AnyToNever<tl.TypeEmojiStatus>
|
|
473
550
|
type TypeMessageMedia = tlCompat.RawMessageMediaDocument_layer197 | AnyToNever<tl.TypeMessageMedia>
|
|
474
551
|
type TypeChatFull = tlCompat.RawChannelFull_layer197 | AnyToNever<tl.TypeChatFull>
|
|
475
|
-
type TypeMessageAction = tlCompat.RawMessageActionStarGiftUnique_layer197 | tlCompat.RawMessageActionStarGift_layer197 | AnyToNever<tl.TypeMessageAction>
|
|
552
|
+
type TypeMessageAction = tlCompat.RawMessageActionStarGiftUnique_layer197 | tlCompat.RawMessageActionStarGift_layer197 | tlCompat.RawMessageActionStarGiftUnique_layer202 | AnyToNever<tl.TypeMessageAction>
|
|
476
553
|
type TypeUserFull = tlCompat.RawUserFull_layer199 | tlCompat.RawUserFull_layer200 | AnyToNever<tl.TypeUserFull>
|
|
477
554
|
type TypeUser = tlCompat.RawUser_layer199 | AnyToNever<tl.TypeUser>
|
|
478
555
|
type TypeChat = tlCompat.RawChannel_layer199 | AnyToNever<tl.TypeChat>
|
|
479
556
|
type TypeMessage = tlCompat.RawMessage_layer199 | AnyToNever<tl.TypeMessage>
|
|
557
|
+
type TypePhoneCallDiscardReason = tlCompat.RawPhoneCallDiscardReasonAllowGroupCall_layer202 | AnyToNever<tl.TypePhoneCallDiscardReason>
|
|
480
558
|
|
|
481
559
|
type TlObject =
|
|
482
560
|
| tlCompat.RawStarGiftUnique_layer197
|
|
@@ -491,5 +569,9 @@ export declare namespace tlCompat {
|
|
|
491
569
|
| tlCompat.RawChannel_layer199
|
|
492
570
|
| tlCompat.RawMessage_layer199
|
|
493
571
|
| tlCompat.RawUserFull_layer200
|
|
572
|
+
| tlCompat.RawStarGiftUnique_layer202
|
|
573
|
+
| tlCompat.RawStarGift_layer202
|
|
574
|
+
| tlCompat.RawMessageActionStarGiftUnique_layer202
|
|
575
|
+
| tlCompat.RawPhoneCallDiscardReasonAllowGroupCall_layer202
|
|
494
576
|
| tl.TlObject
|
|
495
577
|
}
|
package/compat/reader.js
CHANGED
|
@@ -14,5 +14,9 @@ var m={
|
|
|
14
14
|
3758725303:function(r){var flags=r.uint(),flags2=r.uint();return{_:'channel_layer199',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,}},
|
|
15
15
|
2533211113:function(r){var flags=r.uint(),flags2=r.uint();return{_:'message_layer199',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,}},
|
|
16
16
|
3525529248:function(r){var flags=r.uint(),flags2=r.uint();return{_:'userFull_layer200',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),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,}},
|
|
17
|
+
1549979985:function(r){var flags=r.uint();return{_:'starGiftUnique_layer202',id:r.long(),title:r.string(),slug:r.string(),num:r.int(),ownerId:flags&1?r.object():void 0,ownerName:flags&2?r.string():void 0,ownerAddress:flags&4?r.string():void 0,attributes:r.vector(r.object),availabilityIssued:r.int(),availabilityTotal:r.int(),giftAddress:flags&8?r.string():void 0,}},
|
|
18
|
+
46953416:function(r){var flags=r.uint();return{_:'starGift_layer202',limited:!!(flags&1),soldOut:!!(flags&2),birthday:!!(flags&4),id:r.long(),sticker:r.object(),stars:r.long(),availabilityRemains:flags&1?r.int():void 0,availabilityTotal:flags&1?r.int():void 0,convertStars:r.long(),firstSaleDate:flags&2?r.int():void 0,lastSaleDate:flags&2?r.int():void 0,upgradeStars:flags&8?r.long():void 0,}},
|
|
19
|
+
2900347777:function(r){var flags=r.uint();return{_:'messageActionStarGiftUnique_layer202',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,}},
|
|
20
|
+
2950871097:function(r){return{_:'phoneCallDiscardReasonAllowGroupCall_layer202',encryptedKey:r.bytes(),}},
|
|
17
21
|
}
|
|
18
22
|
exports.__tlReaderMapCompat = m;
|