@mtcute/tl 220.0.0 → 222.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 +49 -34
- package/binary/writer.js +78 -48
- package/compat/index.d.ts +470 -12
- package/compat/reader.js +25 -0
- package/index.d.ts +222 -58
- package/index.js +6 -2
- package/package.json +1 -1
package/compat/reader.js
CHANGED
|
@@ -55,5 +55,30 @@ var m={
|
|
|
55
55
|
2965337115:function(r){var flags=r.uint();return{_:'starGiftUnique_layer218',requirePremium:!!(flags&64),resaleTonOnly:!!(flags&128),themeAvailable:!!(flags&512),id:r.long(),giftId: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,resellAmount:flags&16?r.vector(r.object):void 0,releasedBy:flags&32?r.object():void 0,valueAmount:flags&256?r.long():void 0,valueCurrency:flags&256?r.string():void 0,themePeer:flags&1024?r.object():void 0,peerColor:flags&2048?r.object():void 0,hostId:flags&4096?r.object():void 0,}},
|
|
56
56
|
463097215:function(r){var flags=r.uint();return{_:'starGift_layer218',limited:!!(flags&1),soldOut:!!(flags&2),birthday:!!(flags&4),requirePremium:!!(flags&128),limitedPerUser:!!(flags&256),peerColorAvailable:!!(flags&1024),auction:!!(flags&2048),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,releasedBy:flags&64?r.object():void 0,perUserTotal:flags&256?r.int():void 0,perUserRemains:flags&256?r.int():void 0,lockedUntilDate:flags&512?r.int():void 0,auctionSlug:flags&2048?r.string():void 0,giftsPerRound:flags&2048?r.int():void 0,}},
|
|
57
57
|
3680068944:function(r){var flags=r.uint();return{_:'messageActionStarGift_layer218',nameHidden:!!(flags&1),saved:!!(flags&4),converted:!!(flags&8),upgraded:!!(flags&32),refunded:!!(flags&512),canUpgrade:!!(flags&1024),prepaidUpgrade:!!(flags&8192),upgradeSeparate:!!(flags&65536),auctionAcquired:!!(flags&131072),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,prepaidUpgradeHash:flags&16384?r.string():void 0,giftMsgId:flags&32768?r.int():void 0,toId:flags&262144?r.object():void 0,}},
|
|
58
|
+
1065280907:function(r){return{_:'messageMediaDice_layer220',value:r.int(),emoticon:r.string(),}},
|
|
59
|
+
3106895567:function(r){var flags=r.uint(),flags2=r.uint();return{_:'message_layer220',out:!!(flags&2),mentioned:!!(flags&16),mediaUnread:!!(flags&32),silent:!!(flags&8192),post:!!(flags&16384),fromScheduled:!!(flags&262144),legacy:!!(flags&524288),editHide:!!(flags&2097152),pinned:!!(flags&16777216),noforwards:!!(flags&67108864),invertMedia:!!(flags&134217728),offline:!!(flags2&2),videoProcessingPending:!!(flags2&16),paidSuggestedPostStars:!!(flags2&256),paidSuggestedPostTon:!!(flags2&512),id:r.int(),fromId:flags&256?r.object():void 0,fromBoostsApplied:flags&536870912?r.int():void 0,peerId:r.object(),savedPeerId:flags&268435456?r.object():void 0,fwdFrom:flags&4?r.object():void 0,viaBotId:flags&2048?r.int53():void 0,viaBusinessBotId:flags2&1?r.int53():void 0,replyTo:flags&8?r.object():void 0,date:r.int(),message:r.string(),media:flags&512?r.object():void 0,replyMarkup:flags&64?r.object():void 0,entities:flags&128?r.vector(r.object):void 0,views:flags&1024?r.int():void 0,forwards:flags&1024?r.int():void 0,replies:flags&8388608?r.object():void 0,editDate:flags&32768?r.int():void 0,postAuthor:flags&65536?r.string():void 0,groupedId:flags&131072?r.long():void 0,reactions:flags&1048576?r.object():void 0,restrictionReason:flags&4194304?r.vector(r.object):void 0,ttlPeriod:flags&33554432?r.int():void 0,quickReplyShortcutId:flags&1073741824?r.int():void 0,effect:flags2&4?r.long():void 0,factcheck:flags2&8?r.object():void 0,reportDeliveryUntilDate:flags2&32?r.int():void 0,paidMessageStars:flags2&64?r.long():void 0,suggestedPost:flags2&128?r.object():void 0,scheduleRepeatPeriod:flags2&1024?r.int():void 0,}},
|
|
60
|
+
1453155529:function(r){var flags=r.uint();return{_:'starGiftUnique_layer221',requirePremium:!!(flags&64),resaleTonOnly:!!(flags&128),themeAvailable:!!(flags&512),id:r.long(),giftId: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,resellAmount:flags&16?r.vector(r.object):void 0,releasedBy:flags&32?r.object():void 0,valueAmount:flags&256?r.long():void 0,valueCurrency:flags&256?r.string():void 0,valueUsdAmount:flags&256?r.long():void 0,themePeer:flags&1024?r.object():void 0,peerColor:flags&2048?r.object():void 0,hostId:flags&4096?r.object():void 0,offerMinStars:flags&8192?r.int():void 0,}},
|
|
61
|
+
3644687772:function(r){return{_:'starGiftAttributeBackdrop_layer221',name:r.string(),backdropId:r.int(),centerColor:r.int(),edgeColor:r.int(),patternColor:r.int(),textColor:r.int(),rarityPermille:r.int(),}},
|
|
62
|
+
330104601:function(r){return{_:'starGiftAttributePattern_layer221',name:r.string(),document:r.object(),rarityPermille:r.int(),}},
|
|
63
|
+
970559507:function(r){return{_:'starGiftAttributeModel_layer221',name:r.string(),document:r.object(),rarityPermille:r.int(),}},
|
|
64
|
+
2507310403:function(r){var flags=r.uint();return{_:'messageActionStarGiftUnique_layer221',upgrade:!!(flags&1),transferred:!!(flags&2),saved:!!(flags&4),refunded:!!(flags&32),prepaidUpgrade:!!(flags&2048),assigned:!!(flags&8192),fromOffer:!!(flags&16384),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,resaleAmount:flags&256?r.object():void 0,canTransferAt:flags&512?r.int():void 0,canResellAt:flags&1024?r.int():void 0,dropOriginalDetailsStars:flags&4096?r.long():void 0,}},
|
|
65
|
+
1976723854:function(r){return{_:'keyboardButtonCopy_layer221',text:r.string(),copyText:r.string(),}},
|
|
66
|
+
3378916613:function(r){var flags=r.uint();return{_:'inputKeyboardButtonRequestPeer_layer221',nameRequested:!!(flags&1),usernameRequested:!!(flags&2),photoRequested:!!(flags&4),text:r.string(),buttonId:r.int(),peerType:r.object(),maxQuantity:r.int(),}},
|
|
67
|
+
1406648280:function(r){return{_:'keyboardButtonRequestPeer_layer221',text:r.string(),buttonId:r.int(),peerType:r.object(),maxQuantity:r.int(),}},
|
|
68
|
+
2696958044:function(r){return{_:'keyboardButtonSimpleWebView_layer221',text:r.string(),url:r.string(),}},
|
|
69
|
+
326529584:function(r){return{_:'keyboardButtonWebView_layer221',text:r.string(),url:r.string(),}},
|
|
70
|
+
814112961:function(r){return{_:'keyboardButtonUserProfile_layer221',text:r.string(),userId:r.int53(),}},
|
|
71
|
+
3918005115:function(r){return{_:'inputKeyboardButtonUserProfile_layer221',text:r.string(),userId:r.object(),}},
|
|
72
|
+
3150401885:function(r){var flags=r.uint();return{_:'keyboardButtonRequestPoll_layer221',quiz:flags&1?r.boolean():void 0,text:r.string(),}},
|
|
73
|
+
3492708308:function(r){var flags=r.uint();return{_:'inputKeyboardButtonUrlAuth_layer221',requestWriteAccess:!!(flags&1),text:r.string(),fwdText:flags&2?r.string():void 0,url:r.string(),bot:r.object(),}},
|
|
74
|
+
280464681:function(r){var flags=r.uint();return{_:'keyboardButtonUrlAuth_layer221',text:r.string(),fwdText:flags&1?r.string():void 0,url:r.string(),buttonId:r.int(),}},
|
|
75
|
+
2950250427:function(r){return{_:'keyboardButtonBuy_layer221',text:r.string(),}},
|
|
76
|
+
1358175439:function(r){return{_:'keyboardButtonGame_layer221',text:r.string(),}},
|
|
77
|
+
2478439349:function(r){var flags=r.uint();return{_:'keyboardButtonSwitchInline_layer221',samePeer:!!(flags&1),text:r.string(),query:r.string(),peerTypes:flags&2?r.vector(r.object):void 0,}},
|
|
78
|
+
4235815743:function(r){return{_:'keyboardButtonRequestGeoLocation_layer221',text:r.string(),}},
|
|
79
|
+
2976541737:function(r){return{_:'keyboardButtonRequestPhone_layer221',text:r.string(),}},
|
|
80
|
+
901503851:function(r){var flags=r.uint();return{_:'keyboardButtonCallback_layer221',requiresPassword:!!(flags&1),text:r.string(),data:r.bytes(),}},
|
|
81
|
+
629866245:function(r){return{_:'keyboardButtonUrl_layer221',text:r.string(),url:r.string(),}},
|
|
82
|
+
2734311552:function(r){return{_:'keyboardButton_layer221',text:r.string(),}},
|
|
58
83
|
}
|
|
59
84
|
exports.__tlReaderMapCompat = m;
|