@mtcute/tl 200.0.0 → 201.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api-schema.json +1 -1
- package/binary/reader.js +16 -5
- package/binary/writer.js +27 -13
- package/compat/index.d.ts +60 -1
- package/compat/reader.js +1 -0
- package/index.d.ts +125 -104
- package/index.js +6 -2
- package/package.json +1 -1
package/binary/reader.js
CHANGED
|
@@ -201,7 +201,7 @@ var m={
|
|
|
201
201
|
4124956391:function(r){return{_:'inputReportReasonFake'}},
|
|
202
202
|
177124030:function(r){return{_:'inputReportReasonIllegalDrugs'}},
|
|
203
203
|
2663876157:function(r){return{_:'inputReportReasonPersonalDetails'}},
|
|
204
|
-
|
|
204
|
+
2582085701:function(r){var flags=r.uint(),flags2=r.uint();return{_:'userFull',blocked:!!(flags&1),phoneCallsAvailable:!!(flags&16),phoneCallsPrivate:!!(flags&32),canPinMessage:!!(flags&128),hasScheduled:!!(flags&4096),videoCallsAvailable:!!(flags&8192),voiceMessagesForbidden:!!(flags&1048576),translationsDisabled:!!(flags&8388608),storiesPinnedAvailable:!!(flags&67108864),blockedMyStoriesFrom:!!(flags&134217728),wallpaperOverridden:!!(flags&268435456),contactRequirePremium:!!(flags&536870912),readDatesPrivate:!!(flags&1073741824),sponsoredEnabled:!!(flags2&128),canViewRevenue:!!(flags2&512),botCanManageEmojiStatus:!!(flags2&1024),displayGiftsButton:!!(flags2&65536),id:r.int53(),about:flags&2?r.string():void 0,settings:r.object(),personalPhoto:flags&2097152?r.object():void 0,profilePhoto:flags&4?r.object():void 0,fallbackPhoto:flags&4194304?r.object():void 0,notifySettings:r.object(),botInfo:flags&8?r.object():void 0,pinnedMsgId:flags&64?r.int():void 0,commonChatsCount:r.int(),folderId:flags&2048?r.int():void 0,ttlPeriod:flags&16384?r.int():void 0,themeEmoticon:flags&32768?r.string():void 0,privateForwardName:flags&65536?r.string():void 0,botGroupAdminRights:flags&131072?r.object():void 0,botBroadcastAdminRights:flags&262144?r.object():void 0,wallpaper:flags&16777216?r.object():void 0,stories:flags&33554432?r.object():void 0,businessWorkHours:flags2&1?r.object():void 0,businessLocation:flags2&2?r.object():void 0,businessGreetingMessage:flags2&4?r.object():void 0,businessAwayMessage:flags2&8?r.object():void 0,businessIntro:flags2&16?r.object():void 0,birthday:flags2&32?r.object():void 0,personalChannelId:flags2&64?r.int53():void 0,personalChannelMessage:flags2&64?r.int():void 0,stargiftsCount:flags2&256?r.int():void 0,starrefProgram:flags2&2048?r.object():void 0,botVerification:flags2&4096?r.object():void 0,sendPaidMessagesStars:flags2&16384?r.long():void 0,disallowedGifts:flags2&32768?r.object():void 0,}},
|
|
205
205
|
341499403:function(r){return{_:'contact',userId:r.int53(),mutual:r.boolean(),}},
|
|
206
206
|
3242081360:function(r){return{_:'importedContact',userId:r.int53(),clientId:r.long(),}},
|
|
207
207
|
383348795:function(r){return{_:'contactStatus',userId:r.int53(),status:r.object(),}},
|
|
@@ -1030,7 +1030,7 @@ var m={
|
|
|
1030
1030
|
3612888199:function(r){return{_:'statsGroupTopAdmin',userId:r.int53(),deleted:r.int(),kicked:r.int(),banned:r.int(),}},
|
|
1031
1031
|
1398765469:function(r){return{_:'statsGroupTopInviter',userId:r.int53(),invitations:r.int(),}},
|
|
1032
1032
|
4018141462:function(r){return{_:'stats.megagroupStats',period:r.object(),members:r.object(),messages:r.object(),viewers:r.object(),posters:r.object(),growthGraph:r.object(),membersGraph:r.object(),newMembersBySourceGraph:r.object(),languagesGraph:r.object(),messagesGraph:r.object(),actionsGraph:r.object(),topHoursGraph:r.object(),weekdaysGraph:r.object(),topPosters:r.vector(r.object),topAdmins:r.vector(r.object),topInviters:r.vector(r.object),users:r.vector(r.object),}},
|
|
1033
|
-
|
|
1033
|
+
4265718607:function(r){var flags=r.uint();return{_:'globalPrivacySettings',archiveAndMuteNewNoncontactPeers:!!(flags&1),keepArchivedUnmuted:!!(flags&2),keepArchivedFolders:!!(flags&4),hideReadMarks:!!(flags&8),newNoncontactPeersRequirePremium:!!(flags&16),displayGiftsButton:!!(flags&128),noncontactPeersPaidStars:flags&32?r.long():void 0,disallowedGifts:flags&64?r.object():void 0,}},
|
|
1034
1034
|
1107543535:function(r){var flags=r.uint();return{_:'help.countryCode',countryCode:r.string(),prefixes:flags&1?r.vector(r.string):void 0,patterns:flags&2?r.vector(r.string):void 0,}},
|
|
1035
1035
|
3280440867:function(r){var flags=r.uint();return{_:'help.country',hidden:!!(flags&1),iso2:r.string(),defaultName:r.string(),name:flags&2?r.string():void 0,countryCodes:r.vector(r.object),}},
|
|
1036
1036
|
2479628082:function(r){return{_:'help.countriesListNotModified'}},
|
|
@@ -1303,11 +1303,11 @@ var m={
|
|
|
1303
1303
|
18418929:function(r){return{_:'inputQuickReplyShortcutId',shortcutId:r.int(),}},
|
|
1304
1304
|
3331155605:function(r){return{_:'messages.quickReplies',quickReplies:r.vector(r.object),messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1305
1305
|
1603398491:function(r){return{_:'messages.quickRepliesNotModified'}},
|
|
1306
|
-
|
|
1306
|
+
3445908332:function(r){var flags=r.uint();return{_:'connectedBot',botId:r.int53(),recipients:r.object(),rights:r.object(),}},
|
|
1307
1307
|
400029819:function(r){return{_:'account.connectedBots',connectedBots:r.vector(r.object),users:r.vector(r.object),}},
|
|
1308
1308
|
718878489:function(r){var flags=r.uint();return{_:'messages.dialogFilters',tagsEnabled:!!(flags&1),filters:r.vector(r.object),}},
|
|
1309
1309
|
1821253126:function(r){var flags=r.uint();return{_:'birthday',day:r.int(),month:r.int(),year:flags&1?r.int():void 0,}},
|
|
1310
|
-
|
|
1310
|
+
2402595573:function(r){var flags=r.uint();return{_:'botBusinessConnection',disabled:!!(flags&2),connectionId:r.string(),userId:r.int53(),dcId:r.int(),date:r.int(),rights:flags&4?r.object():void 0,}},
|
|
1311
1311
|
163867085:function(r){var flags=r.uint();return{_:'inputBusinessIntro',title:r.string(),description:r.string(),sticker:flags&1?r.object():void 0,}},
|
|
1312
1312
|
1510606445:function(r){var flags=r.uint();return{_:'businessIntro',title:r.string(),description:r.string(),sticker:flags&1?r.object():void 0,}},
|
|
1313
1313
|
4211040925:function(r){return{_:'messages.myStickers',count:r.int(),sets:r.vector(r.object),}},
|
|
@@ -1354,7 +1354,7 @@ var m={
|
|
|
1354
1354
|
1617438738:function(r){return{_:'starsTransactionPeerAds'}},
|
|
1355
1355
|
4184308397:function(r){return{_:'starsTransactionPeerAPI'}},
|
|
1356
1356
|
198776256:function(r){var flags=r.uint();return{_:'starsTopupOption',extended:!!(flags&2),stars:r.long(),storeProduct:flags&1?r.string():void 0,currency:r.string(),amount:r.long(),}},
|
|
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,}},
|
|
1357
|
+
2745162058:function(r){var flags=r.uint();return{_:'starsTransaction',refund:!!(flags&8),pending:!!(flags&16),failed:!!(flags&64),gift:!!(flags&1024),reaction:!!(flags&2048),stargiftUpgrade:!!(flags&262144),id:r.string(),stars:r.object(),date:r.int(),peer:r.object(),title:flags&1?r.string():void 0,description:flags&2?r.string():void 0,photo:flags&4?r.object():void 0,transactionDate:flags&32?r.int():void 0,transactionUrl:flags&32?r.string():void 0,botPayload:flags&128?r.bytes():void 0,msgId:flags&256?r.int():void 0,extendedMedia:flags&512?r.vector(r.object):void 0,subscriptionPeriod:flags&4096?r.int():void 0,giveawayPostId:flags&8192?r.int():void 0,stargift:flags&16384?r.object():void 0,floodskipNumber:flags&32768?r.int():void 0,starrefCommissionPermille:flags&65536?r.int():void 0,starrefPeer:flags&131072?r.object():void 0,starrefAmount:flags&131072?r.object():void 0,paidMessages:flags&524288?r.int():void 0,premiumGiftMonths:flags&1048576?r.int():void 0,businessTransfer:!!(flags&2097152),}},
|
|
1358
1358
|
1822222573:function(r){var flags=r.uint();return{_:'payments.starsStatus',balance:r.object(),subscriptions:flags&2?r.vector(r.object):void 0,subscriptionsNextOffset:flags&4?r.string():void 0,subscriptionsMissingBalance:flags&16?r.long():void 0,history:flags&8?r.vector(r.object):void 0,nextOffset:flags&1?r.string():void 0,chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1359
1359
|
3900361664:function(r){return{_:'foundStory',peer:r.object(),story:r.object(),}},
|
|
1360
1360
|
3806230327:function(r){var flags=r.uint();return{_:'stories.foundStories',count:r.int(),stories:r.vector(r.object),nextOffset:flags&1?r.string():void 0,chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
@@ -1414,10 +1414,21 @@ var m={
|
|
|
1414
1414
|
84580409:function(r){return{_:'requirementToContactEmpty'}},
|
|
1415
1415
|
3850495209:function(r){return{_:'requirementToContactPremium'}},
|
|
1416
1416
|
3036053139:function(r){return{_:'requirementToContactPaidMessages',starsAmount:r.long(),}},
|
|
1417
|
+
2887720909:function(r){return{_:'messageActionPaidMessagesRefunded',count:r.int(),stars:r.long(),}},
|
|
1418
|
+
3168211993:function(r){return{_:'messageActionPaidMessagesPrice',stars:r.long(),}},
|
|
1419
|
+
3620665728:function(r){return{_:'auth.sentCodePaymentRequired',storeProduct:r.string(),phoneCodeHash:r.string(),}},
|
|
1420
|
+
1347068303:function(r){return{_:'updateSentPhoneCode',sentCode:r.object(),}},
|
|
1421
|
+
2612159341:function(r){var flags=r.uint();return{_:'inputStorePaymentAuthCode',restore:!!(flags&1),phoneNumber:r.string(),phoneCodeHash:r.string(),currency:r.string(),amount:r.long(),}},
|
|
1422
|
+
2690796791:function(r){var flags=r.uint();return{_:'businessBotRights',reply:!!(flags&1),readMessages:!!(flags&2),deleteSentMessages:!!(flags&4),deleteReceivedMessages:!!(flags&8),editName:!!(flags&16),editBio:!!(flags&32),editProfilePhoto:!!(flags&64),editUsername:!!(flags&128),viewGifts:!!(flags&256),sellGifts:!!(flags&512),changeGiftSettings:!!(flags&1024),transferAndUpgradeGifts:!!(flags&2048),transferStars:!!(flags&4096),manageStories:!!(flags&8192),}},
|
|
1423
|
+
1911715524:function(r){var flags=r.uint();return{_:'disallowedGiftsSettings',disallowUnlimitedStargifts:!!(flags&1),disallowLimitedStargifts:!!(flags&2),disallowUniqueStargifts:!!(flags&4),disallowPremiumGifts:!!(flags&8),}},
|
|
1424
|
+
3331786963:function(r){var flags=r.uint();return{_:'sponsoredPeer',randomId:r.bytes(),peer:r.object(),sponsorInfo:flags&1?r.string():void 0,additionalInfo:flags&2?r.string():void 0,}},
|
|
1425
|
+
3929191601:function(r){return{_:'contacts.sponsoredPeersEmpty'}},
|
|
1426
|
+
3942852740:function(r){return{_:'contacts.sponsoredPeers',peers:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1417
1427
|
1958953753:function(r){var flags=r.uint();return{_:'premiumGiftOption',months:r.int(),currency:r.string(),amount:r.long(),botUrl:r.string(),storeProduct:flags&1?r.string():void 0,}},
|
|
1418
1428
|
4197492935:function(r){return{_:'emojiStatusUntil',documentId:r.long(),until:r.int(),}},
|
|
1419
1429
|
4003764846:function(r){var flags=r.uint();return{_:'userStarGift',nameHidden:!!(flags&1),unsaved:!!(flags&32),fromId:flags&2?r.int53():void 0,date:r.int(),gift:r.object(),message:flags&4?r.object():void 0,msgId:flags&8?r.int():void 0,convertStars:flags&16?r.long():void 0,}},
|
|
1420
1430
|
1801827607:function(r){var flags=r.uint();return{_:'payments.userStarGifts',count:r.int(),gifts:r.vector(r.object),nextOffset:flags&1?r.string():void 0,users:r.vector(r.object),}},
|
|
1431
|
+
4103700034:function(r){return{_:'inputInvoiceBusinessBotTransferStars',bot:r.object(),stars:r.long(),}},
|
|
1421
1432
|
_results:{
|
|
1422
1433
|
'contacts.getContactIDs':function(r){return r.vector(r.int)},
|
|
1423
1434
|
'messages.receivedQueue':function(r){return r.vector(r.long)},
|
package/binary/writer.js
CHANGED
|
@@ -202,7 +202,7 @@ var m={
|
|
|
202
202
|
'inputReportReasonFake':function(w){w.uint(4124956391);},
|
|
203
203
|
'inputReportReasonIllegalDrugs':function(w){w.uint(177124030);},
|
|
204
204
|
'inputReportReasonPersonalDetails':function(w){w.uint(2663876157);},
|
|
205
|
-
'userFull':function(w,v){w.uint(
|
|
205
|
+
'userFull':function(w,v){w.uint(2582085701);var flags=0;if(v.blocked===true)flags|=1;var _about=v.about!==undefined;if(_about)flags|=2;var _profilePhoto=v.profilePhoto!==undefined;if(_profilePhoto)flags|=4;var _botInfo=v.botInfo!==undefined;if(_botInfo)flags|=8;if(v.phoneCallsAvailable===true)flags|=16;if(v.phoneCallsPrivate===true)flags|=32;var _pinnedMsgId=v.pinnedMsgId!==undefined;if(_pinnedMsgId)flags|=64;if(v.canPinMessage===true)flags|=128;var _folderId=v.folderId!==undefined;if(_folderId)flags|=2048;if(v.hasScheduled===true)flags|=4096;if(v.videoCallsAvailable===true)flags|=8192;var _ttlPeriod=v.ttlPeriod!==undefined;if(_ttlPeriod)flags|=16384;var _themeEmoticon=v.themeEmoticon!==undefined;if(_themeEmoticon)flags|=32768;var _privateForwardName=v.privateForwardName!==undefined;if(_privateForwardName)flags|=65536;var _botGroupAdminRights=v.botGroupAdminRights!==undefined;if(_botGroupAdminRights)flags|=131072;var _botBroadcastAdminRights=v.botBroadcastAdminRights!==undefined;if(_botBroadcastAdminRights)flags|=262144;if(v.voiceMessagesForbidden===true)flags|=1048576;var _personalPhoto=v.personalPhoto!==undefined;if(_personalPhoto)flags|=2097152;var _fallbackPhoto=v.fallbackPhoto!==undefined;if(_fallbackPhoto)flags|=4194304;if(v.translationsDisabled===true)flags|=8388608;var _wallpaper=v.wallpaper!==undefined;if(_wallpaper)flags|=16777216;var _stories=v.stories!==undefined;if(_stories)flags|=33554432;if(v.storiesPinnedAvailable===true)flags|=67108864;if(v.blockedMyStoriesFrom===true)flags|=134217728;if(v.wallpaperOverridden===true)flags|=268435456;if(v.contactRequirePremium===true)flags|=536870912;if(v.readDatesPrivate===true)flags|=1073741824;w.uint(flags);var flags2=0;var _businessWorkHours=v.businessWorkHours!==undefined;if(_businessWorkHours)flags2|=1;var _businessLocation=v.businessLocation!==undefined;if(_businessLocation)flags2|=2;var _businessGreetingMessage=v.businessGreetingMessage!==undefined;if(_businessGreetingMessage)flags2|=4;var _businessAwayMessage=v.businessAwayMessage!==undefined;if(_businessAwayMessage)flags2|=8;var _businessIntro=v.businessIntro!==undefined;if(_businessIntro)flags2|=16;var _birthday=v.birthday!==undefined;if(_birthday)flags2|=32;var _personalChannelId=v.personalChannelId!==undefined;var _personalChannelMessage=v.personalChannelMessage!==undefined;var _flags2_6=_personalChannelId||_personalChannelMessage;if(_flags2_6)flags2|=64;if(v.sponsoredEnabled===true)flags2|=128;var _stargiftsCount=v.stargiftsCount!==undefined;if(_stargiftsCount)flags2|=256;if(v.canViewRevenue===true)flags2|=512;if(v.botCanManageEmojiStatus===true)flags2|=1024;var _starrefProgram=v.starrefProgram!==undefined;if(_starrefProgram)flags2|=2048;var _botVerification=v.botVerification!==undefined;if(_botVerification)flags2|=4096;var _sendPaidMessagesStars=v.sendPaidMessagesStars!==undefined;if(_sendPaidMessagesStars)flags2|=16384;var _disallowedGifts=v.disallowedGifts!==undefined;if(_disallowedGifts)flags2|=32768;if(v.displayGiftsButton===true)flags2|=65536;w.uint(flags2);w.int53(h(v,'id'));if(_about)w.string(v.about);w.object(h(v,'settings'));if(_personalPhoto)w.object(v.personalPhoto);if(_profilePhoto)w.object(v.profilePhoto);if(_fallbackPhoto)w.object(v.fallbackPhoto);w.object(h(v,'notifySettings'));if(_botInfo)w.object(v.botInfo);if(_pinnedMsgId)w.int(v.pinnedMsgId);w.int(h(v,'commonChatsCount'));if(_folderId)w.int(v.folderId);if(_ttlPeriod)w.int(v.ttlPeriod);if(_themeEmoticon)w.string(v.themeEmoticon);if(_privateForwardName)w.string(v.privateForwardName);if(_botGroupAdminRights)w.object(v.botGroupAdminRights);if(_botBroadcastAdminRights)w.object(v.botBroadcastAdminRights);if(_wallpaper)w.object(v.wallpaper);if(_stories)w.object(v.stories);if(_businessWorkHours)w.object(v.businessWorkHours);if(_businessLocation)w.object(v.businessLocation);if(_businessGreetingMessage)w.object(v.businessGreetingMessage);if(_businessAwayMessage)w.object(v.businessAwayMessage);if(_businessIntro)w.object(v.businessIntro);if(_birthday)w.object(v.birthday);if(_flags2_6)w.int53(v.personalChannelId);if(_flags2_6)w.int(v.personalChannelMessage);if(_stargiftsCount)w.int(v.stargiftsCount);if(_starrefProgram)w.object(v.starrefProgram);if(_botVerification)w.object(v.botVerification);if(_sendPaidMessagesStars)w.long(v.sendPaidMessagesStars);if(_disallowedGifts)w.object(v.disallowedGifts);},
|
|
206
206
|
'contact':function(w,v){w.uint(341499403);w.int53(h(v,'userId'));w.boolean(h(v,'mutual'));},
|
|
207
207
|
'importedContact':function(w,v){w.uint(3242081360);w.int53(h(v,'userId'));w.long(h(v,'clientId'));},
|
|
208
208
|
'contactStatus':function(w,v){w.uint(383348795);w.int53(h(v,'userId'));w.object(h(v,'status'));},
|
|
@@ -1031,7 +1031,7 @@ var m={
|
|
|
1031
1031
|
'statsGroupTopAdmin':function(w,v){w.uint(3612888199);w.int53(h(v,'userId'));w.int(h(v,'deleted'));w.int(h(v,'kicked'));w.int(h(v,'banned'));},
|
|
1032
1032
|
'statsGroupTopInviter':function(w,v){w.uint(1398765469);w.int53(h(v,'userId'));w.int(h(v,'invitations'));},
|
|
1033
1033
|
'stats.megagroupStats':function(w,v){w.uint(4018141462);w.object(h(v,'period'));w.object(h(v,'members'));w.object(h(v,'messages'));w.object(h(v,'viewers'));w.object(h(v,'posters'));w.object(h(v,'growthGraph'));w.object(h(v,'membersGraph'));w.object(h(v,'newMembersBySourceGraph'));w.object(h(v,'languagesGraph'));w.object(h(v,'messagesGraph'));w.object(h(v,'actionsGraph'));w.object(h(v,'topHoursGraph'));w.object(h(v,'weekdaysGraph'));w.vector(w.object,h(v,'topPosters'));w.vector(w.object,h(v,'topAdmins'));w.vector(w.object,h(v,'topInviters'));w.vector(w.object,h(v,'users'));},
|
|
1034
|
-
'globalPrivacySettings':function(w,v){w.uint(
|
|
1034
|
+
'globalPrivacySettings':function(w,v){w.uint(4265718607);var flags=0;if(v.archiveAndMuteNewNoncontactPeers===true)flags|=1;if(v.keepArchivedUnmuted===true)flags|=2;if(v.keepArchivedFolders===true)flags|=4;if(v.hideReadMarks===true)flags|=8;if(v.newNoncontactPeersRequirePremium===true)flags|=16;var _noncontactPeersPaidStars=v.noncontactPeersPaidStars!==undefined;if(_noncontactPeersPaidStars)flags|=32;var _disallowedGifts=v.disallowedGifts!==undefined;if(_disallowedGifts)flags|=64;if(v.displayGiftsButton===true)flags|=128;w.uint(flags);if(_noncontactPeersPaidStars)w.long(v.noncontactPeersPaidStars);if(_disallowedGifts)w.object(v.disallowedGifts);},
|
|
1035
1035
|
'help.countryCode':function(w,v){w.uint(1107543535);var flags=0;var _prefixes=v.prefixes&&v.prefixes.length;if(_prefixes)flags|=1;var _patterns=v.patterns&&v.patterns.length;if(_patterns)flags|=2;w.uint(flags);w.string(h(v,'countryCode'));if(_prefixes)w.vector(w.string,v.prefixes);if(_patterns)w.vector(w.string,v.patterns);},
|
|
1036
1036
|
'help.country':function(w,v){w.uint(3280440867);var flags=0;if(v.hidden===true)flags|=1;var _name=v.name!==undefined;if(_name)flags|=2;w.uint(flags);w.string(h(v,'iso2'));w.string(h(v,'defaultName'));if(_name)w.string(v.name);w.vector(w.object,h(v,'countryCodes'));},
|
|
1037
1037
|
'help.countriesListNotModified':function(w){w.uint(2479628082);},
|
|
@@ -1304,11 +1304,11 @@ var m={
|
|
|
1304
1304
|
'inputQuickReplyShortcutId':function(w,v){w.uint(18418929);w.int(h(v,'shortcutId'));},
|
|
1305
1305
|
'messages.quickReplies':function(w,v){w.uint(3331155605);w.vector(w.object,h(v,'quickReplies'));w.vector(w.object,h(v,'messages'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1306
1306
|
'messages.quickRepliesNotModified':function(w){w.uint(1603398491);},
|
|
1307
|
-
'connectedBot':function(w,v){w.uint(
|
|
1307
|
+
'connectedBot':function(w,v){w.uint(3445908332);var flags=0;w.uint(flags);w.int53(h(v,'botId'));w.object(h(v,'recipients'));w.object(h(v,'rights'));},
|
|
1308
1308
|
'account.connectedBots':function(w,v){w.uint(400029819);w.vector(w.object,h(v,'connectedBots'));w.vector(w.object,h(v,'users'));},
|
|
1309
1309
|
'messages.dialogFilters':function(w,v){w.uint(718878489);var flags=0;if(v.tagsEnabled===true)flags|=1;w.uint(flags);w.vector(w.object,h(v,'filters'));},
|
|
1310
1310
|
'birthday':function(w,v){w.uint(1821253126);var flags=0;var _year=v.year!==undefined;if(_year)flags|=1;w.uint(flags);w.int(h(v,'day'));w.int(h(v,'month'));if(_year)w.int(v.year);},
|
|
1311
|
-
'botBusinessConnection':function(w,v){w.uint(
|
|
1311
|
+
'botBusinessConnection':function(w,v){w.uint(2402595573);var flags=0;if(v.disabled===true)flags|=2;var _rights=v.rights!==undefined;if(_rights)flags|=4;w.uint(flags);w.string(h(v,'connectionId'));w.int53(h(v,'userId'));w.int(h(v,'dcId'));w.int(h(v,'date'));if(_rights)w.object(v.rights);},
|
|
1312
1312
|
'inputBusinessIntro':function(w,v){w.uint(163867085);var flags=0;var _sticker=v.sticker!==undefined;if(_sticker)flags|=1;w.uint(flags);w.string(h(v,'title'));w.string(h(v,'description'));if(_sticker)w.object(v.sticker);},
|
|
1313
1313
|
'businessIntro':function(w,v){w.uint(1510606445);var flags=0;var _sticker=v.sticker!==undefined;if(_sticker)flags|=1;w.uint(flags);w.string(h(v,'title'));w.string(h(v,'description'));if(_sticker)w.object(v.sticker);},
|
|
1314
1314
|
'messages.myStickers':function(w,v){w.uint(4211040925);w.int(h(v,'count'));w.vector(w.object,h(v,'sets'));},
|
|
@@ -1355,7 +1355,7 @@ var m={
|
|
|
1355
1355
|
'starsTransactionPeerAds':function(w){w.uint(1617438738);},
|
|
1356
1356
|
'starsTransactionPeerAPI':function(w){w.uint(4184308397);},
|
|
1357
1357
|
'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'));},
|
|
1358
|
-
'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;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);},
|
|
1358
|
+
'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);},
|
|
1359
1359
|
'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'));},
|
|
1360
1360
|
'foundStory':function(w,v){w.uint(3900361664);w.object(h(v,'peer'));w.object(h(v,'story'));},
|
|
1361
1361
|
'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'));},
|
|
@@ -1415,10 +1415,21 @@ var m={
|
|
|
1415
1415
|
'requirementToContactEmpty':function(w){w.uint(84580409);},
|
|
1416
1416
|
'requirementToContactPremium':function(w){w.uint(3850495209);},
|
|
1417
1417
|
'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
|
+
'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
|
+
'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
|
+
'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
|
+
'contacts.sponsoredPeersEmpty':function(w){w.uint(3929191601);},
|
|
1427
|
+
'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'));},
|
|
1418
1428
|
'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);},
|
|
1419
1429
|
'emojiStatusUntil':function(w,v){w.uint(4197492935);w.long(h(v,'documentId'));w.int(h(v,'until'));},
|
|
1420
1430
|
'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);},
|
|
1421
1431
|
'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'));},
|
|
1422
1433
|
'test.useConfigSimple':function(w){w.uint(4189565501);},
|
|
1423
1434
|
'test.parseInputAppEvent':function(w){w.uint(3138226161);},
|
|
1424
1435
|
'invokeWithBusinessConnectionPrefix':function(w,v){w.uint(3710427022);w.string(h(v,'connectionId'));},
|
|
@@ -1555,7 +1566,7 @@ var m={
|
|
|
1555
1566
|
'account.updateBusinessLocation':function(w,v){w.uint(2657817370);var flags=0;var _address=v.address!==undefined;if(_address)flags|=1;var _geoPoint=v.geoPoint!==undefined;if(_geoPoint)flags|=2;w.uint(flags);if(_geoPoint)w.object(v.geoPoint);if(_address)w.string(v.address);},
|
|
1556
1567
|
'account.updateBusinessGreetingMessage':function(w,v){w.uint(1724755908);var flags=0;var _message=v.message!==undefined;if(_message)flags|=1;w.uint(flags);if(_message)w.object(v.message);},
|
|
1557
1568
|
'account.updateBusinessAwayMessage':function(w,v){w.uint(2724888485);var flags=0;var _message=v.message!==undefined;if(_message)flags|=1;w.uint(flags);if(_message)w.object(v.message);},
|
|
1558
|
-
'account.updateConnectedBot':function(w,v){w.uint(
|
|
1569
|
+
'account.updateConnectedBot':function(w,v){w.uint(1721797758);var flags=0;var _rights=v.rights!==undefined;if(_rights)flags|=1;if(v.deleted===true)flags|=2;w.uint(flags);if(_rights)w.object(v.rights);w.object(h(v,'bot'));w.object(h(v,'recipients'));},
|
|
1559
1570
|
'account.getConnectedBots':function(w){w.uint(1319421967);},
|
|
1560
1571
|
'account.getBotBusinessConnection':function(w,v){w.uint(1990746736);w.string(h(v,'connectionId'));},
|
|
1561
1572
|
'account.updateBusinessIntro':function(w,v){w.uint(2786381876);var flags=0;var _intro=v.intro!==undefined;if(_intro)flags|=1;w.uint(flags);if(_intro)w.object(v.intro);},
|
|
@@ -1821,9 +1832,9 @@ var m={
|
|
|
1821
1832
|
'messages.sendPaidReaction':function(w,v){w.uint(1488702288);var flags=0;var _private=v.private!==undefined;if(_private)flags|=1;w.uint(flags);w.object(h(v,'peer'));w.int(h(v,'msgId'));w.int(h(v,'count'));w.long(h(v,'randomId'));if(_private)w.object(v.private);},
|
|
1822
1833
|
'messages.togglePaidReactionPrivacy':function(w,v){w.uint(1129874869);w.object(h(v,'peer'));w.int(h(v,'msgId'));w.object(h(v,'private'));},
|
|
1823
1834
|
'messages.getPaidReactionPrivacy':function(w){w.uint(1193563562);},
|
|
1824
|
-
'messages.viewSponsoredMessage':function(w,v){w.uint(
|
|
1825
|
-
'messages.clickSponsoredMessage':function(w,v){w.uint(
|
|
1826
|
-
'messages.reportSponsoredMessage':function(w,v){w.uint(
|
|
1835
|
+
'messages.viewSponsoredMessage':function(w,v){w.uint(647902787);w.bytes(h(v,'randomId'));},
|
|
1836
|
+
'messages.clickSponsoredMessage':function(w,v){w.uint(2184512894);var flags=0;if(v.media===true)flags|=1;if(v.fullscreen===true)flags|=2;w.uint(flags);w.bytes(h(v,'randomId'));},
|
|
1837
|
+
'messages.reportSponsoredMessage':function(w,v){w.uint(315355332);w.bytes(h(v,'randomId'));w.bytes(h(v,'option'));},
|
|
1827
1838
|
'messages.getSponsoredMessages':function(w,v){w.uint(2614293561);w.object(h(v,'peer'));},
|
|
1828
1839
|
'messages.savePreparedInlineMessage':function(w,v){w.uint(4062150447);var flags=0;var _peerTypes=v.peerTypes&&v.peerTypes.length;if(_peerTypes)flags|=1;w.uint(flags);w.object(h(v,'result'));w.object(h(v,'userId'));if(_peerTypes)w.vector(w.object,v.peerTypes);},
|
|
1829
1840
|
'messages.getPreparedInlineMessage':function(w,v){w.uint(2239675832);w.object(h(v,'bot'));w.string(h(v,'id'));},
|
|
@@ -2119,12 +2130,10 @@ var m={
|
|
|
2119
2130
|
'smsjobs.getSmsJob':function(w,v){w.uint(2005766191);w.string(h(v,'jobId'));},
|
|
2120
2131
|
'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);},
|
|
2121
2132
|
'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'));},
|
|
2122
2135
|
'users.getIsPremiumRequiredToContact':function(w,v){w.uint(2787289616);w.vector(w.object,h(v,'id'));},
|
|
2123
2136
|
'payments.getUserStarGifts':function(w,v){w.uint(1584580577);w.object(h(v,'userId'));w.string(h(v,'offset'));w.int(h(v,'limit'));},
|
|
2124
|
-
'channels.viewSponsoredMessage':function(w,v){w.uint(3199130516);w.object(h(v,'channel'));w.bytes(h(v,'randomId'));},
|
|
2125
|
-
'channels.getSponsoredMessages':function(w,v){w.uint(3961589695);w.object(h(v,'channel'));},
|
|
2126
|
-
'channels.clickSponsoredMessage':function(w,v){w.uint(21257589);var flags=0;if(v.media===true)flags|=1;if(v.fullscreen===true)flags|=2;w.uint(flags);w.object(h(v,'channel'));w.bytes(h(v,'randomId'));},
|
|
2127
|
-
'channels.reportSponsoredMessage':function(w,v){w.uint(2945447609);w.object(h(v,'channel'));w.bytes(h(v,'randomId'));w.bytes(h(v,'option'));},
|
|
2128
2137
|
'mtcute.customMethod':function(w,v){w.raw(h(v,'bytes'));},
|
|
2129
2138
|
'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'));},
|
|
2130
2139
|
'mt_p_q_inner_data_dc':function(w,v){w.uint(2851430293);w.bytes(h(v,'pq'));w.bytes(h(v,'p'));w.bytes(h(v,'q'));w.int128(h(v,'nonce'));w.int128(h(v,'serverNonce'));w.int256(h(v,'newNonce'));w.int(h(v,'dc'));},
|
|
@@ -2664,6 +2673,11 @@ _staticSize:{
|
|
|
2664
2673
|
'requirementToContactEmpty':4,
|
|
2665
2674
|
'requirementToContactPremium':4,
|
|
2666
2675
|
'requirementToContactPaidMessages':12,
|
|
2676
|
+
'messageActionPaidMessagesRefunded':16,
|
|
2677
|
+
'messageActionPaidMessagesPrice':12,
|
|
2678
|
+
'businessBotRights':8,
|
|
2679
|
+
'disallowedGiftsSettings':8,
|
|
2680
|
+
'contacts.sponsoredPeersEmpty':4,
|
|
2667
2681
|
'emojiStatusUntil':16,
|
|
2668
2682
|
'test.useConfigSimple':4,
|
|
2669
2683
|
'test.parseInputAppEvent':4,
|
package/compat/index.d.ts
CHANGED
|
@@ -202,7 +202,9 @@ export declare namespace tlCompat {
|
|
|
202
202
|
* Compared to the current schema, changes from this entry:
|
|
203
203
|
*
|
|
204
204
|
* Added arguments:
|
|
205
|
+
* display_gifts_button: flags2.16?true
|
|
205
206
|
* send_paid_messages_stars: flags2.14?long
|
|
207
|
+
* disallowed_gifts: flags2.15?DisallowedGiftsSettings
|
|
206
208
|
* Removed arguments: premium_gifts
|
|
207
209
|
*/
|
|
208
210
|
interface RawUserFull_layer199 {
|
|
@@ -408,6 +410,62 @@ export declare namespace tlCompat {
|
|
|
408
410
|
factcheck?: tl.TypeFactCheck;
|
|
409
411
|
reportDeliveryUntilDate?: number;
|
|
410
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Compared to the current schema, changes from this entry:
|
|
415
|
+
*
|
|
416
|
+
* Added arguments:
|
|
417
|
+
* display_gifts_button: flags2.16?true
|
|
418
|
+
* disallowed_gifts: flags2.15?DisallowedGiftsSettings
|
|
419
|
+
*/
|
|
420
|
+
interface RawUserFull_layer200 {
|
|
421
|
+
_: 'userFull_layer200';
|
|
422
|
+
blocked?: boolean;
|
|
423
|
+
phoneCallsAvailable?: boolean;
|
|
424
|
+
phoneCallsPrivate?: boolean;
|
|
425
|
+
canPinMessage?: boolean;
|
|
426
|
+
hasScheduled?: boolean;
|
|
427
|
+
videoCallsAvailable?: boolean;
|
|
428
|
+
voiceMessagesForbidden?: boolean;
|
|
429
|
+
translationsDisabled?: boolean;
|
|
430
|
+
storiesPinnedAvailable?: boolean;
|
|
431
|
+
blockedMyStoriesFrom?: boolean;
|
|
432
|
+
wallpaperOverridden?: boolean;
|
|
433
|
+
contactRequirePremium?: boolean;
|
|
434
|
+
readDatesPrivate?: boolean;
|
|
435
|
+
sponsoredEnabled?: boolean;
|
|
436
|
+
canViewRevenue?: boolean;
|
|
437
|
+
botCanManageEmojiStatus?: boolean;
|
|
438
|
+
id: number;
|
|
439
|
+
about?: string;
|
|
440
|
+
settings: tl.TypePeerSettings;
|
|
441
|
+
personalPhoto?: tl.TypePhoto;
|
|
442
|
+
profilePhoto?: tl.TypePhoto;
|
|
443
|
+
fallbackPhoto?: tl.TypePhoto;
|
|
444
|
+
notifySettings: tl.TypePeerNotifySettings;
|
|
445
|
+
botInfo?: tl.TypeBotInfo;
|
|
446
|
+
pinnedMsgId?: number;
|
|
447
|
+
commonChatsCount: number;
|
|
448
|
+
folderId?: number;
|
|
449
|
+
ttlPeriod?: number;
|
|
450
|
+
themeEmoticon?: string;
|
|
451
|
+
privateForwardName?: string;
|
|
452
|
+
botGroupAdminRights?: tl.TypeChatAdminRights;
|
|
453
|
+
botBroadcastAdminRights?: tl.TypeChatAdminRights;
|
|
454
|
+
wallpaper?: tl.TypeWallPaper;
|
|
455
|
+
stories?: tl.TypePeerStories;
|
|
456
|
+
businessWorkHours?: tl.TypeBusinessWorkHours;
|
|
457
|
+
businessLocation?: tl.TypeBusinessLocation;
|
|
458
|
+
businessGreetingMessage?: tl.TypeBusinessGreetingMessage;
|
|
459
|
+
businessAwayMessage?: tl.TypeBusinessAwayMessage;
|
|
460
|
+
businessIntro?: tl.TypeBusinessIntro;
|
|
461
|
+
birthday?: tl.TypeBirthday;
|
|
462
|
+
personalChannelId?: number;
|
|
463
|
+
personalChannelMessage?: number;
|
|
464
|
+
stargiftsCount?: number;
|
|
465
|
+
starrefProgram?: tl.TypeStarRefProgram;
|
|
466
|
+
botVerification?: tl.TypeBotVerification;
|
|
467
|
+
sendPaidMessagesStars?: Long;
|
|
468
|
+
}
|
|
411
469
|
interface RpcCallReturn {
|
|
412
470
|
}
|
|
413
471
|
type TypeStarGift = tlCompat.RawStarGiftUnique_layer197 | tlCompat.RawStarGiftUnique_layer198 | AnyToNever<tl.TypeStarGift>
|
|
@@ -415,7 +473,7 @@ export declare namespace tlCompat {
|
|
|
415
473
|
type TypeMessageMedia = tlCompat.RawMessageMediaDocument_layer197 | AnyToNever<tl.TypeMessageMedia>
|
|
416
474
|
type TypeChatFull = tlCompat.RawChannelFull_layer197 | AnyToNever<tl.TypeChatFull>
|
|
417
475
|
type TypeMessageAction = tlCompat.RawMessageActionStarGiftUnique_layer197 | tlCompat.RawMessageActionStarGift_layer197 | AnyToNever<tl.TypeMessageAction>
|
|
418
|
-
type TypeUserFull = tlCompat.RawUserFull_layer199 | AnyToNever<tl.TypeUserFull>
|
|
476
|
+
type TypeUserFull = tlCompat.RawUserFull_layer199 | tlCompat.RawUserFull_layer200 | AnyToNever<tl.TypeUserFull>
|
|
419
477
|
type TypeUser = tlCompat.RawUser_layer199 | AnyToNever<tl.TypeUser>
|
|
420
478
|
type TypeChat = tlCompat.RawChannel_layer199 | AnyToNever<tl.TypeChat>
|
|
421
479
|
type TypeMessage = tlCompat.RawMessage_layer199 | AnyToNever<tl.TypeMessage>
|
|
@@ -432,5 +490,6 @@ export declare namespace tlCompat {
|
|
|
432
490
|
| tlCompat.RawUser_layer199
|
|
433
491
|
| tlCompat.RawChannel_layer199
|
|
434
492
|
| tlCompat.RawMessage_layer199
|
|
493
|
+
| tlCompat.RawUserFull_layer200
|
|
435
494
|
| tl.TlObject
|
|
436
495
|
}
|
package/compat/reader.js
CHANGED
|
@@ -13,5 +13,6 @@ var m={
|
|
|
13
13
|
1262928766:function(r){var flags=r.uint(),flags2=r.uint();return{_:'user_layer199',self:!!(flags&1024),contact:!!(flags&2048),mutualContact:!!(flags&4096),deleted:!!(flags&8192),bot:!!(flags&16384),botChatHistory:!!(flags&32768),botNochats:!!(flags&65536),verified:!!(flags&131072),restricted:!!(flags&262144),min:!!(flags&1048576),botInlineGeo:!!(flags&2097152),support:!!(flags&8388608),scam:!!(flags&16777216),applyMinPhoto:!!(flags&33554432),fake:!!(flags&67108864),botAttachMenu:!!(flags&134217728),premium:!!(flags&268435456),attachMenuEnabled:!!(flags&536870912),botCanEdit:!!(flags2&2),closeFriend:!!(flags2&4),storiesHidden:!!(flags2&8),storiesUnavailable:!!(flags2&16),contactRequirePremium:!!(flags2&1024),botBusiness:!!(flags2&2048),botHasMainApp:!!(flags2&8192),id:r.int53(),accessHash:flags&1?r.long():void 0,firstName:flags&2?r.string():void 0,lastName:flags&4?r.string():void 0,username:flags&8?r.string():void 0,phone:flags&16?r.string():void 0,photo:flags&32?r.object():void 0,status:flags&64?r.object():void 0,botInfoVersion:flags&16384?r.int():void 0,restrictionReason:flags&262144?r.vector(r.object):void 0,botInlinePlaceholder:flags&524288?r.string():void 0,langCode:flags&4194304?r.string():void 0,emojiStatus:flags&1073741824?r.object():void 0,usernames:flags2&1?r.vector(r.object):void 0,storiesMaxId:flags2&32?r.int():void 0,color:flags2&256?r.object():void 0,profileColor:flags2&512?r.object():void 0,botActiveUsers:flags2&4096?r.int():void 0,botVerificationIcon:flags2&16384?r.long():void 0,}},
|
|
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
|
+
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,}},
|
|
16
17
|
}
|
|
17
18
|
exports.__tlReaderMapCompat = m;
|