@mtcute/tl 201.0.0 → 202.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 +19 -14
- package/binary/writer.js +33 -33
- package/index.d.ts +177 -81
- package/index.js +2 -2
- package/package.json +1 -1
package/binary/reader.js
CHANGED
|
@@ -164,6 +164,9 @@ var m={
|
|
|
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
|
2900347777: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,}},
|
|
167
|
+
2887720909:function(r){return{_:'messageActionPaidMessagesRefunded',count:r.int(),stars:r.long(),}},
|
|
168
|
+
3168211993:function(r){return{_:'messageActionPaidMessagesPrice',stars:r.long(),}},
|
|
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,}},
|
|
167
170
|
3582593222:function(r){var flags=r.uint();return{_:'dialog',pinned:!!(flags&4),unreadMark:!!(flags&8),viewForumAsMessages:!!(flags&64),peer:r.object(),topMessage:r.int(),readInboxMaxId:r.int(),readOutboxMaxId:r.int(),unreadCount:r.int(),unreadMentionsCount:r.int(),unreadReactionsCount:r.int(),notifySettings:r.object(),pts:flags&1?r.int():void 0,draft:flags&2?r.object():void 0,folderId:flags&16?r.int():void 0,ttlPeriod:flags&32?r.int():void 0,}},
|
|
168
171
|
1908216652:function(r){var flags=r.uint();return{_:'dialogFolder',pinned:!!(flags&4),folder:r.object(),peer:r.object(),topMessage:r.int(),unreadMutedPeersCount:r.int(),unreadUnmutedPeersCount:r.int(),unreadMutedMessagesCount:r.int(),unreadUnmutedMessagesCount:r.int(),}},
|
|
169
172
|
590459437:function(r){return{_:'photoEmpty',id:r.long(),}},
|
|
@@ -178,6 +181,7 @@ var m={
|
|
|
178
181
|
2997024355:function(r){var flags=r.uint();return{_:'geoPoint',long:r.double(),lat:r.double(),accessHash:r.long(),accuracyRadius:flags&1?r.int():void 0,}},
|
|
179
182
|
1577067778:function(r){var flags=r.uint();return{_:'auth.sentCode',type:r.object(),phoneCodeHash:r.string(),nextType:flags&2?r.object():void 0,timeout:flags&4?r.int():void 0,}},
|
|
180
183
|
596704836:function(r){return{_:'auth.sentCodeSuccess',authorization:r.object(),}},
|
|
184
|
+
3620665728:function(r){return{_:'auth.sentCodePaymentRequired',storeProduct:r.string(),phoneCodeHash:r.string(),}},
|
|
181
185
|
782418132:function(r){var flags=r.uint();return{_:'auth.authorization',setupPasswordRequired:!!(flags&2),otherwiseReloginDays:flags&2?r.int():void 0,tmpSessions:flags&1?r.int():void 0,futureAuthToken:flags&4?r.bytes():void 0,user:r.object(),}},
|
|
182
186
|
1148485274:function(r){var flags=r.uint();return{_:'auth.authorizationSignUpRequired',termsOfService:flags&1?r.object():void 0,}},
|
|
183
187
|
3023364792:function(r){return{_:'auth.exportedAuthorization',id:r.long(),bytes:r.bytes(),}},
|
|
@@ -379,6 +383,8 @@ var m={
|
|
|
379
383
|
2776936473:function(r){return{_:'updateStarsRevenueStatus',peer:r.object(),status:r.object(),}},
|
|
380
384
|
675009298:function(r){return{_:'updateBotPurchasedPaidMedia',userId:r.int53(),payload:r.string(),qts:r.int(),}},
|
|
381
385
|
2339528654:function(r){return{_:'updatePaidReactionPrivacy',private:r.object(),}},
|
|
386
|
+
1347068303:function(r){return{_:'updateSentPhoneCode',sentCode:r.object(),}},
|
|
387
|
+
2759272591:function(r){return{_:'updateGroupCallChainBlocks',call:r.object(),subChainId:r.int(),blocks:r.vector(r.bytes),nextOffset:r.int(),}},
|
|
382
388
|
2775329342:function(r){return{_:'updates.state',pts:r.int(),qts:r.int(),date:r.int(),seq:r.int(),unreadCount:r.int(),}},
|
|
383
389
|
1567990072:function(r){return{_:'updates.differenceEmpty',date:r.int(),seq:r.int(),}},
|
|
384
390
|
16030880:function(r){return{_:'updates.difference',newMessages:r.vector(r.object),newEncryptedMessages:r.vector(r.object),otherUpdates:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),state:r.object(),}},
|
|
@@ -751,7 +757,7 @@ var m={
|
|
|
751
757
|
3767910816:function(r){return{_:'phoneCallDiscardReasonDisconnect'}},
|
|
752
758
|
1471006352:function(r){return{_:'phoneCallDiscardReasonHangup'}},
|
|
753
759
|
4210550985:function(r){return{_:'phoneCallDiscardReasonBusy'}},
|
|
754
|
-
|
|
760
|
+
2679894519:function(r){return{_:'phoneCallDiscardReasonMigrateConferenceCall',slug:r.string(),}},
|
|
755
761
|
2104790276:function(r){return{_:'dataJSON',data:r.string(),}},
|
|
756
762
|
3408489464:function(r){return{_:'labeledPrice',label:r.string(),amount:r.long(),}},
|
|
757
763
|
77522308:function(r){var flags=r.uint();return{_:'invoice',test:!!(flags&1),nameRequested:!!(flags&2),phoneRequested:!!(flags&4),emailRequested:!!(flags&8),shippingAddressRequested:!!(flags&16),flexible:!!(flags&32),phoneToProvider:!!(flags&64),emailToProvider:!!(flags&128),recurring:!!(flags&512),currency:r.string(),prices:r.vector(r.object),maxTipAmount:flags&256?r.long():void 0,suggestedTipAmounts:flags&256?r.vector(r.long):void 0,termsUrl:flags&1024?r.string():void 0,subscriptionPeriod:flags&2048?r.int():void 0,}},
|
|
@@ -784,11 +790,11 @@ var m={
|
|
|
784
790
|
853188252:function(r){var flags=r.uint();return{_:'inputStickerSetItem',document:r.object(),emoji:r.string(),maskCoords:flags&1?r.object():void 0,keywords:flags&2?r.string():void 0,}},
|
|
785
791
|
506920429:function(r){return{_:'inputPhoneCall',id:r.long(),accessHash:r.long(),}},
|
|
786
792
|
1399245077:function(r){return{_:'phoneCallEmpty',id:r.long(),}},
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
793
|
+
3307368215:function(r){var flags=r.uint();return{_:'phoneCallWaiting',video:!!(flags&64),id:r.long(),accessHash:r.long(),date:r.int(),adminId:r.int53(),participantId:r.int53(),protocol:r.object(),receiveDate:flags&1?r.int():void 0,}},
|
|
794
|
+
347139340:function(r){var flags=r.uint();return{_:'phoneCallRequested',video:!!(flags&64),id:r.long(),accessHash:r.long(),date:r.int(),adminId:r.int53(),participantId:r.int53(),gAHash:r.bytes(),protocol:r.object(),}},
|
|
795
|
+
912311057:function(r){var flags=r.uint();return{_:'phoneCallAccepted',video:!!(flags&64),id:r.long(),accessHash:r.long(),date:r.int(),adminId:r.int53(),participantId:r.int53(),gB:r.bytes(),protocol:r.object(),}},
|
|
796
|
+
810769141:function(r){var flags=r.uint();return{_:'phoneCall',p2pAllowed:!!(flags&32),video:!!(flags&64),conferenceSupported:!!(flags&256),id:r.long(),accessHash:r.long(),date:r.int(),adminId:r.int53(),participantId:r.int53(),gAOrB:r.bytes(),keyFingerprint:r.long(),protocol:r.object(),connections:r.vector(r.object),startDate:r.int(),customParameters:flags&128?r.object():void 0,}},
|
|
797
|
+
1355435489:function(r){var flags=r.uint();return{_:'phoneCallDiscarded',needRating:!!(flags&4),needDebug:!!(flags&8),video:!!(flags&64),id:r.long(),reason:flags&1?r.object():void 0,duration:flags&2?r.int():void 0,}},
|
|
792
798
|
2629903303:function(r){var flags=r.uint();return{_:'phoneConnection',tcp:!!(flags&1),id:r.long(),ip:r.string(),ipv6:r.string(),port:r.int(),peerTag:r.bytes(),}},
|
|
793
799
|
1667228533:function(r){var flags=r.uint();return{_:'phoneConnectionWebrtc',turn:!!(flags&1),stun:!!(flags&2),id:r.long(),ip:r.string(),ipv6:r.string(),port:r.int(),username:r.string(),password:r.string(),}},
|
|
794
800
|
4236742600:function(r){var flags=r.uint();return{_:'phoneCallProtocol',udpP2p:!!(flags&1),udpReflector:!!(flags&2),minLayer:r.int(),maxLayer:r.int(),libraryVersions:r.vector(r.string),}},
|
|
@@ -1044,8 +1050,10 @@ var m={
|
|
|
1044
1050
|
3908927508:function(r){return{_:'peerBlocked',peerId:r.object(),date:r.int(),}},
|
|
1045
1051
|
2145983508:function(r){return{_:'stats.messageStats',viewsGraph:r.object(),reactionsByEmotionGraph:r.object(),}},
|
|
1046
1052
|
2004925620:function(r){return{_:'groupCallDiscarded',id:r.long(),accessHash:r.long(),duration:r.int(),}},
|
|
1047
|
-
|
|
1053
|
+
1429932961:function(r){var flags=r.uint();return{_:'groupCall',joinMuted:!!(flags&2),canChangeJoinMuted:!!(flags&4),joinDateAsc:!!(flags&64),scheduleStartSubscribed:!!(flags&256),canStartVideo:!!(flags&512),recordVideoActive:!!(flags&2048),rtmpStream:!!(flags&4096),listenersHidden:!!(flags&8192),conference:!!(flags&16384),creator:!!(flags&32768),id:r.long(),accessHash:r.long(),participantsCount:r.int(),title:flags&8?r.string():void 0,streamDcId:flags&16?r.int():void 0,recordStartDate:flags&32?r.int():void 0,scheduleDate:flags&128?r.int():void 0,unmutedVideoCount:flags&1024?r.int():void 0,unmutedVideoLimit:r.int(),version:r.int(),inviteLink:flags&65536?r.string():void 0,}},
|
|
1048
1054
|
3635053583:function(r){return{_:'inputGroupCall',id:r.long(),accessHash:r.long(),}},
|
|
1055
|
+
4261839423:function(r){return{_:'inputGroupCallSlug',slug:r.string(),}},
|
|
1056
|
+
2349883455:function(r){return{_:'inputGroupCallInviteMessage',msgId:r.int(),}},
|
|
1049
1057
|
3953538814:function(r){var flags=r.uint();return{_:'groupCallParticipant',muted:!!(flags&1),left:!!(flags&2),canSelfUnmute:!!(flags&4),justJoined:!!(flags&16),versioned:!!(flags&32),min:!!(flags&256),mutedByYou:!!(flags&512),volumeByAdmin:!!(flags&1024),self:!!(flags&4096),videoJoined:!!(flags&32768),peer:r.object(),date:r.int(),activeDate:flags&8?r.int():void 0,source:r.int(),volume:flags&128?r.int():void 0,about:flags&2048?r.string():void 0,raiseHandRating:flags&8192?r.long():void 0,video:flags&64?r.object():void 0,presentation:flags&16384?r.object():void 0,}},
|
|
1050
1058
|
2658302637:function(r){return{_:'phone.groupCall',call:r.object(),participants:r.vector(r.object),participantsNextOffset:r.string(),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1051
1059
|
4101460406:function(r){return{_:'phone.groupParticipants',count:r.int(),participants:r.vector(r.object),nextOffset:r.string(),chats:r.vector(r.object),users:r.vector(r.object),version:r.int(),}},
|
|
@@ -1135,6 +1143,7 @@ var m={
|
|
|
1135
1143
|
1300335965:function(r){var flags=r.uint();return{_:'inputInvoiceStarGiftUpgrade',keepOriginalDetails:!!(flags&1),stargift:r.object(),}},
|
|
1136
1144
|
1247763417:function(r){return{_:'inputInvoiceStarGiftTransfer',stargift:r.object(),toId:r.object(),}},
|
|
1137
1145
|
3669668591:function(r){var flags=r.uint();return{_:'inputInvoicePremiumGiftStars',userId:r.object(),months:r.int(),message:flags&1?r.object():void 0,}},
|
|
1146
|
+
4103700034:function(r){return{_:'inputInvoiceBusinessBotTransferStars',bot:r.object(),stars:r.long(),}},
|
|
1138
1147
|
2932919257:function(r){return{_:'payments.exportedInvoice',url:r.string(),}},
|
|
1139
1148
|
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,}},
|
|
1140
1149
|
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),}},
|
|
@@ -1145,6 +1154,7 @@ var m={
|
|
|
1145
1154
|
3722252118:function(r){return{_:'inputStorePaymentStarsTopup',stars:r.long(),currency:r.string(),amount:r.long(),}},
|
|
1146
1155
|
494149367:function(r){return{_:'inputStorePaymentStarsGift',userId:r.object(),stars:r.long(),currency:r.string(),amount:r.long(),}},
|
|
1147
1156
|
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(),}},
|
|
1157
|
+
2612159341:function(r){var flags=r.uint();return{_:'inputStorePaymentAuthCode',restore:!!(flags&1),phoneNumber:r.string(),phoneCodeHash:r.string(),currency:r.string(),amount:r.long(),}},
|
|
1148
1158
|
2298016283:function(r){return{_:'paymentFormMethod',url:r.string(),title:r.string(),}},
|
|
1149
1159
|
769727150:function(r){return{_:'emojiStatusEmpty'}},
|
|
1150
1160
|
3892250250:function(r){var flags=r.uint();return{_:'emojiStatus',documentId:r.long(),until:flags&1?r.int():void 0,}},
|
|
@@ -1354,7 +1364,7 @@ var m={
|
|
|
1354
1364
|
1617438738:function(r){return{_:'starsTransactionPeerAds'}},
|
|
1355
1365
|
4184308397:function(r){return{_:'starsTransactionPeerAPI'}},
|
|
1356
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(),}},
|
|
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,
|
|
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,}},
|
|
1358
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),}},
|
|
1359
1369
|
3900361664:function(r){return{_:'foundStory',peer:r.object(),story:r.object(),}},
|
|
1360
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),}},
|
|
@@ -1414,21 +1424,16 @@ var m={
|
|
|
1414
1424
|
84580409:function(r){return{_:'requirementToContactEmpty'}},
|
|
1415
1425
|
3850495209:function(r){return{_:'requirementToContactPremium'}},
|
|
1416
1426
|
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
1427
|
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
1428
|
1911715524:function(r){var flags=r.uint();return{_:'disallowedGiftsSettings',disallowUnlimitedStargifts:!!(flags&1),disallowLimitedStargifts:!!(flags&2),disallowUniqueStargifts:!!(flags&4),disallowPremiumGifts:!!(flags&8),}},
|
|
1424
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,}},
|
|
1425
1430
|
3929191601:function(r){return{_:'contacts.sponsoredPeersEmpty'}},
|
|
1426
1431
|
3942852740:function(r){return{_:'contacts.sponsoredPeers',peers:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1432
|
+
2950871097:function(r){return{_:'phoneCallDiscardReasonAllowGroupCall',encryptedKey:r.bytes(),}},
|
|
1427
1433
|
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,}},
|
|
1428
1434
|
4197492935:function(r){return{_:'emojiStatusUntil',documentId:r.long(),until:r.int(),}},
|
|
1429
1435
|
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,}},
|
|
1430
1436
|
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(),}},
|
|
1432
1437
|
_results:{
|
|
1433
1438
|
'contacts.getContactIDs':function(r){return r.vector(r.int)},
|
|
1434
1439
|
'messages.receivedQueue':function(r){return r.vector(r.long)},
|
package/binary/writer.js
CHANGED
|
@@ -165,6 +165,9 @@ var m={
|
|
|
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
167
|
'messageActionStarGiftUnique':function(w,v){w.uint(2900347777);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;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);},
|
|
168
|
+
'messageActionPaidMessagesRefunded':function(w,v){w.uint(2887720909);w.int(h(v,'count'));w.long(h(v,'stars'));},
|
|
169
|
+
'messageActionPaidMessagesPrice':function(w,v){w.uint(3168211993);w.long(h(v,'stars'));},
|
|
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);},
|
|
168
171
|
'dialog':function(w,v){w.uint(3582593222);var flags=0;var _pts=v.pts!==undefined;if(_pts)flags|=1;var _draft=v.draft!==undefined;if(_draft)flags|=2;if(v.pinned===true)flags|=4;if(v.unreadMark===true)flags|=8;var _folderId=v.folderId!==undefined;if(_folderId)flags|=16;var _ttlPeriod=v.ttlPeriod!==undefined;if(_ttlPeriod)flags|=32;if(v.viewForumAsMessages===true)flags|=64;w.uint(flags);w.object(h(v,'peer'));w.int(h(v,'topMessage'));w.int(h(v,'readInboxMaxId'));w.int(h(v,'readOutboxMaxId'));w.int(h(v,'unreadCount'));w.int(h(v,'unreadMentionsCount'));w.int(h(v,'unreadReactionsCount'));w.object(h(v,'notifySettings'));if(_pts)w.int(v.pts);if(_draft)w.object(v.draft);if(_folderId)w.int(v.folderId);if(_ttlPeriod)w.int(v.ttlPeriod);},
|
|
169
172
|
'dialogFolder':function(w,v){w.uint(1908216652);var flags=0;if(v.pinned===true)flags|=4;w.uint(flags);w.object(h(v,'folder'));w.object(h(v,'peer'));w.int(h(v,'topMessage'));w.int(h(v,'unreadMutedPeersCount'));w.int(h(v,'unreadUnmutedPeersCount'));w.int(h(v,'unreadMutedMessagesCount'));w.int(h(v,'unreadUnmutedMessagesCount'));},
|
|
170
173
|
'photoEmpty':function(w,v){w.uint(590459437);w.long(h(v,'id'));},
|
|
@@ -179,6 +182,7 @@ var m={
|
|
|
179
182
|
'geoPoint':function(w,v){w.uint(2997024355);var flags=0;var _accuracyRadius=v.accuracyRadius!==undefined;if(_accuracyRadius)flags|=1;w.uint(flags);w.double(h(v,'long'));w.double(h(v,'lat'));w.long(h(v,'accessHash'));if(_accuracyRadius)w.int(v.accuracyRadius);},
|
|
180
183
|
'auth.sentCode':function(w,v){w.uint(1577067778);var flags=0;var _nextType=v.nextType!==undefined;if(_nextType)flags|=2;var _timeout=v.timeout!==undefined;if(_timeout)flags|=4;w.uint(flags);w.object(h(v,'type'));w.string(h(v,'phoneCodeHash'));if(_nextType)w.object(v.nextType);if(_timeout)w.int(v.timeout);},
|
|
181
184
|
'auth.sentCodeSuccess':function(w,v){w.uint(596704836);w.object(h(v,'authorization'));},
|
|
185
|
+
'auth.sentCodePaymentRequired':function(w,v){w.uint(3620665728);w.string(h(v,'storeProduct'));w.string(h(v,'phoneCodeHash'));},
|
|
182
186
|
'auth.authorization':function(w,v){w.uint(782418132);var flags=0;var _tmpSessions=v.tmpSessions!==undefined;if(_tmpSessions)flags|=1;var _otherwiseReloginDays=v.otherwiseReloginDays!==undefined;var _flags_1=v.setupPasswordRequired===true||_otherwiseReloginDays;if(_flags_1)flags|=2;var _futureAuthToken=v.futureAuthToken!==undefined;if(_futureAuthToken)flags|=4;w.uint(flags);if(_flags_1)w.int(v.otherwiseReloginDays);if(_tmpSessions)w.int(v.tmpSessions);if(_futureAuthToken)w.bytes(v.futureAuthToken);w.object(h(v,'user'));},
|
|
183
187
|
'auth.authorizationSignUpRequired':function(w,v){w.uint(1148485274);var flags=0;var _termsOfService=v.termsOfService!==undefined;if(_termsOfService)flags|=1;w.uint(flags);if(_termsOfService)w.object(v.termsOfService);},
|
|
184
188
|
'auth.exportedAuthorization':function(w,v){w.uint(3023364792);w.long(h(v,'id'));w.bytes(h(v,'bytes'));},
|
|
@@ -380,6 +384,8 @@ var m={
|
|
|
380
384
|
'updateStarsRevenueStatus':function(w,v){w.uint(2776936473);w.object(h(v,'peer'));w.object(h(v,'status'));},
|
|
381
385
|
'updateBotPurchasedPaidMedia':function(w,v){w.uint(675009298);w.int53(h(v,'userId'));w.string(h(v,'payload'));w.int(h(v,'qts'));},
|
|
382
386
|
'updatePaidReactionPrivacy':function(w,v){w.uint(2339528654);w.object(h(v,'private'));},
|
|
387
|
+
'updateSentPhoneCode':function(w,v){w.uint(1347068303);w.object(h(v,'sentCode'));},
|
|
388
|
+
'updateGroupCallChainBlocks':function(w,v){w.uint(2759272591);w.object(h(v,'call'));w.int(h(v,'subChainId'));w.vector(w.bytes,h(v,'blocks'));w.int(h(v,'nextOffset'));},
|
|
383
389
|
'updates.state':function(w,v){w.uint(2775329342);w.int(h(v,'pts'));w.int(h(v,'qts'));w.int(h(v,'date'));w.int(h(v,'seq'));w.int(h(v,'unreadCount'));},
|
|
384
390
|
'updates.differenceEmpty':function(w,v){w.uint(1567990072);w.int(h(v,'date'));w.int(h(v,'seq'));},
|
|
385
391
|
'updates.difference':function(w,v){w.uint(16030880);w.vector(w.object,h(v,'newMessages'));w.vector(w.object,h(v,'newEncryptedMessages'));w.vector(w.object,h(v,'otherUpdates'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));w.object(h(v,'state'));},
|
|
@@ -752,7 +758,7 @@ var m={
|
|
|
752
758
|
'phoneCallDiscardReasonDisconnect':function(w){w.uint(3767910816);},
|
|
753
759
|
'phoneCallDiscardReasonHangup':function(w){w.uint(1471006352);},
|
|
754
760
|
'phoneCallDiscardReasonBusy':function(w){w.uint(4210550985);},
|
|
755
|
-
'
|
|
761
|
+
'phoneCallDiscardReasonMigrateConferenceCall':function(w,v){w.uint(2679894519);w.string(h(v,'slug'));},
|
|
756
762
|
'dataJSON':function(w,v){w.uint(2104790276);w.string(h(v,'data'));},
|
|
757
763
|
'labeledPrice':function(w,v){w.uint(3408489464);w.string(h(v,'label'));w.long(h(v,'amount'));},
|
|
758
764
|
'invoice':function(w,v){w.uint(77522308);var flags=0;if(v.test===true)flags|=1;if(v.nameRequested===true)flags|=2;if(v.phoneRequested===true)flags|=4;if(v.emailRequested===true)flags|=8;if(v.shippingAddressRequested===true)flags|=16;if(v.flexible===true)flags|=32;if(v.phoneToProvider===true)flags|=64;if(v.emailToProvider===true)flags|=128;var _maxTipAmount=v.maxTipAmount!==undefined;var _suggestedTipAmounts=v.suggestedTipAmounts&&v.suggestedTipAmounts.length;var _flags_8=_maxTipAmount||_suggestedTipAmounts;if(_flags_8)flags|=256;if(v.recurring===true)flags|=512;var _termsUrl=v.termsUrl!==undefined;if(_termsUrl)flags|=1024;var _subscriptionPeriod=v.subscriptionPeriod!==undefined;if(_subscriptionPeriod)flags|=2048;w.uint(flags);w.string(h(v,'currency'));w.vector(w.object,h(v,'prices'));if(_flags_8)w.long(v.maxTipAmount);if(_flags_8)w.vector(w.long,v.suggestedTipAmounts);if(_termsUrl)w.string(v.termsUrl);if(_subscriptionPeriod)w.int(v.subscriptionPeriod);},
|
|
@@ -785,11 +791,11 @@ var m={
|
|
|
785
791
|
'inputStickerSetItem':function(w,v){w.uint(853188252);var flags=0;var _maskCoords=v.maskCoords!==undefined;if(_maskCoords)flags|=1;var _keywords=v.keywords!==undefined;if(_keywords)flags|=2;w.uint(flags);w.object(h(v,'document'));w.string(h(v,'emoji'));if(_maskCoords)w.object(v.maskCoords);if(_keywords)w.string(v.keywords);},
|
|
786
792
|
'inputPhoneCall':function(w,v){w.uint(506920429);w.long(h(v,'id'));w.long(h(v,'accessHash'));},
|
|
787
793
|
'phoneCallEmpty':function(w,v){w.uint(1399245077);w.long(h(v,'id'));},
|
|
788
|
-
'phoneCallWaiting':function(w,v){w.uint(
|
|
789
|
-
'phoneCallRequested':function(w,v){w.uint(
|
|
790
|
-
'phoneCallAccepted':function(w,v){w.uint(
|
|
791
|
-
'phoneCall':function(w,v){w.uint(
|
|
792
|
-
'phoneCallDiscarded':function(w,v){w.uint(
|
|
794
|
+
'phoneCallWaiting':function(w,v){w.uint(3307368215);var flags=0;var _receiveDate=v.receiveDate!==undefined;if(_receiveDate)flags|=1;if(v.video===true)flags|=64;w.uint(flags);w.long(h(v,'id'));w.long(h(v,'accessHash'));w.int(h(v,'date'));w.int53(h(v,'adminId'));w.int53(h(v,'participantId'));w.object(h(v,'protocol'));if(_receiveDate)w.int(v.receiveDate);},
|
|
795
|
+
'phoneCallRequested':function(w,v){w.uint(347139340);var flags=0;if(v.video===true)flags|=64;w.uint(flags);w.long(h(v,'id'));w.long(h(v,'accessHash'));w.int(h(v,'date'));w.int53(h(v,'adminId'));w.int53(h(v,'participantId'));w.bytes(h(v,'gAHash'));w.object(h(v,'protocol'));},
|
|
796
|
+
'phoneCallAccepted':function(w,v){w.uint(912311057);var flags=0;if(v.video===true)flags|=64;w.uint(flags);w.long(h(v,'id'));w.long(h(v,'accessHash'));w.int(h(v,'date'));w.int53(h(v,'adminId'));w.int53(h(v,'participantId'));w.bytes(h(v,'gB'));w.object(h(v,'protocol'));},
|
|
797
|
+
'phoneCall':function(w,v){w.uint(810769141);var flags=0;if(v.p2pAllowed===true)flags|=32;if(v.video===true)flags|=64;var _customParameters=v.customParameters!==undefined;if(_customParameters)flags|=128;if(v.conferenceSupported===true)flags|=256;w.uint(flags);w.long(h(v,'id'));w.long(h(v,'accessHash'));w.int(h(v,'date'));w.int53(h(v,'adminId'));w.int53(h(v,'participantId'));w.bytes(h(v,'gAOrB'));w.long(h(v,'keyFingerprint'));w.object(h(v,'protocol'));w.vector(w.object,h(v,'connections'));w.int(h(v,'startDate'));if(_customParameters)w.object(v.customParameters);},
|
|
798
|
+
'phoneCallDiscarded':function(w,v){w.uint(1355435489);var flags=0;var _reason=v.reason!==undefined;if(_reason)flags|=1;var _duration=v.duration!==undefined;if(_duration)flags|=2;if(v.needRating===true)flags|=4;if(v.needDebug===true)flags|=8;if(v.video===true)flags|=64;w.uint(flags);w.long(h(v,'id'));if(_reason)w.object(v.reason);if(_duration)w.int(v.duration);},
|
|
793
799
|
'phoneConnection':function(w,v){w.uint(2629903303);var flags=0;if(v.tcp===true)flags|=1;w.uint(flags);w.long(h(v,'id'));w.string(h(v,'ip'));w.string(h(v,'ipv6'));w.int(h(v,'port'));w.bytes(h(v,'peerTag'));},
|
|
794
800
|
'phoneConnectionWebrtc':function(w,v){w.uint(1667228533);var flags=0;if(v.turn===true)flags|=1;if(v.stun===true)flags|=2;w.uint(flags);w.long(h(v,'id'));w.string(h(v,'ip'));w.string(h(v,'ipv6'));w.int(h(v,'port'));w.string(h(v,'username'));w.string(h(v,'password'));},
|
|
795
801
|
'phoneCallProtocol':function(w,v){w.uint(4236742600);var flags=0;if(v.udpP2p===true)flags|=1;if(v.udpReflector===true)flags|=2;w.uint(flags);w.int(h(v,'minLayer'));w.int(h(v,'maxLayer'));w.vector(w.string,h(v,'libraryVersions'));},
|
|
@@ -1045,8 +1051,10 @@ var m={
|
|
|
1045
1051
|
'peerBlocked':function(w,v){w.uint(3908927508);w.object(h(v,'peerId'));w.int(h(v,'date'));},
|
|
1046
1052
|
'stats.messageStats':function(w,v){w.uint(2145983508);w.object(h(v,'viewsGraph'));w.object(h(v,'reactionsByEmotionGraph'));},
|
|
1047
1053
|
'groupCallDiscarded':function(w,v){w.uint(2004925620);w.long(h(v,'id'));w.long(h(v,'accessHash'));w.int(h(v,'duration'));},
|
|
1048
|
-
'groupCall':function(w,v){w.uint(
|
|
1054
|
+
'groupCall':function(w,v){w.uint(1429932961);var flags=0;if(v.joinMuted===true)flags|=2;if(v.canChangeJoinMuted===true)flags|=4;var _title=v.title!==undefined;if(_title)flags|=8;var _streamDcId=v.streamDcId!==undefined;if(_streamDcId)flags|=16;var _recordStartDate=v.recordStartDate!==undefined;if(_recordStartDate)flags|=32;if(v.joinDateAsc===true)flags|=64;var _scheduleDate=v.scheduleDate!==undefined;if(_scheduleDate)flags|=128;if(v.scheduleStartSubscribed===true)flags|=256;if(v.canStartVideo===true)flags|=512;var _unmutedVideoCount=v.unmutedVideoCount!==undefined;if(_unmutedVideoCount)flags|=1024;if(v.recordVideoActive===true)flags|=2048;if(v.rtmpStream===true)flags|=4096;if(v.listenersHidden===true)flags|=8192;if(v.conference===true)flags|=16384;if(v.creator===true)flags|=32768;var _inviteLink=v.inviteLink!==undefined;if(_inviteLink)flags|=65536;w.uint(flags);w.long(h(v,'id'));w.long(h(v,'accessHash'));w.int(h(v,'participantsCount'));if(_title)w.string(v.title);if(_streamDcId)w.int(v.streamDcId);if(_recordStartDate)w.int(v.recordStartDate);if(_scheduleDate)w.int(v.scheduleDate);if(_unmutedVideoCount)w.int(v.unmutedVideoCount);w.int(h(v,'unmutedVideoLimit'));w.int(h(v,'version'));if(_inviteLink)w.string(v.inviteLink);},
|
|
1049
1055
|
'inputGroupCall':function(w,v){w.uint(3635053583);w.long(h(v,'id'));w.long(h(v,'accessHash'));},
|
|
1056
|
+
'inputGroupCallSlug':function(w,v){w.uint(4261839423);w.string(h(v,'slug'));},
|
|
1057
|
+
'inputGroupCallInviteMessage':function(w,v){w.uint(2349883455);w.int(h(v,'msgId'));},
|
|
1050
1058
|
'groupCallParticipant':function(w,v){w.uint(3953538814);var flags=0;if(v.muted===true)flags|=1;if(v.left===true)flags|=2;if(v.canSelfUnmute===true)flags|=4;var _activeDate=v.activeDate!==undefined;if(_activeDate)flags|=8;if(v.justJoined===true)flags|=16;if(v.versioned===true)flags|=32;var _video=v.video!==undefined;if(_video)flags|=64;var _volume=v.volume!==undefined;if(_volume)flags|=128;if(v.min===true)flags|=256;if(v.mutedByYou===true)flags|=512;if(v.volumeByAdmin===true)flags|=1024;var _about=v.about!==undefined;if(_about)flags|=2048;if(v.self===true)flags|=4096;var _raiseHandRating=v.raiseHandRating!==undefined;if(_raiseHandRating)flags|=8192;var _presentation=v.presentation!==undefined;if(_presentation)flags|=16384;if(v.videoJoined===true)flags|=32768;w.uint(flags);w.object(h(v,'peer'));w.int(h(v,'date'));if(_activeDate)w.int(v.activeDate);w.int(h(v,'source'));if(_volume)w.int(v.volume);if(_about)w.string(v.about);if(_raiseHandRating)w.long(v.raiseHandRating);if(_video)w.object(v.video);if(_presentation)w.object(v.presentation);},
|
|
1051
1059
|
'phone.groupCall':function(w,v){w.uint(2658302637);w.object(h(v,'call'));w.vector(w.object,h(v,'participants'));w.string(h(v,'participantsNextOffset'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1052
1060
|
'phone.groupParticipants':function(w,v){w.uint(4101460406);w.int(h(v,'count'));w.vector(w.object,h(v,'participants'));w.string(h(v,'nextOffset'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));w.int(h(v,'version'));},
|
|
@@ -1136,6 +1144,7 @@ var m={
|
|
|
1136
1144
|
'inputInvoiceStarGiftUpgrade':function(w,v){w.uint(1300335965);var flags=0;if(v.keepOriginalDetails===true)flags|=1;w.uint(flags);w.object(h(v,'stargift'));},
|
|
1137
1145
|
'inputInvoiceStarGiftTransfer':function(w,v){w.uint(1247763417);w.object(h(v,'stargift'));w.object(h(v,'toId'));},
|
|
1138
1146
|
'inputInvoicePremiumGiftStars':function(w,v){w.uint(3669668591);var flags=0;var _message=v.message!==undefined;if(_message)flags|=1;w.uint(flags);w.object(h(v,'userId'));w.int(h(v,'months'));if(_message)w.object(v.message);},
|
|
1147
|
+
'inputInvoiceBusinessBotTransferStars':function(w,v){w.uint(4103700034);w.object(h(v,'bot'));w.long(h(v,'stars'));},
|
|
1139
1148
|
'payments.exportedInvoice':function(w,v){w.uint(2932919257);w.string(h(v,'url'));},
|
|
1140
1149
|
'messages.transcribedAudio':function(w,v){w.uint(3485063511);var flags=0;if(v.pending===true)flags|=1;var _trialRemainsNum=v.trialRemainsNum!==undefined;var _trialRemainsUntilDate=v.trialRemainsUntilDate!==undefined;var _flags_1=_trialRemainsNum||_trialRemainsUntilDate;if(_flags_1)flags|=2;w.uint(flags);w.long(h(v,'transcriptionId'));w.string(h(v,'text'));if(_flags_1)w.int(v.trialRemainsNum);if(_flags_1)w.int(v.trialRemainsUntilDate);},
|
|
1141
1150
|
'help.premiumPromo':function(w,v){w.uint(1395946908);w.string(h(v,'statusText'));w.vector(w.object,h(v,'statusEntities'));w.vector(w.string,h(v,'videoSections'));w.vector(w.object,h(v,'videos'));w.vector(w.object,h(v,'periodOptions'));w.vector(w.object,h(v,'users'));},
|
|
@@ -1146,6 +1155,7 @@ var m={
|
|
|
1146
1155
|
'inputStorePaymentStarsTopup':function(w,v){w.uint(3722252118);w.long(h(v,'stars'));w.string(h(v,'currency'));w.long(h(v,'amount'));},
|
|
1147
1156
|
'inputStorePaymentStarsGift':function(w,v){w.uint(494149367);w.object(h(v,'userId'));w.long(h(v,'stars'));w.string(h(v,'currency'));w.long(h(v,'amount'));},
|
|
1148
1157
|
'inputStorePaymentStarsGiveaway':function(w,v){w.uint(1964968186);var flags=0;if(v.onlyNewSubscribers===true)flags|=1;var _additionalPeers=v.additionalPeers&&v.additionalPeers.length;if(_additionalPeers)flags|=2;var _countriesIso2=v.countriesIso2&&v.countriesIso2.length;if(_countriesIso2)flags|=4;if(v.winnersAreVisible===true)flags|=8;var _prizeDescription=v.prizeDescription!==undefined;if(_prizeDescription)flags|=16;w.uint(flags);w.long(h(v,'stars'));w.object(h(v,'boostPeer'));if(_additionalPeers)w.vector(w.object,v.additionalPeers);if(_countriesIso2)w.vector(w.string,v.countriesIso2);if(_prizeDescription)w.string(v.prizeDescription);w.long(h(v,'randomId'));w.int(h(v,'untilDate'));w.string(h(v,'currency'));w.long(h(v,'amount'));w.int(h(v,'users'));},
|
|
1158
|
+
'inputStorePaymentAuthCode':function(w,v){w.uint(2612159341);var flags=0;if(v.restore===true)flags|=1;w.uint(flags);w.string(h(v,'phoneNumber'));w.string(h(v,'phoneCodeHash'));w.string(h(v,'currency'));w.long(h(v,'amount'));},
|
|
1149
1159
|
'paymentFormMethod':function(w,v){w.uint(2298016283);w.string(h(v,'url'));w.string(h(v,'title'));},
|
|
1150
1160
|
'emojiStatusEmpty':function(w){w.uint(769727150);},
|
|
1151
1161
|
'emojiStatus':function(w,v){w.uint(3892250250);var flags=0;var _until=v.until!==undefined;if(_until)flags|=1;w.uint(flags);w.long(h(v,'documentId'));if(_until)w.int(v.until);},
|
|
@@ -1415,21 +1425,16 @@ var m={
|
|
|
1415
1425
|
'requirementToContactEmpty':function(w){w.uint(84580409);},
|
|
1416
1426
|
'requirementToContactPremium':function(w){w.uint(3850495209);},
|
|
1417
1427
|
'requirementToContactPaidMessages':function(w,v){w.uint(3036053139);w.long(h(v,'starsAmount'));},
|
|
1418
|
-
'messageActionPaidMessagesRefunded':function(w,v){w.uint(2887720909);w.int(h(v,'count'));w.long(h(v,'stars'));},
|
|
1419
|
-
'messageActionPaidMessagesPrice':function(w,v){w.uint(3168211993);w.long(h(v,'stars'));},
|
|
1420
|
-
'auth.sentCodePaymentRequired':function(w,v){w.uint(3620665728);w.string(h(v,'storeProduct'));w.string(h(v,'phoneCodeHash'));},
|
|
1421
|
-
'updateSentPhoneCode':function(w,v){w.uint(1347068303);w.object(h(v,'sentCode'));},
|
|
1422
|
-
'inputStorePaymentAuthCode':function(w,v){w.uint(2612159341);var flags=0;if(v.restore===true)flags|=1;w.uint(flags);w.string(h(v,'phoneNumber'));w.string(h(v,'phoneCodeHash'));w.string(h(v,'currency'));w.long(h(v,'amount'));},
|
|
1423
1428
|
'businessBotRights':function(w,v){w.uint(2690796791);var flags=0;if(v.reply===true)flags|=1;if(v.readMessages===true)flags|=2;if(v.deleteSentMessages===true)flags|=4;if(v.deleteReceivedMessages===true)flags|=8;if(v.editName===true)flags|=16;if(v.editBio===true)flags|=32;if(v.editProfilePhoto===true)flags|=64;if(v.editUsername===true)flags|=128;if(v.viewGifts===true)flags|=256;if(v.sellGifts===true)flags|=512;if(v.changeGiftSettings===true)flags|=1024;if(v.transferAndUpgradeGifts===true)flags|=2048;if(v.transferStars===true)flags|=4096;if(v.manageStories===true)flags|=8192;w.uint(flags);},
|
|
1424
1429
|
'disallowedGiftsSettings':function(w,v){w.uint(1911715524);var flags=0;if(v.disallowUnlimitedStargifts===true)flags|=1;if(v.disallowLimitedStargifts===true)flags|=2;if(v.disallowUniqueStargifts===true)flags|=4;if(v.disallowPremiumGifts===true)flags|=8;w.uint(flags);},
|
|
1425
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);},
|
|
1426
1431
|
'contacts.sponsoredPeersEmpty':function(w){w.uint(3929191601);},
|
|
1427
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
|
+
'phoneCallDiscardReasonAllowGroupCall':function(w,v){w.uint(2950871097);w.bytes(h(v,'encryptedKey'));},
|
|
1428
1434
|
'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);},
|
|
1429
1435
|
'emojiStatusUntil':function(w,v){w.uint(4197492935);w.long(h(v,'documentId'));w.int(h(v,'until'));},
|
|
1430
1436
|
'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);},
|
|
1431
1437
|
'payments.userStarGifts':function(w,v){w.uint(1801827607);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,'gifts'));if(_nextOffset)w.string(v.nextOffset);w.vector(w.object,h(v,'users'));},
|
|
1432
|
-
'inputInvoiceBusinessBotTransferStars':function(w,v){w.uint(4103700034);w.object(h(v,'bot'));w.long(h(v,'stars'));},
|
|
1433
1438
|
'test.useConfigSimple':function(w){w.uint(4189565501);},
|
|
1434
1439
|
'test.parseInputAppEvent':function(w){w.uint(3138226161);},
|
|
1435
1440
|
'invokeWithBusinessConnectionPrefix':function(w,v){w.uint(3710427022);w.string(h(v,'connectionId'));},
|
|
@@ -1615,6 +1620,7 @@ var m={
|
|
|
1615
1620
|
'contacts.editCloseFriends':function(w,v){w.uint(3127313904);w.vector(w.int53,h(v,'id'));},
|
|
1616
1621
|
'contacts.setBlocked':function(w,v){w.uint(2496027766);var flags=0;if(v.myStoriesFrom===true)flags|=1;w.uint(flags);w.vector(w.object,h(v,'id'));w.int(h(v,'limit'));},
|
|
1617
1622
|
'contacts.getBirthdays':function(w){w.uint(3673008228);},
|
|
1623
|
+
'contacts.getSponsoredPeers':function(w,v){w.uint(3066610579);w.string(h(v,'q'));},
|
|
1618
1624
|
'messages.getMessages':function(w,v){w.uint(1673946374);w.vector(w.object,h(v,'id'));},
|
|
1619
1625
|
'messages.getDialogs':function(w,v){w.uint(2700397391);var flags=0;if(v.excludePinned===true)flags|=1;var _folderId=v.folderId!==undefined;if(_folderId)flags|=2;w.uint(flags);if(_folderId)w.int(v.folderId);w.int(h(v,'offsetDate'));w.int(h(v,'offsetId'));w.object(h(v,'offsetPeer'));w.int(h(v,'limit'));w.long(h(v,'hash'));},
|
|
1620
1626
|
'messages.getHistory':function(w,v){w.uint(1143203525);w.object(h(v,'peer'));w.int(h(v,'offsetId'));w.int(h(v,'offsetDate'));w.int(h(v,'addOffset'));w.int(h(v,'limit'));w.int(h(v,'maxId'));w.int(h(v,'minId'));w.long(h(v,'hash'));},
|
|
@@ -1983,7 +1989,6 @@ var m={
|
|
|
1983
1989
|
'payments.exportInvoice':function(w,v){w.uint(261206117);w.object(h(v,'invoiceMedia'));},
|
|
1984
1990
|
'payments.assignAppStoreTransaction':function(w,v){w.uint(2163045501);w.bytes(h(v,'receipt'));w.object(h(v,'purpose'));},
|
|
1985
1991
|
'payments.assignPlayMarketTransaction':function(w,v){w.uint(3757920467);w.object(h(v,'receipt'));w.object(h(v,'purpose'));},
|
|
1986
|
-
'payments.canPurchasePremium':function(w,v){w.uint(2680266422);w.object(h(v,'purpose'));},
|
|
1987
1992
|
'payments.getPremiumGiftCodeOptions':function(w,v){w.uint(660060756);var flags=0;var _boostPeer=v.boostPeer!==undefined;if(_boostPeer)flags|=1;w.uint(flags);if(_boostPeer)w.object(v.boostPeer);},
|
|
1988
1993
|
'payments.checkGiftCode':function(w,v){w.uint(2387719361);w.string(h(v,'slug'));},
|
|
1989
1994
|
'payments.applyGiftCode':function(w,v){w.uint(4142032980);w.string(h(v,'slug'));},
|
|
@@ -2021,6 +2026,7 @@ var m={
|
|
|
2021
2026
|
'payments.getStarGiftWithdrawalUrl':function(w,v){w.uint(3496907688);w.object(h(v,'stargift'));w.object(h(v,'password'));},
|
|
2022
2027
|
'payments.toggleChatStarGiftNotifications':function(w,v){w.uint(1626009505);var flags=0;if(v.enabled===true)flags|=1;w.uint(flags);w.object(h(v,'peer'));},
|
|
2023
2028
|
'payments.toggleStarGiftsPinnedToTop':function(w,v){w.uint(353626032);w.object(h(v,'peer'));w.vector(w.object,h(v,'stargift'));},
|
|
2029
|
+
'payments.canPurchaseStore':function(w,v){w.uint(1339842215);w.object(h(v,'purpose'));},
|
|
2024
2030
|
'stickers.createStickerSet':function(w,v){w.uint(2418125671);var flags=0;if(v.masks===true)flags|=1;var _thumb=v.thumb!==undefined;if(_thumb)flags|=4;var _software=v.software!==undefined;if(_software)flags|=8;if(v.emojis===true)flags|=32;if(v.textColor===true)flags|=64;w.uint(flags);w.object(h(v,'userId'));w.string(h(v,'title'));w.string(h(v,'shortName'));if(_thumb)w.object(v.thumb);w.vector(w.object,h(v,'stickers'));if(_software)w.string(v.software);},
|
|
2025
2031
|
'stickers.removeStickerFromSet':function(w,v){w.uint(4151709521);w.object(h(v,'sticker'));},
|
|
2026
2032
|
'stickers.changeStickerPosition':function(w,v){w.uint(4290172106);w.object(h(v,'sticker'));w.int(h(v,'position'));},
|
|
@@ -2033,7 +2039,7 @@ var m={
|
|
|
2033
2039
|
'stickers.deleteStickerSet':function(w,v){w.uint(2272281492);w.object(h(v,'stickerset'));},
|
|
2034
2040
|
'stickers.replaceSticker':function(w,v){w.uint(1184253338);w.object(h(v,'sticker'));w.object(h(v,'newSticker'));},
|
|
2035
2041
|
'phone.getCallConfig':function(w){w.uint(1430593449);},
|
|
2036
|
-
'phone.requestCall':function(w,v){w.uint(
|
|
2042
|
+
'phone.requestCall':function(w,v){w.uint(1124046573);var flags=0;if(v.video===true)flags|=1;w.uint(flags);w.object(h(v,'userId'));w.int(h(v,'randomId'));w.bytes(h(v,'gAHash'));w.object(h(v,'protocol'));},
|
|
2037
2043
|
'phone.acceptCall':function(w,v){w.uint(1003664544);w.object(h(v,'peer'));w.bytes(h(v,'gB'));w.object(h(v,'protocol'));},
|
|
2038
2044
|
'phone.confirmCall':function(w,v){w.uint(788404002);w.object(h(v,'peer'));w.bytes(h(v,'gA'));w.long(h(v,'keyFingerprint'));w.object(h(v,'protocol'));},
|
|
2039
2045
|
'phone.receivedCall':function(w,v){w.uint(399855457);w.object(h(v,'peer'));},
|
|
@@ -2042,7 +2048,7 @@ var m={
|
|
|
2042
2048
|
'phone.saveCallDebug':function(w,v){w.uint(662363518);w.object(h(v,'peer'));w.object(h(v,'debug'));},
|
|
2043
2049
|
'phone.sendSignalingData':function(w,v){w.uint(4286223235);w.object(h(v,'peer'));w.bytes(h(v,'data'));},
|
|
2044
2050
|
'phone.createGroupCall':function(w,v){w.uint(1221445336);var flags=0;var _title=v.title!==undefined;if(_title)flags|=1;var _scheduleDate=v.scheduleDate!==undefined;if(_scheduleDate)flags|=2;if(v.rtmpStream===true)flags|=4;w.uint(flags);w.object(h(v,'peer'));w.int(h(v,'randomId'));if(_title)w.string(v.title);if(_scheduleDate)w.int(v.scheduleDate);},
|
|
2045
|
-
'phone.joinGroupCall':function(w,v){w.uint(
|
|
2051
|
+
'phone.joinGroupCall':function(w,v){w.uint(2411016279);var flags=0;if(v.muted===true)flags|=1;var _inviteHash=v.inviteHash!==undefined;if(_inviteHash)flags|=2;if(v.videoStopped===true)flags|=4;var _publicKey=v.publicKey!==undefined;var _block=v.block!==undefined;var _flags_3=_publicKey||_block;if(_flags_3)flags|=8;w.uint(flags);w.object(h(v,'call'));w.object(h(v,'joinAs'));if(_inviteHash)w.string(v.inviteHash);if(_flags_3)w.int256(v.publicKey);if(_flags_3)w.bytes(v.block);w.object(h(v,'params'));},
|
|
2046
2052
|
'phone.leaveGroupCall':function(w,v){w.uint(1342404601);w.object(h(v,'call'));w.int(h(v,'source'));},
|
|
2047
2053
|
'phone.inviteToGroupCall':function(w,v){w.uint(2067345760);w.object(h(v,'call'));w.vector(w.object,h(v,'users'));},
|
|
2048
2054
|
'phone.discardGroupCall':function(w,v){w.uint(2054648117);w.object(h(v,'call'));},
|
|
@@ -2063,7 +2069,12 @@ var m={
|
|
|
2063
2069
|
'phone.getGroupCallStreamChannels':function(w,v){w.uint(447879488);w.object(h(v,'call'));},
|
|
2064
2070
|
'phone.getGroupCallStreamRtmpUrl':function(w,v){w.uint(3736316863);w.object(h(v,'peer'));w.boolean(h(v,'revoke'));},
|
|
2065
2071
|
'phone.saveCallLog':function(w,v){w.uint(1092913030);w.object(h(v,'peer'));w.object(h(v,'file'));},
|
|
2066
|
-
'phone.createConferenceCall':function(w,v){w.uint(
|
|
2072
|
+
'phone.createConferenceCall':function(w,v){w.uint(2097431739);var flags=0;if(v.muted===true)flags|=1;if(v.videoStopped===true)flags|=4;var _publicKey=v.publicKey!==undefined;var _block=v.block!==undefined;var _params=v.params!==undefined;var _flags_3=v.join===true||_publicKey||_block||_params;if(_flags_3)flags|=8;w.uint(flags);w.int(h(v,'randomId'));if(_flags_3)w.int256(v.publicKey);if(_flags_3)w.bytes(v.block);if(_flags_3)w.object(v.params);},
|
|
2073
|
+
'phone.deleteConferenceCallParticipants':function(w,v){w.uint(2359690533);var flags=0;if(v.onlyLeft===true)flags|=1;if(v.kick===true)flags|=2;w.uint(flags);w.object(h(v,'call'));w.vector(w.long,h(v,'ids'));w.bytes(h(v,'block'));},
|
|
2074
|
+
'phone.sendConferenceCallBroadcast':function(w,v){w.uint(3329235200);w.object(h(v,'call'));w.bytes(h(v,'block'));},
|
|
2075
|
+
'phone.inviteConferenceCallParticipant':function(w,v){w.uint(3169986181);var flags=0;if(v.video===true)flags|=1;w.uint(flags);w.object(h(v,'call'));w.object(h(v,'userId'));},
|
|
2076
|
+
'phone.declineConferenceCallInvite':function(w,v){w.uint(1011325297);w.int(h(v,'msgId'));},
|
|
2077
|
+
'phone.getGroupCallChainBlocks':function(w,v){w.uint(4003432614);w.object(h(v,'call'));w.int(h(v,'subChainId'));w.int(h(v,'offset'));w.int(h(v,'limit'));},
|
|
2067
2078
|
'langpack.getLangPack':function(w,v){w.uint(4075959050);w.string(h(v,'langPack'));w.string(h(v,'langCode'));},
|
|
2068
2079
|
'langpack.getStrings':function(w,v){w.uint(4025104387);w.string(h(v,'langPack'));w.string(h(v,'langCode'));w.vector(w.string,h(v,'keys'));},
|
|
2069
2080
|
'langpack.getDifference':function(w,v){w.uint(3449309861);w.string(h(v,'langPack'));w.string(h(v,'langCode'));w.int(h(v,'fromVersion'));},
|
|
@@ -2130,9 +2141,8 @@ var m={
|
|
|
2130
2141
|
'smsjobs.getSmsJob':function(w,v){w.uint(2005766191);w.string(h(v,'jobId'));},
|
|
2131
2142
|
'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);},
|
|
2132
2143
|
'fragment.getCollectibleInfo':function(w,v){w.uint(3189671354);w.object(h(v,'collectible'));},
|
|
2133
|
-
'contacts.getSponsoredPeers':function(w,v){w.uint(3066610579);w.string(h(v,'q'));},
|
|
2134
|
-
'payments.canPurchaseStore':function(w,v){w.uint(1339842215);w.object(h(v,'purpose'));},
|
|
2135
2144
|
'users.getIsPremiumRequiredToContact':function(w,v){w.uint(2787289616);w.vector(w.object,h(v,'id'));},
|
|
2145
|
+
'payments.canPurchasePremium':function(w,v){w.uint(2680266422);w.object(h(v,'purpose'));},
|
|
2136
2146
|
'payments.getUserStarGifts':function(w,v){w.uint(1584580577);w.object(h(v,'userId'));w.string(h(v,'offset'));w.int(h(v,'limit'));},
|
|
2137
2147
|
'mtcute.customMethod':function(w,v){w.raw(h(v,'bytes'));},
|
|
2138
2148
|
'mt_resPQ':function(w,v){w.uint(85337187);w.int128(h(v,'nonce'));w.int128(h(v,'serverNonce'));w.bytes(h(v,'pq'));w.vector(w.long,h(v,'serverPublicKeyFingerprints'));},
|
|
@@ -2239,6 +2249,8 @@ _staticSize:{
|
|
|
2239
2249
|
'messageActionChatJoinedByRequest':4,
|
|
2240
2250
|
'messageActionGiveawayResults':16,
|
|
2241
2251
|
'messageActionBoostApply':8,
|
|
2252
|
+
'messageActionPaidMessagesRefunded':16,
|
|
2253
|
+
'messageActionPaidMessagesPrice':12,
|
|
2242
2254
|
'photoEmpty':12,
|
|
2243
2255
|
'geoPointEmpty':4,
|
|
2244
2256
|
'inputNotifyUsers':4,
|
|
@@ -2572,6 +2584,7 @@ _staticSize:{
|
|
|
2572
2584
|
'peerBlocked':20,
|
|
2573
2585
|
'groupCallDiscarded':24,
|
|
2574
2586
|
'inputGroupCall':20,
|
|
2587
|
+
'inputGroupCallInviteMessage':8,
|
|
2575
2588
|
'inlineQueryPeerTypeSameBotPM':4,
|
|
2576
2589
|
'inlineQueryPeerTypePM':4,
|
|
2577
2590
|
'inlineQueryPeerTypeChat':4,
|
|
@@ -2673,8 +2686,6 @@ _staticSize:{
|
|
|
2673
2686
|
'requirementToContactEmpty':4,
|
|
2674
2687
|
'requirementToContactPremium':4,
|
|
2675
2688
|
'requirementToContactPaidMessages':12,
|
|
2676
|
-
'messageActionPaidMessagesRefunded':16,
|
|
2677
|
-
'messageActionPaidMessagesPrice':12,
|
|
2678
2689
|
'businessBotRights':8,
|
|
2679
2690
|
'disallowedGiftsSettings':8,
|
|
2680
2691
|
'contacts.sponsoredPeersEmpty':4,
|
|
@@ -2819,15 +2830,7 @@ _staticSize:{
|
|
|
2819
2830
|
'payments.getStarGiftUpgradePreview':12,
|
|
2820
2831
|
'phone.getCallConfig':4,
|
|
2821
2832
|
'phone.receivedCall':24,
|
|
2822
|
-
'phone.
|
|
2823
|
-
'phone.discardGroupCall':24,
|
|
2824
|
-
'phone.getGroupCall':28,
|
|
2825
|
-
'phone.exportGroupCallInvite':28,
|
|
2826
|
-
'phone.toggleGroupCallStartSubscription':28,
|
|
2827
|
-
'phone.startScheduledGroupCall':24,
|
|
2828
|
-
'phone.leaveGroupCallPresentation':24,
|
|
2829
|
-
'phone.getGroupCallStreamChannels':24,
|
|
2830
|
-
'phone.createConferenceCall':32,
|
|
2833
|
+
'phone.declineConferenceCallInvite':8,
|
|
2831
2834
|
'chatlists.getExportedInvites':12,
|
|
2832
2835
|
'chatlists.getChatlistUpdates':12,
|
|
2833
2836
|
'chatlists.hideChatlistUpdates':12,
|
|
@@ -2869,14 +2872,11 @@ _staticSize:{
|
|
|
2869
2872
|
'mt_ping_delay_disconnect':16,
|
|
2870
2873
|
'mt_destroy_session':12,
|
|
2871
2874
|
'mt_destroy_auth_key':4,
|
|
2872
|
-
'messageActionGroupCallScheduled':28,
|
|
2873
2875
|
'updateChatDefaultBannedRights':32,
|
|
2874
2876
|
'updateBroadcastRevenueTransactions':48,
|
|
2875
2877
|
'updateStarsBalance':20,
|
|
2876
2878
|
'channelParticipantBanned':44,
|
|
2877
2879
|
'channelAdminLogEventActionDefaultBannedRights':28,
|
|
2878
|
-
'channelAdminLogEventActionStartGroupCall':24,
|
|
2879
|
-
'channelAdminLogEventActionDiscardGroupCall':24,
|
|
2880
2880
|
},
|
|
2881
2881
|
}
|
|
2882
2882
|
exports.__tlWriterMap = m;
|