@mtcute/tl 204.0.0 → 206.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 +28 -13
- package/binary/writer.js +55 -31
- package/compat/index.d.ts +158 -2
- package/compat/reader.js +3 -0
- package/index.d.ts +233 -58
- package/index.js +6 -2
- package/package.json +1 -1
package/binary/reader.js
CHANGED
|
@@ -42,6 +42,7 @@ var m={
|
|
|
42
42
|
2315114360:function(r){return{_:'inputMediaStory',peer:r.object(),id:r.int(),}},
|
|
43
43
|
3256584265:function(r){var flags=r.uint();return{_:'inputMediaWebPage',forceLargeMedia:!!(flags&1),forceSmallMedia:!!(flags&2),optional:!!(flags&4),url:r.string(),}},
|
|
44
44
|
3289396102:function(r){var flags=r.uint();return{_:'inputMediaPaidMedia',starsAmount:r.long(),extendedMedia:r.vector(r.object),payload:flags&1?r.string():void 0,}},
|
|
45
|
+
2680512478:function(r){return{_:'inputMediaTodo',todo:r.object(),}},
|
|
45
46
|
480546647:function(r){return{_:'inputChatPhotoEmpty'}},
|
|
46
47
|
3184373440:function(r){var flags=r.uint();return{_:'inputChatUploadedPhoto',file:flags&1?r.object():void 0,video:flags&2?r.object():void 0,videoStartTs:flags&4?r.double():void 0,videoEmojiMarkup:flags&8?r.object():void 0,}},
|
|
47
48
|
2303962423:function(r){return{_:'inputChatPhoto',id:r.object(),}},
|
|
@@ -88,7 +89,7 @@ var m={
|
|
|
88
89
|
4268249941:function(r){var flags=r.uint(),flags2=r.uint();return{_:'channel',creator:!!(flags&1),left:!!(flags&4),broadcast:!!(flags&32),verified:!!(flags&128),megagroup:!!(flags&256),restricted:!!(flags&512),signatures:!!(flags&2048),min:!!(flags&4096),scam:!!(flags&524288),hasLink:!!(flags&1048576),hasGeo:!!(flags&2097152),slowmodeEnabled:!!(flags&4194304),callActive:!!(flags&8388608),callNotEmpty:!!(flags&16777216),fake:!!(flags&33554432),gigagroup:!!(flags&67108864),noforwards:!!(flags&134217728),joinToSend:!!(flags&268435456),joinRequest:!!(flags&536870912),forum:!!(flags&1073741824),storiesHidden:!!(flags2&2),storiesHiddenMin:!!(flags2&4),storiesUnavailable:!!(flags2&8),signatureProfiles:!!(flags2&4096),autotranslation:!!(flags2&32768),broadcastMessagesAllowed:!!(flags2&65536),monoforum:!!(flags2&131072),forumTabs:!!(flags2&524288),id:r.int53(),accessHash:flags&8192?r.long():void 0,title:r.string(),username:flags&64?r.string():void 0,photo:r.object(),date:r.int(),restrictionReason:flags&512?r.vector(r.object):void 0,adminRights:flags&16384?r.object():void 0,bannedRights:flags&32768?r.object():void 0,defaultBannedRights:flags&262144?r.object():void 0,participantsCount:flags&131072?r.int():void 0,usernames:flags2&1?r.vector(r.object):void 0,storiesMaxId:flags2&16?r.int():void 0,color:flags2&128?r.object():void 0,profileColor:flags2&256?r.object():void 0,emojiStatus:flags2&512?r.object():void 0,level:flags2&1024?r.int():void 0,subscriptionUntilDate:flags2&2048?r.int():void 0,botVerificationIcon:flags2&8192?r.long():void 0,sendPaidMessagesStars:flags2&16384?r.long():void 0,linkedMonoforumId:flags2&262144?r.int53():void 0,}},
|
|
89
90
|
399807445:function(r){var flags=r.uint();return{_:'channelForbidden',broadcast:!!(flags&32),megagroup:!!(flags&256),id:r.int53(),accessHash:r.long(),title:r.string(),untilDate:flags&65536?r.int():void 0,}},
|
|
90
91
|
640893467:function(r){var flags=r.uint();return{_:'chatFull',canSetUsername:!!(flags&128),hasScheduled:!!(flags&256),translationsDisabled:!!(flags&524288),id:r.int53(),about:r.string(),participants:r.object(),chatPhoto:flags&4?r.object():void 0,notifySettings:r.object(),exportedInvite:flags&8192?r.object():void 0,botInfo:flags&8?r.vector(r.object):void 0,pinnedMsgId:flags&64?r.int():void 0,folderId:flags&2048?r.int():void 0,call:flags&4096?r.object():void 0,ttlPeriod:flags&16384?r.int():void 0,groupcallDefaultJoinAs:flags&32768?r.object():void 0,themeEmoticon:flags&65536?r.string():void 0,requestsPending:flags&131072?r.int():void 0,recentRequesters:flags&131072?r.vector(r.long):void 0,availableReactions:flags&262144?r.object():void 0,reactionsLimit:flags&1048576?r.int():void 0,}},
|
|
91
|
-
|
|
92
|
+
3765709278:function(r){var flags=r.uint(),flags2=r.uint();return{_:'channelFull',canViewParticipants:!!(flags&8),canSetUsername:!!(flags&64),canSetStickers:!!(flags&128),hiddenPrehistory:!!(flags&1024),canSetLocation:!!(flags&65536),hasScheduled:!!(flags&524288),canViewStats:!!(flags&1048576),blocked:!!(flags&4194304),canDeleteChannel:!!(flags2&1),antispam:!!(flags2&2),participantsHidden:!!(flags2&4),translationsDisabled:!!(flags2&8),storiesPinnedAvailable:!!(flags2&32),viewForumAsMessages:!!(flags2&64),restrictedSponsored:!!(flags2&2048),canViewRevenue:!!(flags2&4096),paidMediaAllowed:!!(flags2&16384),canViewStarsRevenue:!!(flags2&32768),paidReactionsAvailable:!!(flags2&65536),stargiftsAvailable:!!(flags2&524288),paidMessagesAvailable:!!(flags2&1048576),id:r.int53(),about:r.string(),participantsCount:flags&1?r.int():void 0,adminsCount:flags&2?r.int():void 0,kickedCount:flags&4?r.int():void 0,bannedCount:flags&4?r.int():void 0,onlineCount:flags&8192?r.int():void 0,readInboxMaxId:r.int(),readOutboxMaxId:r.int(),unreadCount:r.int(),chatPhoto:r.object(),notifySettings:r.object(),exportedInvite:flags&8388608?r.object():void 0,botInfo:r.vector(r.object),migratedFromChatId:flags&16?r.long():void 0,migratedFromMaxId:flags&16?r.int():void 0,pinnedMsgId:flags&32?r.int():void 0,stickerset:flags&256?r.object():void 0,availableMinId:flags&512?r.int():void 0,folderId:flags&2048?r.int():void 0,linkedChatId:flags&16384?r.int53():void 0,location:flags&32768?r.object():void 0,slowmodeSeconds:flags&131072?r.int():void 0,slowmodeNextSendDate:flags&262144?r.int():void 0,statsDc:flags&4096?r.int():void 0,pts:r.int(),call:flags&2097152?r.object():void 0,ttlPeriod:flags&16777216?r.int():void 0,pendingSuggestions:flags&33554432?r.vector(r.string):void 0,groupcallDefaultJoinAs:flags&67108864?r.object():void 0,themeEmoticon:flags&134217728?r.string():void 0,requestsPending:flags&268435456?r.int():void 0,recentRequesters:flags&268435456?r.vector(r.int53):void 0,defaultSendAs:flags&536870912?r.object():void 0,availableReactions:flags&1073741824?r.object():void 0,reactionsLimit:flags2&8192?r.int():void 0,stories:flags2&16?r.object():void 0,wallpaper:flags2&128?r.object():void 0,boostsApplied:flags2&256?r.int():void 0,boostsUnrestrict:flags2&512?r.int():void 0,emojiset:flags2&1024?r.object():void 0,botVerification:flags2&131072?r.object():void 0,stargiftsCount:flags2&262144?r.int():void 0,sendPaidMessagesStars:flags2&2097152?r.long():void 0,}},
|
|
92
93
|
3224190983:function(r){return{_:'chatParticipant',userId:r.int53(),inviterId:r.int53(),date:r.int(),}},
|
|
93
94
|
3832270564:function(r){return{_:'chatParticipantCreator',userId:r.int53(),}},
|
|
94
95
|
2694004571:function(r){return{_:'chatParticipantAdmin',userId:r.int53(),inviterId:r.int53(),date:r.int(),}},
|
|
@@ -97,8 +98,8 @@ var m={
|
|
|
97
98
|
935395612:function(r){return{_:'chatPhotoEmpty'}},
|
|
98
99
|
476978193:function(r){var flags=r.uint();return{_:'chatPhoto',hasVideo:!!(flags&1),photoId:r.long(),strippedThumb:flags&2?r.bytes():void 0,dcId:r.int(),}},
|
|
99
100
|
2426849924:function(r){var flags=r.uint();return{_:'messageEmpty',id:r.int(),peerId:flags&1?r.object():void 0,}},
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
2551566024:function(r){var flags=r.uint(),flags2=r.uint();return{_:'message',out:!!(flags&2),mentioned:!!(flags&16),mediaUnread:!!(flags&32),silent:!!(flags&8192),post:!!(flags&16384),fromScheduled:!!(flags&262144),legacy:!!(flags&524288),editHide:!!(flags&2097152),pinned:!!(flags&16777216),noforwards:!!(flags&67108864),invertMedia:!!(flags&134217728),offline:!!(flags2&2),videoProcessingPending:!!(flags2&16),paidSuggestedPostStars:!!(flags2&256),paidSuggestedPostTon:!!(flags2&512),id:r.int(),fromId:flags&256?r.object():void 0,fromBoostsApplied:flags&536870912?r.int():void 0,peerId:r.object(),savedPeerId:flags&268435456?r.object():void 0,fwdFrom:flags&4?r.object():void 0,viaBotId:flags&2048?r.int53():void 0,viaBusinessBotId:flags2&1?r.int53():void 0,replyTo:flags&8?r.object():void 0,date:r.int(),message:r.string(),media:flags&512?r.object():void 0,replyMarkup:flags&64?r.object():void 0,entities:flags&128?r.vector(r.object):void 0,views:flags&1024?r.int():void 0,forwards:flags&1024?r.int():void 0,replies:flags&8388608?r.object():void 0,editDate:flags&32768?r.int():void 0,postAuthor:flags&65536?r.string():void 0,groupedId:flags&131072?r.long():void 0,reactions:flags&1048576?r.object():void 0,restrictionReason:flags&4194304?r.vector(r.object):void 0,ttlPeriod:flags&33554432?r.int():void 0,quickReplyShortcutId:flags&1073741824?r.int():void 0,effect:flags2&4?r.long():void 0,factcheck:flags2&8?r.object():void 0,reportDeliveryUntilDate:flags2&32?r.int():void 0,paidMessageStars:flags2&64?r.long():void 0,suggestedPost:flags2&128?r.object():void 0,}},
|
|
102
|
+
2055212554:function(r){var flags=r.uint();return{_:'messageService',out:!!(flags&2),mentioned:!!(flags&16),mediaUnread:!!(flags&32),reactionsArePossible:!!(flags&512),silent:!!(flags&8192),post:!!(flags&16384),legacy:!!(flags&524288),id:r.int(),fromId:flags&256?r.object():void 0,peerId:r.object(),savedPeerId:flags&268435456?r.object():void 0,replyTo:flags&8?r.object():void 0,date:r.int(),action:r.object(),reactions:flags&1048576?r.object():void 0,ttlPeriod:flags&33554432?r.int():void 0,}},
|
|
102
103
|
1038967584:function(r){return{_:'messageMediaEmpty'}},
|
|
103
104
|
1766936791:function(r){var flags=r.uint();return{_:'messageMediaPhoto',spoiler:!!(flags&8),photo:flags&1?r.object():void 0,ttlSeconds:flags&4?r.int():void 0,}},
|
|
104
105
|
1457575028:function(r){return{_:'messageMediaGeo',geo:r.object(),}},
|
|
@@ -116,6 +117,7 @@ var m={
|
|
|
116
117
|
2852600811:function(r){var flags=r.uint();return{_:'messageMediaGiveaway',onlyNewSubscribers:!!(flags&1),winnersAreVisible:!!(flags&4),channels:r.vector(r.int53),countriesIso2:flags&2?r.vector(r.string):void 0,prizeDescription:flags&8?r.string():void 0,quantity:r.int(),months:flags&16?r.int():void 0,stars:flags&32?r.long():void 0,untilDate:r.int(),}},
|
|
117
118
|
3467263649:function(r){var flags=r.uint();return{_:'messageMediaGiveawayResults',onlyNewSubscribers:!!(flags&1),refunded:!!(flags&4),channelId:r.long(),additionalPeersCount:flags&8?r.int():void 0,launchMsgId:r.int(),winnersCount:r.int(),unclaimedCount:r.int(),winners:r.vector(r.long),months:flags&16?r.int():void 0,stars:flags&32?r.long():void 0,prizeDescription:flags&2?r.string():void 0,untilDate:r.int(),}},
|
|
118
119
|
2827297937:function(r){return{_:'messageMediaPaidMedia',starsAmount:r.long(),extendedMedia:r.vector(r.object),}},
|
|
120
|
+
2320740372:function(r){var flags=r.uint();return{_:'messageMediaToDo',todo:r.object(),completions:flags&1?r.vector(r.object):void 0,}},
|
|
119
121
|
3064919984:function(r){return{_:'messageActionEmpty'}},
|
|
120
122
|
3175599021:function(r){return{_:'messageActionChatCreate',title:r.string(),users:r.vector(r.int53),}},
|
|
121
123
|
3047280218:function(r){return{_:'messageActionChatEditTitle',title:r.string(),}},
|
|
@@ -167,6 +169,8 @@ var m={
|
|
|
167
169
|
2887720909:function(r){return{_:'messageActionPaidMessagesRefunded',count:r.int(),stars:r.long(),}},
|
|
168
170
|
2226685304:function(r){var flags=r.uint();return{_:'messageActionPaidMessagesPrice',broadcastMessagesAllowed:!!(flags&1),stars:r.long(),}},
|
|
169
171
|
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,}},
|
|
172
|
+
3430702217:function(r){return{_:'messageActionTodoCompletions',completed:r.vector(r.int),incompleted:r.vector(r.int),}},
|
|
173
|
+
3354246275:function(r){return{_:'messageActionTodoAppendTasks',list:r.vector(r.object),}},
|
|
170
174
|
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,}},
|
|
171
175
|
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(),}},
|
|
172
176
|
590459437:function(r){return{_:'photoEmpty',id:r.long(),}},
|
|
@@ -385,6 +389,9 @@ var m={
|
|
|
385
389
|
2339528654:function(r){return{_:'updatePaidReactionPrivacy',private:r.object(),}},
|
|
386
390
|
1347068303:function(r){return{_:'updateSentPhoneCode',sentCode:r.object(),}},
|
|
387
391
|
2759272591:function(r){return{_:'updateGroupCallChainBlocks',call:r.object(),subChainId:r.int(),blocks:r.vector(r.bytes),nextOffset:r.int(),}},
|
|
392
|
+
2008081266:function(r){return{_:'updateReadMonoForumInbox',channelId:r.int53(),savedPeerId:r.object(),readMaxId:r.int(),}},
|
|
393
|
+
2762445686:function(r){return{_:'updateReadMonoForumOutbox',channelId:r.int53(),savedPeerId:r.object(),readMaxId:r.int(),}},
|
|
394
|
+
2676042504:function(r){var flags=r.uint();return{_:'updateMonoForumNoPaidException',exception:!!(flags&1),channelId:r.int53(),savedPeerId:r.object(),}},
|
|
388
395
|
2775329342:function(r){return{_:'updates.state',pts:r.int(),qts:r.int(),date:r.int(),seq:r.int(),unreadCount:r.int(),}},
|
|
389
396
|
1567990072:function(r){return{_:'updates.differenceEmpty',date:r.int(),seq:r.int(),}},
|
|
390
397
|
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(),}},
|
|
@@ -688,7 +695,7 @@ var m={
|
|
|
688
695
|
1891070632:function(r){return{_:'contacts.topPeers',categories:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
689
696
|
3039597469:function(r){return{_:'contacts.topPeersDisabled'}},
|
|
690
697
|
453805082:function(r){var flags=r.uint();return{_:'draftMessageEmpty',date:flags&1?r.int():void 0,}},
|
|
691
|
-
|
|
698
|
+
2531960299:function(r){var flags=r.uint();return{_:'draftMessage',noWebpage:!!(flags&2),invertMedia:!!(flags&64),replyTo:flags&16?r.object():void 0,message:r.string(),entities:flags&8?r.vector(r.object):void 0,media:flags&32?r.object():void 0,date:r.int(),effect:flags&128?r.long():void 0,suggestedPost:flags&256?r.object():void 0,}},
|
|
692
699
|
3336309862:function(r){return{_:'messages.featuredStickersNotModified',count:r.int(),}},
|
|
693
700
|
3191351558:function(r){var flags=r.uint();return{_:'messages.featuredStickers',premium:!!(flags&1),hash:r.long(),count:r.int(),sets:r.vector(r.object),unread:r.vector(r.long),}},
|
|
694
701
|
186120336:function(r){return{_:'messages.recentStickersNotModified'}},
|
|
@@ -965,7 +972,7 @@ var m={
|
|
|
965
972
|
2061444128:function(r){var flags=r.uint();return{_:'pollResults',min:!!(flags&1),results:flags&2?r.vector(r.object):void 0,totalVoters:flags&4?r.int():void 0,recentVoters:flags&8?r.vector(r.object):void 0,solution:flags&16?r.string():void 0,solutionEntities:flags&16?r.vector(r.object):void 0,}},
|
|
966
973
|
4030849616:function(r){return{_:'chatOnlines',onlines:r.int(),}},
|
|
967
974
|
1202287072:function(r){return{_:'statsURL',url:r.string(),}},
|
|
968
|
-
1605510357:function(r){var flags=r.uint();return{_:'chatAdminRights',changeInfo:!!(flags&1),postMessages:!!(flags&2),editMessages:!!(flags&4),deleteMessages:!!(flags&8),banUsers:!!(flags&16),inviteUsers:!!(flags&32),pinMessages:!!(flags&128),addAdmins:!!(flags&512),anonymous:!!(flags&1024),manageCall:!!(flags&2048),other:!!(flags&4096),manageTopics:!!(flags&8192),postStories:!!(flags&16384),editStories:!!(flags&32768),deleteStories:!!(flags&65536),}},
|
|
975
|
+
1605510357:function(r){var flags=r.uint();return{_:'chatAdminRights',changeInfo:!!(flags&1),postMessages:!!(flags&2),editMessages:!!(flags&4),deleteMessages:!!(flags&8),banUsers:!!(flags&16),inviteUsers:!!(flags&32),pinMessages:!!(flags&128),addAdmins:!!(flags&512),anonymous:!!(flags&1024),manageCall:!!(flags&2048),other:!!(flags&4096),manageTopics:!!(flags&8192),postStories:!!(flags&16384),editStories:!!(flags&32768),deleteStories:!!(flags&65536),manageDirectMessages:!!(flags&131072),}},
|
|
969
976
|
2668758040:function(r){var flags=r.uint();return{_:'chatBannedRights',viewMessages:!!(flags&1),sendMessages:!!(flags&2),sendMedia:!!(flags&4),sendStickers:!!(flags&8),sendGifs:!!(flags&16),sendGames:!!(flags&32),sendInline:!!(flags&64),embedLinks:!!(flags&128),sendPolls:!!(flags&256),changeInfo:!!(flags&1024),inviteUsers:!!(flags&32768),pinMessages:!!(flags&131072),manageTopics:!!(flags&262144),sendPhotos:!!(flags&524288),sendVideos:!!(flags&1048576),sendRoundvideos:!!(flags&2097152),sendAudios:!!(flags&4194304),sendVoices:!!(flags&8388608),sendDocs:!!(flags&16777216),sendPlain:!!(flags&33554432),untilDate:r.int(),}},
|
|
970
977
|
3861952889:function(r){return{_:'inputWallPaper',id:r.long(),accessHash:r.long(),}},
|
|
971
978
|
1913199744:function(r){return{_:'inputWallPaperSlug',slug:r.string(),}},
|
|
@@ -1090,8 +1097,8 @@ var m={
|
|
|
1090
1097
|
3816265825:function(r){return{_:'account.resetPasswordFailedWait',retryDate:r.int(),}},
|
|
1091
1098
|
3924819069:function(r){return{_:'account.resetPasswordRequestedWait',untilDate:r.int(),}},
|
|
1092
1099
|
3911636542:function(r){return{_:'account.resetPasswordOk'}},
|
|
1093
|
-
|
|
1094
|
-
|
|
1100
|
+
2109703795:function(r){var flags=r.uint();return{_:'sponsoredMessage',recommended:!!(flags&32),canReport:!!(flags&4096),randomId:r.bytes(),url:r.string(),title:r.string(),message:r.string(),entities:flags&2?r.vector(r.object):void 0,photo:flags&64?r.object():void 0,media:flags&16384?r.object():void 0,color:flags&8192?r.object():void 0,buttonText:r.string(),sponsorInfo:flags&128?r.string():void 0,additionalInfo:flags&256?r.string():void 0,minDisplayDuration:flags&32768?r.int():void 0,maxDisplayDuration:flags&32768?r.int():void 0,}},
|
|
1101
|
+
4292502893:function(r){var flags=r.uint();return{_:'messages.sponsoredMessages',postsBetween:flags&1?r.int():void 0,startDelay:flags&2?r.int():void 0,betweenDelay:flags&4?r.int():void 0,messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1095
1102
|
406407439:function(r){return{_:'messages.sponsoredMessagesEmpty'}},
|
|
1096
1103
|
3383776159:function(r){return{_:'searchResultsCalendarPeriod',date:r.int(),minMsgId:r.int(),maxMsgId:r.int(),count:r.int(),}},
|
|
1097
1104
|
343859772:function(r){var flags=r.uint();return{_:'messages.searchResultsCalendar',inexact:!!(flags&1),count:r.int(),minDate:r.int(),minMsgId:r.int(),offsetIdOffset:flags&2?r.int():void 0,periods:r.vector(r.object),messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
@@ -1241,6 +1248,7 @@ var m={
|
|
|
1241
1248
|
3734957341:function(r){return{_:'stories.storyViews',views:r.vector(r.object),users:r.vector(r.object),}},
|
|
1242
1249
|
2960144560:function(r){var flags=r.uint();return{_:'inputReplyToMessage',replyToMsgId:r.int(),topMsgId:flags&1?r.int():void 0,replyToPeerId:flags&2?r.object():void 0,quoteText:flags&4?r.string():void 0,quoteEntities:flags&8?r.vector(r.object):void 0,quoteOffset:flags&16?r.int():void 0,monoforumPeerId:flags&32?r.object():void 0,}},
|
|
1243
1250
|
1484862010:function(r){return{_:'inputReplyToStory',peer:r.object(),storyId:r.int(),}},
|
|
1251
|
+
1775660101:function(r){return{_:'inputReplyToMonoForum',monoforumPeerId:r.object(),}},
|
|
1244
1252
|
1070138683:function(r){return{_:'exportedStoryLink',link:r.string(),}},
|
|
1245
1253
|
1898850301:function(r){var flags=r.uint();return{_:'storiesStealthMode',activeUntilDate:flags&1?r.int():void 0,cooldownUntilDate:flags&2?r.int():void 0,}},
|
|
1246
1254
|
3486113794:function(r){var flags=r.uint();return{_:'mediaAreaCoordinates',x:r.double(),y:r.double(),w:r.double(),h:r.double(),rotation:r.double(),radius:flags&1?r.double():void 0,}},
|
|
@@ -1285,6 +1293,7 @@ var m={
|
|
|
1285
1293
|
3486322451:function(r){return{_:'storyReactionPublicRepost',peerId:r.object(),story:r.object(),}},
|
|
1286
1294
|
2858383516:function(r){var flags=r.uint();return{_:'stories.storyReactionsList',count:r.int(),reactions:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),nextOffset:flags&1?r.string():void 0,}},
|
|
1287
1295
|
3179793260:function(r){var flags=r.uint();return{_:'savedDialog',pinned:!!(flags&4),peer:r.object(),topMessage:r.int(),}},
|
|
1296
|
+
1681948327:function(r){var flags=r.uint();return{_:'monoForumDialog',unreadMark:!!(flags&8),nopaidMessagesException:!!(flags&16),peer:r.object(),topMessage:r.int(),readInboxMaxId:r.int(),readOutboxMaxId:r.int(),unreadCount:r.int(),unreadReactionsCount:r.int(),draft:flags&2?r.object():void 0,}},
|
|
1288
1297
|
4164608545:function(r){return{_:'messages.savedDialogs',dialogs:r.vector(r.object),messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1289
1298
|
1153080793:function(r){return{_:'messages.savedDialogsSlice',count:r.int(),dialogs:r.vector(r.object),messages:r.vector(r.object),chats:r.vector(r.object),users:r.vector(r.object),}},
|
|
1290
1299
|
3223285736:function(r){return{_:'messages.savedDialogsNotModified',count:r.int(),}},
|
|
@@ -1366,13 +1375,13 @@ var m={
|
|
|
1366
1375
|
1617438738:function(r){return{_:'starsTransactionPeerAds'}},
|
|
1367
1376
|
4184308397:function(r){return{_:'starsTransactionPeerAPI'}},
|
|
1368
1377
|
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(),}},
|
|
1369
|
-
|
|
1378
|
+
325426864:function(r){var flags=r.uint();return{_:'starsTransaction',refund:!!(flags&8),pending:!!(flags&16),failed:!!(flags&64),gift:!!(flags&1024),reaction:!!(flags&2048),stargiftUpgrade:!!(flags&262144),businessTransfer:!!(flags&2097152),stargiftResale:!!(flags&4194304),id:r.string(),amount: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,adsProceedsFromDate:flags&8388608?r.int():void 0,adsProceedsToDate:flags&8388608?r.int():void 0,}},
|
|
1370
1379
|
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),}},
|
|
1371
1380
|
3900361664:function(r){return{_:'foundStory',peer:r.object(),story:r.object(),}},
|
|
1372
1381
|
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),}},
|
|
1373
1382
|
3729546643:function(r){var flags=r.uint();return{_:'geoPointAddress',countryIso2:r.string(),state:flags&1?r.string():void 0,city:flags&2?r.string():void 0,street:flags&4?r.string():void 0,}},
|
|
1374
1383
|
4273886353:function(r){var flags=r.uint();return{_:'starsRevenueStatus',withdrawalEnabled:!!(flags&1),currentBalance:r.object(),availableBalance:r.object(),overallRevenue:r.object(),nextWithdrawalAt:flags&2?r.int():void 0,}},
|
|
1375
|
-
|
|
1384
|
+
1814066038:function(r){var flags=r.uint();return{_:'payments.starsRevenueStats',topHoursGraph:flags&1?r.object():void 0,revenueGraph:r.object(),status:r.object(),usdRate:r.double(),}},
|
|
1376
1385
|
497778871:function(r){return{_:'payments.starsRevenueWithdrawalUrl',url:r.string(),}},
|
|
1377
1386
|
961445665:function(r){return{_:'payments.starsRevenueAdsAccountUrl',url:r.string(),}},
|
|
1378
1387
|
543876817:function(r){var flags=r.uint();return{_:'inputStarsTransaction',refund:!!(flags&1),id:r.string(),}},
|
|
@@ -1439,10 +1448,16 @@ var m={
|
|
|
1439
1448
|
2491028191:function(r){var flags=r.uint();return{_:'payments.resaleStarGifts',count:r.int(),gifts:r.vector(r.object),nextOffset:flags&1?r.string():void 0,attributes:flags&2?r.vector(r.object):void 0,attributesHash:flags&2?r.long():void 0,chats:r.vector(r.object),counters:flags&4?r.vector(r.object):void 0,users:r.vector(r.object),}},
|
|
1440
1449
|
3280453710:function(r){return{_:'stories.canSendStoryCount',countRemains:r.int(),}},
|
|
1441
1450
|
3890753042:function(r){return{_:'pendingSuggestion',suggestion:r.string(),title:r.object(),description:r.object(),url:r.string(),}},
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1451
|
+
3416892719:function(r){return{_:'todoItem',id:r.int(),title:r.object(),}},
|
|
1452
|
+
1236871718:function(r){var flags=r.uint();return{_:'todoList',othersCanAppend:!!(flags&1),othersCanComplete:!!(flags&2),title:r.object(),list:r.vector(r.object),}},
|
|
1453
|
+
1287725239:function(r){return{_:'todoCompletion',id:r.int(),completedBy:r.int53(),date:r.int(),}},
|
|
1454
|
+
4000978326:function(r){var flags=r.uint();return{_:'messageActionSuggestedPostApproval',rejected:!!(flags&1),balanceTooLow:!!(flags&2),rejectComment:flags&4?r.string():void 0,scheduleDate:flags&8?r.int():void 0,price:flags&16?r.object():void 0,}},
|
|
1455
|
+
2514341737:function(r){return{_:'messageActionSuggestedPostSuccess',price:r.object(),}},
|
|
1456
|
+
1777932024:function(r){var flags=r.uint();return{_:'messageActionSuggestedPostRefund',payerInitiated:!!(flags&1),}},
|
|
1457
|
+
2829305497:function(r){var flags=r.uint();return{_:'messageActionGiftTon',currency:r.string(),amount:r.long(),cryptoCurrency:r.string(),cryptoAmount:r.long(),transactionId:flags&1?r.string():void 0,}},
|
|
1458
|
+
485912992:function(r){return{_:'inputStickerSetTonGifts'}},
|
|
1459
|
+
1957618656:function(r){return{_:'starsTonAmount',amount:r.long(),}},
|
|
1460
|
+
244201445:function(r){var flags=r.uint();return{_:'suggestedPost',accepted:!!(flags&2),rejected:!!(flags&4),price:flags&8?r.object():void 0,scheduleDate:flags&1?r.int():void 0,}},
|
|
1446
1461
|
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,}},
|
|
1447
1462
|
4197492935:function(r){return{_:'emojiStatusUntil',documentId:r.long(),until:r.int(),}},
|
|
1448
1463
|
4003764846:function(r){var flags=r.uint();return{_:'userStarGift',nameHidden:!!(flags&1),unsaved:!!(flags&32),fromId:flags&2?r.int53():void 0,date:r.int(),gift:r.object(),message:flags&4?r.object():void 0,msgId:flags&8?r.int():void 0,convertStars:flags&16?r.long():void 0,}},
|
package/binary/writer.js
CHANGED
|
@@ -43,6 +43,7 @@ var m={
|
|
|
43
43
|
'inputMediaStory':function(w,v){w.uint(2315114360);w.object(h(v,'peer'));w.int(h(v,'id'));},
|
|
44
44
|
'inputMediaWebPage':function(w,v){w.uint(3256584265);var flags=0;if(v.forceLargeMedia===true)flags|=1;if(v.forceSmallMedia===true)flags|=2;if(v.optional===true)flags|=4;w.uint(flags);w.string(h(v,'url'));},
|
|
45
45
|
'inputMediaPaidMedia':function(w,v){w.uint(3289396102);var flags=0;var _payload=v.payload!==undefined;if(_payload)flags|=1;w.uint(flags);w.long(h(v,'starsAmount'));w.vector(w.object,h(v,'extendedMedia'));if(_payload)w.string(v.payload);},
|
|
46
|
+
'inputMediaTodo':function(w,v){w.uint(2680512478);w.object(h(v,'todo'));},
|
|
46
47
|
'inputChatPhotoEmpty':function(w){w.uint(480546647);},
|
|
47
48
|
'inputChatUploadedPhoto':function(w,v){w.uint(3184373440);var flags=0;var _file=v.file!==undefined;if(_file)flags|=1;var _video=v.video!==undefined;if(_video)flags|=2;var _videoStartTs=v.videoStartTs!==undefined;if(_videoStartTs)flags|=4;var _videoEmojiMarkup=v.videoEmojiMarkup!==undefined;if(_videoEmojiMarkup)flags|=8;w.uint(flags);if(_file)w.object(v.file);if(_video)w.object(v.video);if(_videoStartTs)w.double(v.videoStartTs);if(_videoEmojiMarkup)w.object(v.videoEmojiMarkup);},
|
|
48
49
|
'inputChatPhoto':function(w,v){w.uint(2303962423);w.object(h(v,'id'));},
|
|
@@ -89,7 +90,7 @@ var m={
|
|
|
89
90
|
'channel':function(w,v){w.uint(4268249941);var flags=0;if(v.creator===true)flags|=1;if(v.left===true)flags|=4;if(v.broadcast===true)flags|=32;var _username=v.username!==undefined;if(_username)flags|=64;if(v.verified===true)flags|=128;if(v.megagroup===true)flags|=256;var _restrictionReason=v.restrictionReason&&v.restrictionReason.length;var _flags_9=v.restricted===true||_restrictionReason;if(_flags_9)flags|=512;if(v.signatures===true)flags|=2048;if(v.min===true)flags|=4096;var _accessHash=v.accessHash!==undefined;if(_accessHash)flags|=8192;var _adminRights=v.adminRights!==undefined;if(_adminRights)flags|=16384;var _bannedRights=v.bannedRights!==undefined;if(_bannedRights)flags|=32768;var _participantsCount=v.participantsCount!==undefined;if(_participantsCount)flags|=131072;var _defaultBannedRights=v.defaultBannedRights!==undefined;if(_defaultBannedRights)flags|=262144;if(v.scam===true)flags|=524288;if(v.hasLink===true)flags|=1048576;if(v.hasGeo===true)flags|=2097152;if(v.slowmodeEnabled===true)flags|=4194304;if(v.callActive===true)flags|=8388608;if(v.callNotEmpty===true)flags|=16777216;if(v.fake===true)flags|=33554432;if(v.gigagroup===true)flags|=67108864;if(v.noforwards===true)flags|=134217728;if(v.joinToSend===true)flags|=268435456;if(v.joinRequest===true)flags|=536870912;if(v.forum===true)flags|=1073741824;w.uint(flags);var flags2=0;var _usernames=v.usernames&&v.usernames.length;if(_usernames)flags2|=1;if(v.storiesHidden===true)flags2|=2;if(v.storiesHiddenMin===true)flags2|=4;if(v.storiesUnavailable===true)flags2|=8;var _storiesMaxId=v.storiesMaxId!==undefined;if(_storiesMaxId)flags2|=16;var _color=v.color!==undefined;if(_color)flags2|=128;var _profileColor=v.profileColor!==undefined;if(_profileColor)flags2|=256;var _emojiStatus=v.emojiStatus!==undefined;if(_emojiStatus)flags2|=512;var _level=v.level!==undefined;if(_level)flags2|=1024;var _subscriptionUntilDate=v.subscriptionUntilDate!==undefined;if(_subscriptionUntilDate)flags2|=2048;if(v.signatureProfiles===true)flags2|=4096;var _botVerificationIcon=v.botVerificationIcon!==undefined;if(_botVerificationIcon)flags2|=8192;var _sendPaidMessagesStars=v.sendPaidMessagesStars!==undefined;if(_sendPaidMessagesStars)flags2|=16384;if(v.autotranslation===true)flags2|=32768;if(v.broadcastMessagesAllowed===true)flags2|=65536;if(v.monoforum===true)flags2|=131072;var _linkedMonoforumId=v.linkedMonoforumId!==undefined;if(_linkedMonoforumId)flags2|=262144;if(v.forumTabs===true)flags2|=524288;w.uint(flags2);w.int53(h(v,'id'));if(_accessHash)w.long(v.accessHash);w.string(h(v,'title'));if(_username)w.string(v.username);w.object(h(v,'photo'));w.int(h(v,'date'));if(_flags_9)w.vector(w.object,v.restrictionReason);if(_adminRights)w.object(v.adminRights);if(_bannedRights)w.object(v.bannedRights);if(_defaultBannedRights)w.object(v.defaultBannedRights);if(_participantsCount)w.int(v.participantsCount);if(_usernames)w.vector(w.object,v.usernames);if(_storiesMaxId)w.int(v.storiesMaxId);if(_color)w.object(v.color);if(_profileColor)w.object(v.profileColor);if(_emojiStatus)w.object(v.emojiStatus);if(_level)w.int(v.level);if(_subscriptionUntilDate)w.int(v.subscriptionUntilDate);if(_botVerificationIcon)w.long(v.botVerificationIcon);if(_sendPaidMessagesStars)w.long(v.sendPaidMessagesStars);if(_linkedMonoforumId)w.int53(v.linkedMonoforumId);},
|
|
90
91
|
'channelForbidden':function(w,v){w.uint(399807445);var flags=0;if(v.broadcast===true)flags|=32;if(v.megagroup===true)flags|=256;var _untilDate=v.untilDate!==undefined;if(_untilDate)flags|=65536;w.uint(flags);w.int53(h(v,'id'));w.long(h(v,'accessHash'));w.string(h(v,'title'));if(_untilDate)w.int(v.untilDate);},
|
|
91
92
|
'chatFull':function(w,v){w.uint(640893467);var flags=0;var _chatPhoto=v.chatPhoto!==undefined;if(_chatPhoto)flags|=4;var _botInfo=v.botInfo&&v.botInfo.length;if(_botInfo)flags|=8;var _pinnedMsgId=v.pinnedMsgId!==undefined;if(_pinnedMsgId)flags|=64;if(v.canSetUsername===true)flags|=128;if(v.hasScheduled===true)flags|=256;var _folderId=v.folderId!==undefined;if(_folderId)flags|=2048;var _call=v.call!==undefined;if(_call)flags|=4096;var _exportedInvite=v.exportedInvite!==undefined;if(_exportedInvite)flags|=8192;var _ttlPeriod=v.ttlPeriod!==undefined;if(_ttlPeriod)flags|=16384;var _groupcallDefaultJoinAs=v.groupcallDefaultJoinAs!==undefined;if(_groupcallDefaultJoinAs)flags|=32768;var _themeEmoticon=v.themeEmoticon!==undefined;if(_themeEmoticon)flags|=65536;var _requestsPending=v.requestsPending!==undefined;var _recentRequesters=v.recentRequesters&&v.recentRequesters.length;var _flags_17=_requestsPending||_recentRequesters;if(_flags_17)flags|=131072;var _availableReactions=v.availableReactions!==undefined;if(_availableReactions)flags|=262144;if(v.translationsDisabled===true)flags|=524288;var _reactionsLimit=v.reactionsLimit!==undefined;if(_reactionsLimit)flags|=1048576;w.uint(flags);w.int53(h(v,'id'));w.string(h(v,'about'));w.object(h(v,'participants'));if(_chatPhoto)w.object(v.chatPhoto);w.object(h(v,'notifySettings'));if(_exportedInvite)w.object(v.exportedInvite);if(_botInfo)w.vector(w.object,v.botInfo);if(_pinnedMsgId)w.int(v.pinnedMsgId);if(_folderId)w.int(v.folderId);if(_call)w.object(v.call);if(_ttlPeriod)w.int(v.ttlPeriod);if(_groupcallDefaultJoinAs)w.object(v.groupcallDefaultJoinAs);if(_themeEmoticon)w.string(v.themeEmoticon);if(_flags_17)w.int(v.requestsPending);if(_flags_17)w.vector(w.long,v.recentRequesters);if(_availableReactions)w.object(v.availableReactions);if(_reactionsLimit)w.int(v.reactionsLimit);},
|
|
92
|
-
'channelFull':function(w,v){w.uint(
|
|
93
|
+
'channelFull':function(w,v){w.uint(3765709278);var flags=0;var _participantsCount=v.participantsCount!==undefined;if(_participantsCount)flags|=1;var _adminsCount=v.adminsCount!==undefined;if(_adminsCount)flags|=2;var _kickedCount=v.kickedCount!==undefined;var _bannedCount=v.bannedCount!==undefined;var _flags_2=_kickedCount||_bannedCount;if(_flags_2)flags|=4;if(v.canViewParticipants===true)flags|=8;var _migratedFromChatId=v.migratedFromChatId!==undefined;var _migratedFromMaxId=v.migratedFromMaxId!==undefined;var _flags_4=_migratedFromChatId||_migratedFromMaxId;if(_flags_4)flags|=16;var _pinnedMsgId=v.pinnedMsgId!==undefined;if(_pinnedMsgId)flags|=32;if(v.canSetUsername===true)flags|=64;if(v.canSetStickers===true)flags|=128;var _stickerset=v.stickerset!==undefined;if(_stickerset)flags|=256;var _availableMinId=v.availableMinId!==undefined;if(_availableMinId)flags|=512;if(v.hiddenPrehistory===true)flags|=1024;var _folderId=v.folderId!==undefined;if(_folderId)flags|=2048;var _statsDc=v.statsDc!==undefined;if(_statsDc)flags|=4096;var _onlineCount=v.onlineCount!==undefined;if(_onlineCount)flags|=8192;var _linkedChatId=v.linkedChatId!==undefined;if(_linkedChatId)flags|=16384;var _location=v.location!==undefined;if(_location)flags|=32768;if(v.canSetLocation===true)flags|=65536;var _slowmodeSeconds=v.slowmodeSeconds!==undefined;if(_slowmodeSeconds)flags|=131072;var _slowmodeNextSendDate=v.slowmodeNextSendDate!==undefined;if(_slowmodeNextSendDate)flags|=262144;if(v.hasScheduled===true)flags|=524288;if(v.canViewStats===true)flags|=1048576;var _call=v.call!==undefined;if(_call)flags|=2097152;if(v.blocked===true)flags|=4194304;var _exportedInvite=v.exportedInvite!==undefined;if(_exportedInvite)flags|=8388608;var _ttlPeriod=v.ttlPeriod!==undefined;if(_ttlPeriod)flags|=16777216;var _pendingSuggestions=v.pendingSuggestions&&v.pendingSuggestions.length;if(_pendingSuggestions)flags|=33554432;var _groupcallDefaultJoinAs=v.groupcallDefaultJoinAs!==undefined;if(_groupcallDefaultJoinAs)flags|=67108864;var _themeEmoticon=v.themeEmoticon!==undefined;if(_themeEmoticon)flags|=134217728;var _requestsPending=v.requestsPending!==undefined;var _recentRequesters=v.recentRequesters&&v.recentRequesters.length;var _flags_28=_requestsPending||_recentRequesters;if(_flags_28)flags|=268435456;var _defaultSendAs=v.defaultSendAs!==undefined;if(_defaultSendAs)flags|=536870912;var _availableReactions=v.availableReactions!==undefined;if(_availableReactions)flags|=1073741824;w.uint(flags);var flags2=0;if(v.canDeleteChannel===true)flags2|=1;if(v.antispam===true)flags2|=2;if(v.participantsHidden===true)flags2|=4;if(v.translationsDisabled===true)flags2|=8;var _stories=v.stories!==undefined;if(_stories)flags2|=16;if(v.storiesPinnedAvailable===true)flags2|=32;if(v.viewForumAsMessages===true)flags2|=64;var _wallpaper=v.wallpaper!==undefined;if(_wallpaper)flags2|=128;var _boostsApplied=v.boostsApplied!==undefined;if(_boostsApplied)flags2|=256;var _boostsUnrestrict=v.boostsUnrestrict!==undefined;if(_boostsUnrestrict)flags2|=512;var _emojiset=v.emojiset!==undefined;if(_emojiset)flags2|=1024;if(v.restrictedSponsored===true)flags2|=2048;if(v.canViewRevenue===true)flags2|=4096;var _reactionsLimit=v.reactionsLimit!==undefined;if(_reactionsLimit)flags2|=8192;if(v.paidMediaAllowed===true)flags2|=16384;if(v.canViewStarsRevenue===true)flags2|=32768;if(v.paidReactionsAvailable===true)flags2|=65536;var _botVerification=v.botVerification!==undefined;if(_botVerification)flags2|=131072;var _stargiftsCount=v.stargiftsCount!==undefined;if(_stargiftsCount)flags2|=262144;if(v.stargiftsAvailable===true)flags2|=524288;if(v.paidMessagesAvailable===true)flags2|=1048576;var _sendPaidMessagesStars=v.sendPaidMessagesStars!==undefined;if(_sendPaidMessagesStars)flags2|=2097152;w.uint(flags2);w.int53(h(v,'id'));w.string(h(v,'about'));if(_participantsCount)w.int(v.participantsCount);if(_adminsCount)w.int(v.adminsCount);if(_flags_2)w.int(v.kickedCount);if(_flags_2)w.int(v.bannedCount);if(_onlineCount)w.int(v.onlineCount);w.int(h(v,'readInboxMaxId'));w.int(h(v,'readOutboxMaxId'));w.int(h(v,'unreadCount'));w.object(h(v,'chatPhoto'));w.object(h(v,'notifySettings'));if(_exportedInvite)w.object(v.exportedInvite);w.vector(w.object,h(v,'botInfo'));if(_flags_4)w.long(v.migratedFromChatId);if(_flags_4)w.int(v.migratedFromMaxId);if(_pinnedMsgId)w.int(v.pinnedMsgId);if(_stickerset)w.object(v.stickerset);if(_availableMinId)w.int(v.availableMinId);if(_folderId)w.int(v.folderId);if(_linkedChatId)w.int53(v.linkedChatId);if(_location)w.object(v.location);if(_slowmodeSeconds)w.int(v.slowmodeSeconds);if(_slowmodeNextSendDate)w.int(v.slowmodeNextSendDate);if(_statsDc)w.int(v.statsDc);w.int(h(v,'pts'));if(_call)w.object(v.call);if(_ttlPeriod)w.int(v.ttlPeriod);if(_pendingSuggestions)w.vector(w.string,v.pendingSuggestions);if(_groupcallDefaultJoinAs)w.object(v.groupcallDefaultJoinAs);if(_themeEmoticon)w.string(v.themeEmoticon);if(_flags_28)w.int(v.requestsPending);if(_flags_28)w.vector(w.int53,v.recentRequesters);if(_defaultSendAs)w.object(v.defaultSendAs);if(_availableReactions)w.object(v.availableReactions);if(_reactionsLimit)w.int(v.reactionsLimit);if(_stories)w.object(v.stories);if(_wallpaper)w.object(v.wallpaper);if(_boostsApplied)w.int(v.boostsApplied);if(_boostsUnrestrict)w.int(v.boostsUnrestrict);if(_emojiset)w.object(v.emojiset);if(_botVerification)w.object(v.botVerification);if(_stargiftsCount)w.int(v.stargiftsCount);if(_sendPaidMessagesStars)w.long(v.sendPaidMessagesStars);},
|
|
93
94
|
'chatParticipant':function(w,v){w.uint(3224190983);w.int53(h(v,'userId'));w.int53(h(v,'inviterId'));w.int(h(v,'date'));},
|
|
94
95
|
'chatParticipantCreator':function(w,v){w.uint(3832270564);w.int53(h(v,'userId'));},
|
|
95
96
|
'chatParticipantAdmin':function(w,v){w.uint(2694004571);w.int53(h(v,'userId'));w.int53(h(v,'inviterId'));w.int(h(v,'date'));},
|
|
@@ -98,8 +99,8 @@ var m={
|
|
|
98
99
|
'chatPhotoEmpty':function(w){w.uint(935395612);},
|
|
99
100
|
'chatPhoto':function(w,v){w.uint(476978193);var flags=0;if(v.hasVideo===true)flags|=1;var _strippedThumb=v.strippedThumb!==undefined;if(_strippedThumb)flags|=2;w.uint(flags);w.long(h(v,'photoId'));if(_strippedThumb)w.bytes(v.strippedThumb);w.int(h(v,'dcId'));},
|
|
100
101
|
'messageEmpty':function(w,v){w.uint(2426849924);var flags=0;var _peerId=v.peerId!==undefined;if(_peerId)flags|=1;w.uint(flags);w.int(h(v,'id'));if(_peerId)w.object(v.peerId);},
|
|
101
|
-
'message':function(w,v){w.uint(
|
|
102
|
-
'messageService':function(w,v){w.uint(
|
|
102
|
+
'message':function(w,v){w.uint(2551566024);var flags=0;if(v.out===true)flags|=2;var _fwdFrom=v.fwdFrom!==undefined;if(_fwdFrom)flags|=4;var _replyTo=v.replyTo!==undefined;if(_replyTo)flags|=8;if(v.mentioned===true)flags|=16;if(v.mediaUnread===true)flags|=32;var _replyMarkup=v.replyMarkup!==undefined;if(_replyMarkup)flags|=64;var _entities=v.entities&&v.entities.length;if(_entities)flags|=128;var _fromId=v.fromId!==undefined;if(_fromId)flags|=256;var _media=v.media!==undefined;if(_media)flags|=512;var _views=v.views!==undefined;var _forwards=v.forwards!==undefined;var _flags_10=_views||_forwards;if(_flags_10)flags|=1024;var _viaBotId=v.viaBotId!==undefined;if(_viaBotId)flags|=2048;if(v.silent===true)flags|=8192;if(v.post===true)flags|=16384;var _editDate=v.editDate!==undefined;if(_editDate)flags|=32768;var _postAuthor=v.postAuthor!==undefined;if(_postAuthor)flags|=65536;var _groupedId=v.groupedId!==undefined;if(_groupedId)flags|=131072;if(v.fromScheduled===true)flags|=262144;if(v.legacy===true)flags|=524288;var _reactions=v.reactions!==undefined;if(_reactions)flags|=1048576;if(v.editHide===true)flags|=2097152;var _restrictionReason=v.restrictionReason&&v.restrictionReason.length;if(_restrictionReason)flags|=4194304;var _replies=v.replies!==undefined;if(_replies)flags|=8388608;if(v.pinned===true)flags|=16777216;var _ttlPeriod=v.ttlPeriod!==undefined;if(_ttlPeriod)flags|=33554432;if(v.noforwards===true)flags|=67108864;if(v.invertMedia===true)flags|=134217728;var _savedPeerId=v.savedPeerId!==undefined;if(_savedPeerId)flags|=268435456;var _fromBoostsApplied=v.fromBoostsApplied!==undefined;if(_fromBoostsApplied)flags|=536870912;var _quickReplyShortcutId=v.quickReplyShortcutId!==undefined;if(_quickReplyShortcutId)flags|=1073741824;w.uint(flags);var flags2=0;var _viaBusinessBotId=v.viaBusinessBotId!==undefined;if(_viaBusinessBotId)flags2|=1;if(v.offline===true)flags2|=2;var _effect=v.effect!==undefined;if(_effect)flags2|=4;var _factcheck=v.factcheck!==undefined;if(_factcheck)flags2|=8;if(v.videoProcessingPending===true)flags2|=16;var _reportDeliveryUntilDate=v.reportDeliveryUntilDate!==undefined;if(_reportDeliveryUntilDate)flags2|=32;var _paidMessageStars=v.paidMessageStars!==undefined;if(_paidMessageStars)flags2|=64;var _suggestedPost=v.suggestedPost!==undefined;if(_suggestedPost)flags2|=128;if(v.paidSuggestedPostStars===true)flags2|=256;if(v.paidSuggestedPostTon===true)flags2|=512;w.uint(flags2);w.int(h(v,'id'));if(_fromId)w.object(v.fromId);if(_fromBoostsApplied)w.int(v.fromBoostsApplied);w.object(h(v,'peerId'));if(_savedPeerId)w.object(v.savedPeerId);if(_fwdFrom)w.object(v.fwdFrom);if(_viaBotId)w.int53(v.viaBotId);if(_viaBusinessBotId)w.int53(v.viaBusinessBotId);if(_replyTo)w.object(v.replyTo);w.int(h(v,'date'));w.string(h(v,'message'));if(_media)w.object(v.media);if(_replyMarkup)w.object(v.replyMarkup);if(_entities)w.vector(w.object,v.entities);if(_flags_10)w.int(v.views);if(_flags_10)w.int(v.forwards);if(_replies)w.object(v.replies);if(_editDate)w.int(v.editDate);if(_postAuthor)w.string(v.postAuthor);if(_groupedId)w.long(v.groupedId);if(_reactions)w.object(v.reactions);if(_restrictionReason)w.vector(w.object,v.restrictionReason);if(_ttlPeriod)w.int(v.ttlPeriod);if(_quickReplyShortcutId)w.int(v.quickReplyShortcutId);if(_effect)w.long(v.effect);if(_factcheck)w.object(v.factcheck);if(_reportDeliveryUntilDate)w.int(v.reportDeliveryUntilDate);if(_paidMessageStars)w.long(v.paidMessageStars);if(_suggestedPost)w.object(v.suggestedPost);},
|
|
103
|
+
'messageService':function(w,v){w.uint(2055212554);var flags=0;if(v.out===true)flags|=2;var _replyTo=v.replyTo!==undefined;if(_replyTo)flags|=8;if(v.mentioned===true)flags|=16;if(v.mediaUnread===true)flags|=32;var _fromId=v.fromId!==undefined;if(_fromId)flags|=256;if(v.reactionsArePossible===true)flags|=512;if(v.silent===true)flags|=8192;if(v.post===true)flags|=16384;if(v.legacy===true)flags|=524288;var _reactions=v.reactions!==undefined;if(_reactions)flags|=1048576;var _ttlPeriod=v.ttlPeriod!==undefined;if(_ttlPeriod)flags|=33554432;var _savedPeerId=v.savedPeerId!==undefined;if(_savedPeerId)flags|=268435456;w.uint(flags);w.int(h(v,'id'));if(_fromId)w.object(v.fromId);w.object(h(v,'peerId'));if(_savedPeerId)w.object(v.savedPeerId);if(_replyTo)w.object(v.replyTo);w.int(h(v,'date'));w.object(h(v,'action'));if(_reactions)w.object(v.reactions);if(_ttlPeriod)w.int(v.ttlPeriod);},
|
|
103
104
|
'messageMediaEmpty':function(w){w.uint(1038967584);},
|
|
104
105
|
'messageMediaPhoto':function(w,v){w.uint(1766936791);var flags=0;var _photo=v.photo!==undefined;if(_photo)flags|=1;var _ttlSeconds=v.ttlSeconds!==undefined;if(_ttlSeconds)flags|=4;if(v.spoiler===true)flags|=8;w.uint(flags);if(_photo)w.object(v.photo);if(_ttlSeconds)w.int(v.ttlSeconds);},
|
|
105
106
|
'messageMediaGeo':function(w,v){w.uint(1457575028);w.object(h(v,'geo'));},
|
|
@@ -117,6 +118,7 @@ var m={
|
|
|
117
118
|
'messageMediaGiveaway':function(w,v){w.uint(2852600811);var flags=0;if(v.onlyNewSubscribers===true)flags|=1;var _countriesIso2=v.countriesIso2&&v.countriesIso2.length;if(_countriesIso2)flags|=2;if(v.winnersAreVisible===true)flags|=4;var _prizeDescription=v.prizeDescription!==undefined;if(_prizeDescription)flags|=8;var _months=v.months!==undefined;if(_months)flags|=16;var _stars=v.stars!==undefined;if(_stars)flags|=32;w.uint(flags);w.vector(w.int53,h(v,'channels'));if(_countriesIso2)w.vector(w.string,v.countriesIso2);if(_prizeDescription)w.string(v.prizeDescription);w.int(h(v,'quantity'));if(_months)w.int(v.months);if(_stars)w.long(v.stars);w.int(h(v,'untilDate'));},
|
|
118
119
|
'messageMediaGiveawayResults':function(w,v){w.uint(3467263649);var flags=0;if(v.onlyNewSubscribers===true)flags|=1;var _prizeDescription=v.prizeDescription!==undefined;if(_prizeDescription)flags|=2;if(v.refunded===true)flags|=4;var _additionalPeersCount=v.additionalPeersCount!==undefined;if(_additionalPeersCount)flags|=8;var _months=v.months!==undefined;if(_months)flags|=16;var _stars=v.stars!==undefined;if(_stars)flags|=32;w.uint(flags);w.long(h(v,'channelId'));if(_additionalPeersCount)w.int(v.additionalPeersCount);w.int(h(v,'launchMsgId'));w.int(h(v,'winnersCount'));w.int(h(v,'unclaimedCount'));w.vector(w.long,h(v,'winners'));if(_months)w.int(v.months);if(_stars)w.long(v.stars);if(_prizeDescription)w.string(v.prizeDescription);w.int(h(v,'untilDate'));},
|
|
119
120
|
'messageMediaPaidMedia':function(w,v){w.uint(2827297937);w.long(h(v,'starsAmount'));w.vector(w.object,h(v,'extendedMedia'));},
|
|
121
|
+
'messageMediaToDo':function(w,v){w.uint(2320740372);var flags=0;var _completions=v.completions&&v.completions.length;if(_completions)flags|=1;w.uint(flags);w.object(h(v,'todo'));if(_completions)w.vector(w.object,v.completions);},
|
|
120
122
|
'messageActionEmpty':function(w){w.uint(3064919984);},
|
|
121
123
|
'messageActionChatCreate':function(w,v){w.uint(3175599021);w.string(h(v,'title'));w.vector(w.int53,h(v,'users'));},
|
|
122
124
|
'messageActionChatEditTitle':function(w,v){w.uint(3047280218);w.string(h(v,'title'));},
|
|
@@ -168,6 +170,8 @@ var m={
|
|
|
168
170
|
'messageActionPaidMessagesRefunded':function(w,v){w.uint(2887720909);w.int(h(v,'count'));w.long(h(v,'stars'));},
|
|
169
171
|
'messageActionPaidMessagesPrice':function(w,v){w.uint(2226685304);var flags=0;if(v.broadcastMessagesAllowed===true)flags|=1;w.uint(flags);w.long(h(v,'stars'));},
|
|
170
172
|
'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);},
|
|
173
|
+
'messageActionTodoCompletions':function(w,v){w.uint(3430702217);w.vector(w.int,h(v,'completed'));w.vector(w.int,h(v,'incompleted'));},
|
|
174
|
+
'messageActionTodoAppendTasks':function(w,v){w.uint(3354246275);w.vector(w.object,h(v,'list'));},
|
|
171
175
|
'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);},
|
|
172
176
|
'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'));},
|
|
173
177
|
'photoEmpty':function(w,v){w.uint(590459437);w.long(h(v,'id'));},
|
|
@@ -386,6 +390,9 @@ var m={
|
|
|
386
390
|
'updatePaidReactionPrivacy':function(w,v){w.uint(2339528654);w.object(h(v,'private'));},
|
|
387
391
|
'updateSentPhoneCode':function(w,v){w.uint(1347068303);w.object(h(v,'sentCode'));},
|
|
388
392
|
'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'));},
|
|
393
|
+
'updateReadMonoForumInbox':function(w,v){w.uint(2008081266);w.int53(h(v,'channelId'));w.object(h(v,'savedPeerId'));w.int(h(v,'readMaxId'));},
|
|
394
|
+
'updateReadMonoForumOutbox':function(w,v){w.uint(2762445686);w.int53(h(v,'channelId'));w.object(h(v,'savedPeerId'));w.int(h(v,'readMaxId'));},
|
|
395
|
+
'updateMonoForumNoPaidException':function(w,v){w.uint(2676042504);var flags=0;if(v.exception===true)flags|=1;w.uint(flags);w.int53(h(v,'channelId'));w.object(h(v,'savedPeerId'));},
|
|
389
396
|
'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'));},
|
|
390
397
|
'updates.differenceEmpty':function(w,v){w.uint(1567990072);w.int(h(v,'date'));w.int(h(v,'seq'));},
|
|
391
398
|
'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'));},
|
|
@@ -689,7 +696,7 @@ var m={
|
|
|
689
696
|
'contacts.topPeers':function(w,v){w.uint(1891070632);w.vector(w.object,h(v,'categories'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
690
697
|
'contacts.topPeersDisabled':function(w){w.uint(3039597469);},
|
|
691
698
|
'draftMessageEmpty':function(w,v){w.uint(453805082);var flags=0;var _date=v.date!==undefined;if(_date)flags|=1;w.uint(flags);if(_date)w.int(v.date);},
|
|
692
|
-
'draftMessage':function(w,v){w.uint(
|
|
699
|
+
'draftMessage':function(w,v){w.uint(2531960299);var flags=0;if(v.noWebpage===true)flags|=2;var _entities=v.entities&&v.entities.length;if(_entities)flags|=8;var _replyTo=v.replyTo!==undefined;if(_replyTo)flags|=16;var _media=v.media!==undefined;if(_media)flags|=32;if(v.invertMedia===true)flags|=64;var _effect=v.effect!==undefined;if(_effect)flags|=128;var _suggestedPost=v.suggestedPost!==undefined;if(_suggestedPost)flags|=256;w.uint(flags);if(_replyTo)w.object(v.replyTo);w.string(h(v,'message'));if(_entities)w.vector(w.object,v.entities);if(_media)w.object(v.media);w.int(h(v,'date'));if(_effect)w.long(v.effect);if(_suggestedPost)w.object(v.suggestedPost);},
|
|
693
700
|
'messages.featuredStickersNotModified':function(w,v){w.uint(3336309862);w.int(h(v,'count'));},
|
|
694
701
|
'messages.featuredStickers':function(w,v){w.uint(3191351558);var flags=0;if(v.premium===true)flags|=1;w.uint(flags);w.long(h(v,'hash'));w.int(h(v,'count'));w.vector(w.object,h(v,'sets'));w.vector(w.long,h(v,'unread'));},
|
|
695
702
|
'messages.recentStickersNotModified':function(w){w.uint(186120336);},
|
|
@@ -966,7 +973,7 @@ var m={
|
|
|
966
973
|
'pollResults':function(w,v){w.uint(2061444128);var flags=0;if(v.min===true)flags|=1;var _results=v.results&&v.results.length;if(_results)flags|=2;var _totalVoters=v.totalVoters!==undefined;if(_totalVoters)flags|=4;var _recentVoters=v.recentVoters&&v.recentVoters.length;if(_recentVoters)flags|=8;var _solution=v.solution!==undefined;var _solutionEntities=v.solutionEntities&&v.solutionEntities.length;var _flags_4=_solution||_solutionEntities;if(_flags_4)flags|=16;w.uint(flags);if(_results)w.vector(w.object,v.results);if(_totalVoters)w.int(v.totalVoters);if(_recentVoters)w.vector(w.object,v.recentVoters);if(_flags_4)w.string(v.solution);if(_flags_4)w.vector(w.object,v.solutionEntities);},
|
|
967
974
|
'chatOnlines':function(w,v){w.uint(4030849616);w.int(h(v,'onlines'));},
|
|
968
975
|
'statsURL':function(w,v){w.uint(1202287072);w.string(h(v,'url'));},
|
|
969
|
-
'chatAdminRights':function(w,v){w.uint(1605510357);var flags=0;if(v.changeInfo===true)flags|=1;if(v.postMessages===true)flags|=2;if(v.editMessages===true)flags|=4;if(v.deleteMessages===true)flags|=8;if(v.banUsers===true)flags|=16;if(v.inviteUsers===true)flags|=32;if(v.pinMessages===true)flags|=128;if(v.addAdmins===true)flags|=512;if(v.anonymous===true)flags|=1024;if(v.manageCall===true)flags|=2048;if(v.other===true)flags|=4096;if(v.manageTopics===true)flags|=8192;if(v.postStories===true)flags|=16384;if(v.editStories===true)flags|=32768;if(v.deleteStories===true)flags|=65536;w.uint(flags);},
|
|
976
|
+
'chatAdminRights':function(w,v){w.uint(1605510357);var flags=0;if(v.changeInfo===true)flags|=1;if(v.postMessages===true)flags|=2;if(v.editMessages===true)flags|=4;if(v.deleteMessages===true)flags|=8;if(v.banUsers===true)flags|=16;if(v.inviteUsers===true)flags|=32;if(v.pinMessages===true)flags|=128;if(v.addAdmins===true)flags|=512;if(v.anonymous===true)flags|=1024;if(v.manageCall===true)flags|=2048;if(v.other===true)flags|=4096;if(v.manageTopics===true)flags|=8192;if(v.postStories===true)flags|=16384;if(v.editStories===true)flags|=32768;if(v.deleteStories===true)flags|=65536;if(v.manageDirectMessages===true)flags|=131072;w.uint(flags);},
|
|
970
977
|
'chatBannedRights':function(w,v){w.uint(2668758040);var flags=0;if(v.viewMessages===true)flags|=1;if(v.sendMessages===true)flags|=2;if(v.sendMedia===true)flags|=4;if(v.sendStickers===true)flags|=8;if(v.sendGifs===true)flags|=16;if(v.sendGames===true)flags|=32;if(v.sendInline===true)flags|=64;if(v.embedLinks===true)flags|=128;if(v.sendPolls===true)flags|=256;if(v.changeInfo===true)flags|=1024;if(v.inviteUsers===true)flags|=32768;if(v.pinMessages===true)flags|=131072;if(v.manageTopics===true)flags|=262144;if(v.sendPhotos===true)flags|=524288;if(v.sendVideos===true)flags|=1048576;if(v.sendRoundvideos===true)flags|=2097152;if(v.sendAudios===true)flags|=4194304;if(v.sendVoices===true)flags|=8388608;if(v.sendDocs===true)flags|=16777216;if(v.sendPlain===true)flags|=33554432;w.uint(flags);w.int(h(v,'untilDate'));},
|
|
971
978
|
'inputWallPaper':function(w,v){w.uint(3861952889);w.long(h(v,'id'));w.long(h(v,'accessHash'));},
|
|
972
979
|
'inputWallPaperSlug':function(w,v){w.uint(1913199744);w.string(h(v,'slug'));},
|
|
@@ -1091,8 +1098,8 @@ var m={
|
|
|
1091
1098
|
'account.resetPasswordFailedWait':function(w,v){w.uint(3816265825);w.int(h(v,'retryDate'));},
|
|
1092
1099
|
'account.resetPasswordRequestedWait':function(w,v){w.uint(3924819069);w.int(h(v,'untilDate'));},
|
|
1093
1100
|
'account.resetPasswordOk':function(w){w.uint(3911636542);},
|
|
1094
|
-
'sponsoredMessage':function(w,v){w.uint(
|
|
1095
|
-
'messages.sponsoredMessages':function(w,v){w.uint(
|
|
1101
|
+
'sponsoredMessage':function(w,v){w.uint(2109703795);var flags=0;var _entities=v.entities&&v.entities.length;if(_entities)flags|=2;if(v.recommended===true)flags|=32;var _photo=v.photo!==undefined;if(_photo)flags|=64;var _sponsorInfo=v.sponsorInfo!==undefined;if(_sponsorInfo)flags|=128;var _additionalInfo=v.additionalInfo!==undefined;if(_additionalInfo)flags|=256;if(v.canReport===true)flags|=4096;var _color=v.color!==undefined;if(_color)flags|=8192;var _media=v.media!==undefined;if(_media)flags|=16384;var _minDisplayDuration=v.minDisplayDuration!==undefined;var _maxDisplayDuration=v.maxDisplayDuration!==undefined;var _flags_15=_minDisplayDuration||_maxDisplayDuration;if(_flags_15)flags|=32768;w.uint(flags);w.bytes(h(v,'randomId'));w.string(h(v,'url'));w.string(h(v,'title'));w.string(h(v,'message'));if(_entities)w.vector(w.object,v.entities);if(_photo)w.object(v.photo);if(_media)w.object(v.media);if(_color)w.object(v.color);w.string(h(v,'buttonText'));if(_sponsorInfo)w.string(v.sponsorInfo);if(_additionalInfo)w.string(v.additionalInfo);if(_flags_15)w.int(v.minDisplayDuration);if(_flags_15)w.int(v.maxDisplayDuration);},
|
|
1102
|
+
'messages.sponsoredMessages':function(w,v){w.uint(4292502893);var flags=0;var _postsBetween=v.postsBetween!==undefined;if(_postsBetween)flags|=1;var _startDelay=v.startDelay!==undefined;if(_startDelay)flags|=2;var _betweenDelay=v.betweenDelay!==undefined;if(_betweenDelay)flags|=4;w.uint(flags);if(_postsBetween)w.int(v.postsBetween);if(_startDelay)w.int(v.startDelay);if(_betweenDelay)w.int(v.betweenDelay);w.vector(w.object,h(v,'messages'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1096
1103
|
'messages.sponsoredMessagesEmpty':function(w){w.uint(406407439);},
|
|
1097
1104
|
'searchResultsCalendarPeriod':function(w,v){w.uint(3383776159);w.int(h(v,'date'));w.int(h(v,'minMsgId'));w.int(h(v,'maxMsgId'));w.int(h(v,'count'));},
|
|
1098
1105
|
'messages.searchResultsCalendar':function(w,v){w.uint(343859772);var flags=0;if(v.inexact===true)flags|=1;var _offsetIdOffset=v.offsetIdOffset!==undefined;if(_offsetIdOffset)flags|=2;w.uint(flags);w.int(h(v,'count'));w.int(h(v,'minDate'));w.int(h(v,'minMsgId'));if(_offsetIdOffset)w.int(v.offsetIdOffset);w.vector(w.object,h(v,'periods'));w.vector(w.object,h(v,'messages'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
@@ -1242,6 +1249,7 @@ var m={
|
|
|
1242
1249
|
'stories.storyViews':function(w,v){w.uint(3734957341);w.vector(w.object,h(v,'views'));w.vector(w.object,h(v,'users'));},
|
|
1243
1250
|
'inputReplyToMessage':function(w,v){w.uint(2960144560);var flags=0;var _topMsgId=v.topMsgId!==undefined;if(_topMsgId)flags|=1;var _replyToPeerId=v.replyToPeerId!==undefined;if(_replyToPeerId)flags|=2;var _quoteText=v.quoteText!==undefined;if(_quoteText)flags|=4;var _quoteEntities=v.quoteEntities&&v.quoteEntities.length;if(_quoteEntities)flags|=8;var _quoteOffset=v.quoteOffset!==undefined;if(_quoteOffset)flags|=16;var _monoforumPeerId=v.monoforumPeerId!==undefined;if(_monoforumPeerId)flags|=32;w.uint(flags);w.int(h(v,'replyToMsgId'));if(_topMsgId)w.int(v.topMsgId);if(_replyToPeerId)w.object(v.replyToPeerId);if(_quoteText)w.string(v.quoteText);if(_quoteEntities)w.vector(w.object,v.quoteEntities);if(_quoteOffset)w.int(v.quoteOffset);if(_monoforumPeerId)w.object(v.monoforumPeerId);},
|
|
1244
1251
|
'inputReplyToStory':function(w,v){w.uint(1484862010);w.object(h(v,'peer'));w.int(h(v,'storyId'));},
|
|
1252
|
+
'inputReplyToMonoForum':function(w,v){w.uint(1775660101);w.object(h(v,'monoforumPeerId'));},
|
|
1245
1253
|
'exportedStoryLink':function(w,v){w.uint(1070138683);w.string(h(v,'link'));},
|
|
1246
1254
|
'storiesStealthMode':function(w,v){w.uint(1898850301);var flags=0;var _activeUntilDate=v.activeUntilDate!==undefined;if(_activeUntilDate)flags|=1;var _cooldownUntilDate=v.cooldownUntilDate!==undefined;if(_cooldownUntilDate)flags|=2;w.uint(flags);if(_activeUntilDate)w.int(v.activeUntilDate);if(_cooldownUntilDate)w.int(v.cooldownUntilDate);},
|
|
1247
1255
|
'mediaAreaCoordinates':function(w,v){w.uint(3486113794);var flags=0;var _radius=v.radius!==undefined;if(_radius)flags|=1;w.uint(flags);w.double(h(v,'x'));w.double(h(v,'y'));w.double(h(v,'w'));w.double(h(v,'h'));w.double(h(v,'rotation'));if(_radius)w.double(v.radius);},
|
|
@@ -1286,6 +1294,7 @@ var m={
|
|
|
1286
1294
|
'storyReactionPublicRepost':function(w,v){w.uint(3486322451);w.object(h(v,'peerId'));w.object(h(v,'story'));},
|
|
1287
1295
|
'stories.storyReactionsList':function(w,v){w.uint(2858383516);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,'reactions'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));if(_nextOffset)w.string(v.nextOffset);},
|
|
1288
1296
|
'savedDialog':function(w,v){w.uint(3179793260);var flags=0;if(v.pinned===true)flags|=4;w.uint(flags);w.object(h(v,'peer'));w.int(h(v,'topMessage'));},
|
|
1297
|
+
'monoForumDialog':function(w,v){w.uint(1681948327);var flags=0;var _draft=v.draft!==undefined;if(_draft)flags|=2;if(v.unreadMark===true)flags|=8;if(v.nopaidMessagesException===true)flags|=16;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,'unreadReactionsCount'));if(_draft)w.object(v.draft);},
|
|
1289
1298
|
'messages.savedDialogs':function(w,v){w.uint(4164608545);w.vector(w.object,h(v,'dialogs'));w.vector(w.object,h(v,'messages'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1290
1299
|
'messages.savedDialogsSlice':function(w,v){w.uint(1153080793);w.int(h(v,'count'));w.vector(w.object,h(v,'dialogs'));w.vector(w.object,h(v,'messages'));w.vector(w.object,h(v,'chats'));w.vector(w.object,h(v,'users'));},
|
|
1291
1300
|
'messages.savedDialogsNotModified':function(w,v){w.uint(3223285736);w.int(h(v,'count'));},
|
|
@@ -1367,13 +1376,13 @@ var m={
|
|
|
1367
1376
|
'starsTransactionPeerAds':function(w){w.uint(1617438738);},
|
|
1368
1377
|
'starsTransactionPeerAPI':function(w){w.uint(4184308397);},
|
|
1369
1378
|
'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'));},
|
|
1370
|
-
'starsTransaction':function(w,v){w.uint(
|
|
1379
|
+
'starsTransaction':function(w,v){w.uint(325426864);var flags=0;var _title=v.title!==undefined;if(_title)flags|=1;var _description=v.description!==undefined;if(_description)flags|=2;var _photo=v.photo!==undefined;if(_photo)flags|=4;if(v.refund===true)flags|=8;if(v.pending===true)flags|=16;var _transactionDate=v.transactionDate!==undefined;var _transactionUrl=v.transactionUrl!==undefined;var _flags_5=_transactionDate||_transactionUrl;if(_flags_5)flags|=32;if(v.failed===true)flags|=64;var _botPayload=v.botPayload!==undefined;if(_botPayload)flags|=128;var _msgId=v.msgId!==undefined;if(_msgId)flags|=256;var _extendedMedia=v.extendedMedia&&v.extendedMedia.length;if(_extendedMedia)flags|=512;if(v.gift===true)flags|=1024;if(v.reaction===true)flags|=2048;var _subscriptionPeriod=v.subscriptionPeriod!==undefined;if(_subscriptionPeriod)flags|=4096;var _giveawayPostId=v.giveawayPostId!==undefined;if(_giveawayPostId)flags|=8192;var _stargift=v.stargift!==undefined;if(_stargift)flags|=16384;var _floodskipNumber=v.floodskipNumber!==undefined;if(_floodskipNumber)flags|=32768;var _starrefCommissionPermille=v.starrefCommissionPermille!==undefined;if(_starrefCommissionPermille)flags|=65536;var _starrefPeer=v.starrefPeer!==undefined;var _starrefAmount=v.starrefAmount!==undefined;var _flags_17=_starrefPeer||_starrefAmount;if(_flags_17)flags|=131072;if(v.stargiftUpgrade===true)flags|=262144;var _paidMessages=v.paidMessages!==undefined;if(_paidMessages)flags|=524288;var _premiumGiftMonths=v.premiumGiftMonths!==undefined;if(_premiumGiftMonths)flags|=1048576;if(v.businessTransfer===true)flags|=2097152;if(v.stargiftResale===true)flags|=4194304;var _adsProceedsFromDate=v.adsProceedsFromDate!==undefined;var _adsProceedsToDate=v.adsProceedsToDate!==undefined;var _flags_23=_adsProceedsFromDate||_adsProceedsToDate;if(_flags_23)flags|=8388608;w.uint(flags);w.string(h(v,'id'));w.object(h(v,'amount'));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);if(_flags_23)w.int(v.adsProceedsFromDate);if(_flags_23)w.int(v.adsProceedsToDate);},
|
|
1371
1380
|
'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'));},
|
|
1372
1381
|
'foundStory':function(w,v){w.uint(3900361664);w.object(h(v,'peer'));w.object(h(v,'story'));},
|
|
1373
1382
|
'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'));},
|
|
1374
1383
|
'geoPointAddress':function(w,v){w.uint(3729546643);var flags=0;var _state=v.state!==undefined;if(_state)flags|=1;var _city=v.city!==undefined;if(_city)flags|=2;var _street=v.street!==undefined;if(_street)flags|=4;w.uint(flags);w.string(h(v,'countryIso2'));if(_state)w.string(v.state);if(_city)w.string(v.city);if(_street)w.string(v.street);},
|
|
1375
1384
|
'starsRevenueStatus':function(w,v){w.uint(4273886353);var flags=0;if(v.withdrawalEnabled===true)flags|=1;var _nextWithdrawalAt=v.nextWithdrawalAt!==undefined;if(_nextWithdrawalAt)flags|=2;w.uint(flags);w.object(h(v,'currentBalance'));w.object(h(v,'availableBalance'));w.object(h(v,'overallRevenue'));if(_nextWithdrawalAt)w.int(v.nextWithdrawalAt);},
|
|
1376
|
-
'payments.starsRevenueStats':function(w,v){w.uint(
|
|
1385
|
+
'payments.starsRevenueStats':function(w,v){w.uint(1814066038);var flags=0;var _topHoursGraph=v.topHoursGraph!==undefined;if(_topHoursGraph)flags|=1;w.uint(flags);if(_topHoursGraph)w.object(v.topHoursGraph);w.object(h(v,'revenueGraph'));w.object(h(v,'status'));w.double(h(v,'usdRate'));},
|
|
1377
1386
|
'payments.starsRevenueWithdrawalUrl':function(w,v){w.uint(497778871);w.string(h(v,'url'));},
|
|
1378
1387
|
'payments.starsRevenueAdsAccountUrl':function(w,v){w.uint(961445665);w.string(h(v,'url'));},
|
|
1379
1388
|
'inputStarsTransaction':function(w,v){w.uint(543876817);var flags=0;if(v.refund===true)flags|=1;w.uint(flags);w.string(h(v,'id'));},
|
|
@@ -1440,10 +1449,16 @@ var m={
|
|
|
1440
1449
|
'payments.resaleStarGifts':function(w,v){w.uint(2491028191);var flags=0;var _nextOffset=v.nextOffset!==undefined;if(_nextOffset)flags|=1;var _attributes=v.attributes&&v.attributes.length;var _attributesHash=v.attributesHash!==undefined;var _flags_1=_attributes||_attributesHash;if(_flags_1)flags|=2;var _counters=v.counters&&v.counters.length;if(_counters)flags|=4;w.uint(flags);w.int(h(v,'count'));w.vector(w.object,h(v,'gifts'));if(_nextOffset)w.string(v.nextOffset);if(_flags_1)w.vector(w.object,v.attributes);if(_flags_1)w.long(v.attributesHash);w.vector(w.object,h(v,'chats'));if(_counters)w.vector(w.object,v.counters);w.vector(w.object,h(v,'users'));},
|
|
1441
1450
|
'stories.canSendStoryCount':function(w,v){w.uint(3280453710);w.int(h(v,'countRemains'));},
|
|
1442
1451
|
'pendingSuggestion':function(w,v){w.uint(3890753042);w.string(h(v,'suggestion'));w.object(h(v,'title'));w.object(h(v,'description'));w.string(h(v,'url'));},
|
|
1443
|
-
'
|
|
1444
|
-
'
|
|
1445
|
-
'
|
|
1446
|
-
'
|
|
1452
|
+
'todoItem':function(w,v){w.uint(3416892719);w.int(h(v,'id'));w.object(h(v,'title'));},
|
|
1453
|
+
'todoList':function(w,v){w.uint(1236871718);var flags=0;if(v.othersCanAppend===true)flags|=1;if(v.othersCanComplete===true)flags|=2;w.uint(flags);w.object(h(v,'title'));w.vector(w.object,h(v,'list'));},
|
|
1454
|
+
'todoCompletion':function(w,v){w.uint(1287725239);w.int(h(v,'id'));w.int53(h(v,'completedBy'));w.int(h(v,'date'));},
|
|
1455
|
+
'messageActionSuggestedPostApproval':function(w,v){w.uint(4000978326);var flags=0;if(v.rejected===true)flags|=1;if(v.balanceTooLow===true)flags|=2;var _rejectComment=v.rejectComment!==undefined;if(_rejectComment)flags|=4;var _scheduleDate=v.scheduleDate!==undefined;if(_scheduleDate)flags|=8;var _price=v.price!==undefined;if(_price)flags|=16;w.uint(flags);if(_rejectComment)w.string(v.rejectComment);if(_scheduleDate)w.int(v.scheduleDate);if(_price)w.object(v.price);},
|
|
1456
|
+
'messageActionSuggestedPostSuccess':function(w,v){w.uint(2514341737);w.object(h(v,'price'));},
|
|
1457
|
+
'messageActionSuggestedPostRefund':function(w,v){w.uint(1777932024);var flags=0;if(v.payerInitiated===true)flags|=1;w.uint(flags);},
|
|
1458
|
+
'messageActionGiftTon':function(w,v){w.uint(2829305497);var flags=0;var _transactionId=v.transactionId!==undefined;if(_transactionId)flags|=1;w.uint(flags);w.string(h(v,'currency'));w.long(h(v,'amount'));w.string(h(v,'cryptoCurrency'));w.long(h(v,'cryptoAmount'));if(_transactionId)w.string(v.transactionId);},
|
|
1459
|
+
'inputStickerSetTonGifts':function(w){w.uint(485912992);},
|
|
1460
|
+
'starsTonAmount':function(w,v){w.uint(1957618656);w.long(h(v,'amount'));},
|
|
1461
|
+
'suggestedPost':function(w,v){w.uint(244201445);var flags=0;var _scheduleDate=v.scheduleDate!==undefined;if(_scheduleDate)flags|=1;if(v.accepted===true)flags|=2;if(v.rejected===true)flags|=4;var _price=v.price!==undefined;if(_price)flags|=8;w.uint(flags);if(_price)w.object(v.price);if(_scheduleDate)w.int(v.scheduleDate);},
|
|
1447
1462
|
'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);},
|
|
1448
1463
|
'emojiStatusUntil':function(w,v){w.uint(4197492935);w.long(h(v,'documentId'));w.int(h(v,'until'));},
|
|
1449
1464
|
'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);},
|
|
@@ -1601,8 +1616,8 @@ var m={
|
|
|
1601
1616
|
'account.getReactionsNotifySettings':function(w){w.uint(115172684);},
|
|
1602
1617
|
'account.setReactionsNotifySettings':function(w,v){w.uint(829220168);w.object(h(v,'settings'));},
|
|
1603
1618
|
'account.getCollectibleEmojiStatuses':function(w,v){w.uint(779830595);w.long(h(v,'hash'));},
|
|
1604
|
-
'account.
|
|
1605
|
-
'account.
|
|
1619
|
+
'account.getPaidMessagesRevenue':function(w,v){w.uint(431639143);var flags=0;var _parentPeer=v.parentPeer!==undefined;if(_parentPeer)flags|=1;w.uint(flags);if(_parentPeer)w.object(v.parentPeer);w.object(h(v,'userId'));},
|
|
1620
|
+
'account.toggleNoPaidMessagesException':function(w,v){w.uint(4264483446);var flags=0;if(v.refundCharged===true)flags|=1;var _parentPeer=v.parentPeer!==undefined;if(_parentPeer)flags|=2;if(v.requirePayment===true)flags|=4;w.uint(flags);if(_parentPeer)w.object(v.parentPeer);w.object(h(v,'userId'));},
|
|
1606
1621
|
'users.getUsers':function(w,v){w.uint(227648840);w.vector(w.object,h(v,'id'));},
|
|
1607
1622
|
'users.getFullUser':function(w,v){w.uint(3054459160);w.object(h(v,'id'));},
|
|
1608
1623
|
'users.setSecureValueErrors':function(w,v){w.uint(2429064373);w.object(h(v,'id'));w.vector(w.object,h(v,'errors'));},
|
|
@@ -1643,9 +1658,9 @@ var m={
|
|
|
1643
1658
|
'messages.deleteMessages':function(w,v){w.uint(3851326930);var flags=0;if(v.revoke===true)flags|=1;w.uint(flags);w.vector(w.int,h(v,'id'));},
|
|
1644
1659
|
'messages.receivedMessages':function(w,v){w.uint(94983360);w.int(h(v,'maxId'));},
|
|
1645
1660
|
'messages.setTyping':function(w,v){w.uint(1486110434);var flags=0;var _topMsgId=v.topMsgId!==undefined;if(_topMsgId)flags|=1;w.uint(flags);w.object(h(v,'peer'));if(_topMsgId)w.int(v.topMsgId);w.object(h(v,'action'));},
|
|
1646
|
-
'messages.sendMessage':function(w,v){w.uint(
|
|
1647
|
-
'messages.sendMedia':function(w,v){w.uint(
|
|
1648
|
-
'messages.forwardMessages':function(w,v){w.uint(
|
|
1661
|
+
'messages.sendMessage':function(w,v){w.uint(4261797018);var flags=0;var _replyTo=v.replyTo!==undefined;if(_replyTo)flags|=1;if(v.noWebpage===true)flags|=2;var _replyMarkup=v.replyMarkup!==undefined;if(_replyMarkup)flags|=4;var _entities=v.entities&&v.entities.length;if(_entities)flags|=8;if(v.silent===true)flags|=32;if(v.background===true)flags|=64;if(v.clearDraft===true)flags|=128;var _scheduleDate=v.scheduleDate!==undefined;if(_scheduleDate)flags|=1024;var _sendAs=v.sendAs!==undefined;if(_sendAs)flags|=8192;if(v.noforwards===true)flags|=16384;if(v.updateStickersetsOrder===true)flags|=32768;if(v.invertMedia===true)flags|=65536;var _quickReplyShortcut=v.quickReplyShortcut!==undefined;if(_quickReplyShortcut)flags|=131072;var _effect=v.effect!==undefined;if(_effect)flags|=262144;if(v.allowPaidFloodskip===true)flags|=524288;var _allowPaidStars=v.allowPaidStars!==undefined;if(_allowPaidStars)flags|=2097152;var _suggestedPost=v.suggestedPost!==undefined;if(_suggestedPost)flags|=4194304;w.uint(flags);w.object(h(v,'peer'));if(_replyTo)w.object(v.replyTo);w.string(h(v,'message'));w.long(h(v,'randomId'));if(_replyMarkup)w.object(v.replyMarkup);if(_entities)w.vector(w.object,v.entities);if(_scheduleDate)w.int(v.scheduleDate);if(_sendAs)w.object(v.sendAs);if(_quickReplyShortcut)w.object(v.quickReplyShortcut);if(_effect)w.long(v.effect);if(_allowPaidStars)w.long(v.allowPaidStars);if(_suggestedPost)w.object(v.suggestedPost);},
|
|
1662
|
+
'messages.sendMedia':function(w,v){w.uint(2891307457);var flags=0;var _replyTo=v.replyTo!==undefined;if(_replyTo)flags|=1;var _replyMarkup=v.replyMarkup!==undefined;if(_replyMarkup)flags|=4;var _entities=v.entities&&v.entities.length;if(_entities)flags|=8;if(v.silent===true)flags|=32;if(v.background===true)flags|=64;if(v.clearDraft===true)flags|=128;var _scheduleDate=v.scheduleDate!==undefined;if(_scheduleDate)flags|=1024;var _sendAs=v.sendAs!==undefined;if(_sendAs)flags|=8192;if(v.noforwards===true)flags|=16384;if(v.updateStickersetsOrder===true)flags|=32768;if(v.invertMedia===true)flags|=65536;var _quickReplyShortcut=v.quickReplyShortcut!==undefined;if(_quickReplyShortcut)flags|=131072;var _effect=v.effect!==undefined;if(_effect)flags|=262144;if(v.allowPaidFloodskip===true)flags|=524288;var _allowPaidStars=v.allowPaidStars!==undefined;if(_allowPaidStars)flags|=2097152;var _suggestedPost=v.suggestedPost!==undefined;if(_suggestedPost)flags|=4194304;w.uint(flags);w.object(h(v,'peer'));if(_replyTo)w.object(v.replyTo);w.object(h(v,'media'));w.string(h(v,'message'));w.long(h(v,'randomId'));if(_replyMarkup)w.object(v.replyMarkup);if(_entities)w.vector(w.object,v.entities);if(_scheduleDate)w.int(v.scheduleDate);if(_sendAs)w.object(v.sendAs);if(_quickReplyShortcut)w.object(v.quickReplyShortcut);if(_effect)w.long(v.effect);if(_allowPaidStars)w.long(v.allowPaidStars);if(_suggestedPost)w.object(v.suggestedPost);},
|
|
1663
|
+
'messages.forwardMessages':function(w,v){w.uint(2542348490);var flags=0;if(v.silent===true)flags|=32;if(v.background===true)flags|=64;if(v.withMyScore===true)flags|=256;var _topMsgId=v.topMsgId!==undefined;if(_topMsgId)flags|=512;var _scheduleDate=v.scheduleDate!==undefined;if(_scheduleDate)flags|=1024;if(v.dropAuthor===true)flags|=2048;if(v.dropMediaCaptions===true)flags|=4096;var _sendAs=v.sendAs!==undefined;if(_sendAs)flags|=8192;if(v.noforwards===true)flags|=16384;var _quickReplyShortcut=v.quickReplyShortcut!==undefined;if(_quickReplyShortcut)flags|=131072;if(v.allowPaidFloodskip===true)flags|=524288;var _videoTimestamp=v.videoTimestamp!==undefined;if(_videoTimestamp)flags|=1048576;var _allowPaidStars=v.allowPaidStars!==undefined;if(_allowPaidStars)flags|=2097152;var _replyTo=v.replyTo!==undefined;if(_replyTo)flags|=4194304;var _suggestedPost=v.suggestedPost!==undefined;if(_suggestedPost)flags|=8388608;w.uint(flags);w.object(h(v,'fromPeer'));w.vector(w.int,h(v,'id'));w.vector(w.long,h(v,'randomId'));w.object(h(v,'toPeer'));if(_topMsgId)w.int(v.topMsgId);if(_replyTo)w.object(v.replyTo);if(_scheduleDate)w.int(v.scheduleDate);if(_sendAs)w.object(v.sendAs);if(_quickReplyShortcut)w.object(v.quickReplyShortcut);if(_videoTimestamp)w.int(v.videoTimestamp);if(_allowPaidStars)w.long(v.allowPaidStars);if(_suggestedPost)w.object(v.suggestedPost);},
|
|
1649
1664
|
'messages.reportSpam':function(w,v){w.uint(3474297563);w.object(h(v,'peer'));},
|
|
1650
1665
|
'messages.getPeerSettings':function(w,v){w.uint(4024018594);w.object(h(v,'peer'));},
|
|
1651
1666
|
'messages.report':function(w,v){w.uint(4235767707);w.object(h(v,'peer'));w.vector(w.int,h(v,'id'));w.bytes(h(v,'option'));w.string(h(v,'message'));},
|
|
@@ -1695,7 +1710,7 @@ var m={
|
|
|
1695
1710
|
'messages.getBotCallbackAnswer':function(w,v){w.uint(2470627847);var flags=0;var _data=v.data!==undefined;if(_data)flags|=1;if(v.game===true)flags|=2;var _password=v.password!==undefined;if(_password)flags|=4;w.uint(flags);w.object(h(v,'peer'));w.int(h(v,'msgId'));if(_data)w.bytes(v.data);if(_password)w.object(v.password);},
|
|
1696
1711
|
'messages.setBotCallbackAnswer':function(w,v){w.uint(3582923530);var flags=0;var _message=v.message!==undefined;if(_message)flags|=1;if(v.alert===true)flags|=2;var _url=v.url!==undefined;if(_url)flags|=4;w.uint(flags);w.long(h(v,'queryId'));if(_message)w.string(v.message);if(_url)w.string(v.url);w.int(h(v,'cacheTime'));},
|
|
1697
1712
|
'messages.getPeerDialogs':function(w,v){w.uint(3832593661);w.vector(w.object,h(v,'peers'));},
|
|
1698
|
-
'messages.saveDraft':function(w,v){w.uint(
|
|
1713
|
+
'messages.saveDraft':function(w,v){w.uint(1420701838);var flags=0;if(v.noWebpage===true)flags|=2;var _entities=v.entities&&v.entities.length;if(_entities)flags|=8;var _replyTo=v.replyTo!==undefined;if(_replyTo)flags|=16;var _media=v.media!==undefined;if(_media)flags|=32;if(v.invertMedia===true)flags|=64;var _effect=v.effect!==undefined;if(_effect)flags|=128;var _suggestedPost=v.suggestedPost!==undefined;if(_suggestedPost)flags|=256;w.uint(flags);if(_replyTo)w.object(v.replyTo);w.object(h(v,'peer'));w.string(h(v,'message'));if(_entities)w.vector(w.object,v.entities);if(_media)w.object(v.media);if(_effect)w.long(v.effect);if(_suggestedPost)w.object(v.suggestedPost);},
|
|
1699
1714
|
'messages.getAllDrafts':function(w){w.uint(1782549861);},
|
|
1700
1715
|
'messages.getFeaturedStickers':function(w,v){w.uint(1685588756);w.long(h(v,'hash'));},
|
|
1701
1716
|
'messages.readFeaturedStickers':function(w,v){w.uint(1527873830);w.vector(w.long,h(v,'id'));},
|
|
@@ -1854,11 +1869,15 @@ var m={
|
|
|
1854
1869
|
'messages.viewSponsoredMessage':function(w,v){w.uint(647902787);w.bytes(h(v,'randomId'));},
|
|
1855
1870
|
'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'));},
|
|
1856
1871
|
'messages.reportSponsoredMessage':function(w,v){w.uint(315355332);w.bytes(h(v,'randomId'));w.bytes(h(v,'option'));},
|
|
1857
|
-
'messages.getSponsoredMessages':function(w,v){w.uint(
|
|
1872
|
+
'messages.getSponsoredMessages':function(w,v){w.uint(1030547536);var flags=0;var _msgId=v.msgId!==undefined;if(_msgId)flags|=1;w.uint(flags);w.object(h(v,'peer'));if(_msgId)w.int(v.msgId);},
|
|
1858
1873
|
'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);},
|
|
1859
1874
|
'messages.getPreparedInlineMessage':function(w,v){w.uint(2239675832);w.object(h(v,'bot'));w.string(h(v,'id'));},
|
|
1860
1875
|
'messages.searchStickers':function(w,v){w.uint(699516522);var flags=0;if(v.emojis===true)flags|=1;w.uint(flags);w.string(h(v,'q'));w.string(h(v,'emoticon'));w.vector(w.string,h(v,'langCode'));w.int(h(v,'offset'));w.int(h(v,'limit'));w.long(h(v,'hash'));},
|
|
1861
1876
|
'messages.reportMessagesDelivery':function(w,v){w.uint(1517122453);var flags=0;if(v.push===true)flags|=1;w.uint(flags);w.object(h(v,'peer'));w.vector(w.int,h(v,'id'));},
|
|
1877
|
+
'messages.getSavedDialogsByID':function(w,v){w.uint(1869585558);var flags=0;var _parentPeer=v.parentPeer!==undefined;if(_parentPeer)flags|=2;w.uint(flags);if(_parentPeer)w.object(v.parentPeer);w.vector(w.object,h(v,'ids'));},
|
|
1878
|
+
'messages.readSavedHistory':function(w,v){w.uint(3125427035);w.object(h(v,'parentPeer'));w.object(h(v,'peer'));w.int(h(v,'maxId'));},
|
|
1879
|
+
'messages.toggleTodoCompleted':function(w,v){w.uint(3554685220);w.object(h(v,'peer'));w.int(h(v,'msgId'));w.vector(w.int,h(v,'completed'));w.vector(w.int,h(v,'incompleted'));},
|
|
1880
|
+
'messages.appendTodoList':function(w,v){w.uint(564531287);w.object(h(v,'peer'));w.int(h(v,'msgId'));w.vector(w.object,h(v,'list'));},
|
|
1862
1881
|
'updates.getState':function(w){w.uint(3990128682);},
|
|
1863
1882
|
'updates.getDifference':function(w,v){w.uint(432207715);var flags=0;var _ptsTotalLimit=v.ptsTotalLimit!==undefined;if(_ptsTotalLimit)flags|=1;var _ptsLimit=v.ptsLimit!==undefined;if(_ptsLimit)flags|=2;var _qtsLimit=v.qtsLimit!==undefined;if(_qtsLimit)flags|=4;w.uint(flags);w.int(h(v,'pts'));if(_ptsLimit)w.int(v.ptsLimit);if(_ptsTotalLimit)w.int(v.ptsTotalLimit);w.int(h(v,'date'));w.int(h(v,'qts'));if(_qtsLimit)w.int(v.qtsLimit);},
|
|
1864
1883
|
'updates.getChannelDifference':function(w,v){w.uint(51854712);var flags=0;if(v.force===true)flags|=1;w.uint(flags);w.object(h(v,'channel'));w.object(h(v,'filter'));w.int(h(v,'pts'));w.int(h(v,'limit'));},
|
|
@@ -1963,6 +1982,7 @@ var m={
|
|
|
1963
1982
|
'channels.searchPosts':function(w,v){w.uint(3516897403);w.string(h(v,'hashtag'));w.int(h(v,'offsetRate'));w.object(h(v,'offsetPeer'));w.int(h(v,'offsetId'));w.int(h(v,'limit'));},
|
|
1964
1983
|
'channels.updatePaidMessagesPrice':function(w,v){w.uint(1259483771);var flags=0;if(v.broadcastMessagesAllowed===true)flags|=1;w.uint(flags);w.object(h(v,'channel'));w.long(h(v,'sendPaidMessagesStars'));},
|
|
1965
1984
|
'channels.toggleAutotranslation':function(w,v){w.uint(377471137);w.object(h(v,'channel'));w.boolean(h(v,'enabled'));},
|
|
1985
|
+
'channels.getMessageAuthor':function(w,v){w.uint(3974275302);w.object(h(v,'channel'));w.int(h(v,'id'));},
|
|
1966
1986
|
'bots.sendCustomRequest':function(w,v){w.uint(2854709741);w.string(h(v,'customMethod'));w.object(h(v,'params'));},
|
|
1967
1987
|
'bots.answerWebhookJSONQuery':function(w,v){w.uint(3860938573);w.long(h(v,'queryId'));w.object(h(v,'data'));},
|
|
1968
1988
|
'bots.setBotCommands':function(w,v){w.uint(85399130);w.object(h(v,'scope'));w.string(h(v,'langCode'));w.vector(w.object,h(v,'commands'));},
|
|
@@ -2009,14 +2029,14 @@ var m={
|
|
|
2009
2029
|
'payments.getGiveawayInfo':function(w,v){w.uint(4095972389);w.object(h(v,'peer'));w.int(h(v,'msgId'));},
|
|
2010
2030
|
'payments.launchPrepaidGiveaway':function(w,v){w.uint(1609928480);w.object(h(v,'peer'));w.long(h(v,'giveawayId'));w.object(h(v,'purpose'));},
|
|
2011
2031
|
'payments.getStarsTopupOptions':function(w){w.uint(3222194131);},
|
|
2012
|
-
'payments.getStarsStatus':function(w,v){w.uint(
|
|
2013
|
-
'payments.getStarsTransactions':function(w,v){w.uint(1775912279);var flags=0;if(v.inbound===true)flags|=1;if(v.outbound===true)flags|=2;if(v.ascending===true)flags|=4;var _subscriptionId=v.subscriptionId!==undefined;if(_subscriptionId)flags|=8;w.uint(flags);if(_subscriptionId)w.string(v.subscriptionId);w.object(h(v,'peer'));w.string(h(v,'offset'));w.int(h(v,'limit'));},
|
|
2032
|
+
'payments.getStarsStatus':function(w,v){w.uint(1319744447);var flags=0;if(v.ton===true)flags|=1;w.uint(flags);w.object(h(v,'peer'));},
|
|
2033
|
+
'payments.getStarsTransactions':function(w,v){w.uint(1775912279);var flags=0;if(v.inbound===true)flags|=1;if(v.outbound===true)flags|=2;if(v.ascending===true)flags|=4;var _subscriptionId=v.subscriptionId!==undefined;if(_subscriptionId)flags|=8;if(v.ton===true)flags|=16;w.uint(flags);if(_subscriptionId)w.string(v.subscriptionId);w.object(h(v,'peer'));w.string(h(v,'offset'));w.int(h(v,'limit'));},
|
|
2014
2034
|
'payments.sendStarsForm':function(w,v){w.uint(2040056084);w.long(h(v,'formId'));w.object(h(v,'invoice'));},
|
|
2015
2035
|
'payments.refundStarsCharge':function(w,v){w.uint(632196938);w.object(h(v,'userId'));w.string(h(v,'chargeId'));},
|
|
2016
|
-
'payments.getStarsRevenueStats':function(w,v){w.uint(3642751702);var flags=0;if(v.dark===true)flags|=1;w.uint(flags);w.object(h(v,'peer'));},
|
|
2017
|
-
'payments.getStarsRevenueWithdrawalUrl':function(w,v){w.uint(
|
|
2036
|
+
'payments.getStarsRevenueStats':function(w,v){w.uint(3642751702);var flags=0;if(v.dark===true)flags|=1;if(v.ton===true)flags|=2;w.uint(flags);w.object(h(v,'peer'));},
|
|
2037
|
+
'payments.getStarsRevenueWithdrawalUrl':function(w,v){w.uint(607378578);var flags=0;if(v.ton===true)flags|=1;var _amount=v.amount!==undefined;if(_amount)flags|=2;w.uint(flags);w.object(h(v,'peer'));if(_amount)w.long(v.amount);w.object(h(v,'password'));},
|
|
2018
2038
|
'payments.getStarsRevenueAdsAccountUrl':function(w,v){w.uint(3520589765);w.object(h(v,'peer'));},
|
|
2019
|
-
'payments.getStarsTransactionsByID':function(w,v){w.uint(
|
|
2039
|
+
'payments.getStarsTransactionsByID':function(w,v){w.uint(768218808);var flags=0;if(v.ton===true)flags|=1;w.uint(flags);w.object(h(v,'peer'));w.vector(w.object,h(v,'id'));},
|
|
2020
2040
|
'payments.getStarsGiftOptions':function(w,v){w.uint(3553192904);var flags=0;var _userId=v.userId!==undefined;if(_userId)flags|=1;w.uint(flags);if(_userId)w.object(v.userId);},
|
|
2021
2041
|
'payments.getStarsSubscriptions':function(w,v){w.uint(52761285);var flags=0;if(v.missingBalance===true)flags|=1;w.uint(flags);w.object(h(v,'peer'));w.string(h(v,'offset'));},
|
|
2022
2042
|
'payments.changeStarsSubscription':function(w,v){w.uint(3346466936);var flags=0;var _canceled=v.canceled!==undefined;if(_canceled)flags|=1;w.uint(flags);w.object(h(v,'peer'));w.string(h(v,'subscriptionId'));if(_canceled)w.boolean(v.canceled);},
|
|
@@ -2157,12 +2177,11 @@ var m={
|
|
|
2157
2177
|
'smsjobs.getSmsJob':function(w,v){w.uint(2005766191);w.string(h(v,'jobId'));},
|
|
2158
2178
|
'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);},
|
|
2159
2179
|
'fragment.getCollectibleInfo':function(w,v){w.uint(3189671354);w.object(h(v,'collectible'));},
|
|
2160
|
-
'messages.
|
|
2161
|
-
'messages.readSavedHistory':function(w,v){w.uint(3125427035);w.object(h(v,'parentPeer'));w.object(h(v,'peer'));w.int(h(v,'maxId'));},
|
|
2162
|
-
'channels.getMessageAuthor':function(w,v){w.uint(3974275302);w.object(h(v,'channel'));w.int(h(v,'id'));},
|
|
2180
|
+
'messages.toggleSuggestedPostApproval':function(w,v){w.uint(2164737372);var flags=0;var _scheduleDate=v.scheduleDate!==undefined;if(_scheduleDate)flags|=1;if(v.reject===true)flags|=2;var _rejectComment=v.rejectComment!==undefined;if(_rejectComment)flags|=4;w.uint(flags);w.object(h(v,'peer'));w.int(h(v,'msgId'));if(_scheduleDate)w.int(v.scheduleDate);if(_rejectComment)w.string(v.rejectComment);},
|
|
2163
2181
|
'users.getIsPremiumRequiredToContact':function(w,v){w.uint(2787289616);w.vector(w.object,h(v,'id'));},
|
|
2164
2182
|
'payments.canPurchasePremium':function(w,v){w.uint(2680266422);w.object(h(v,'purpose'));},
|
|
2165
2183
|
'payments.getUserStarGifts':function(w,v){w.uint(1584580577);w.object(h(v,'userId'));w.string(h(v,'offset'));w.int(h(v,'limit'));},
|
|
2184
|
+
'account.addNoPaidMessagesException':function(w,v){w.uint(1869122215);var flags=0;if(v.refundCharged===true)flags|=1;w.uint(flags);w.object(h(v,'userId'));},
|
|
2166
2185
|
'mtcute.customMethod':function(w,v){w.raw(h(v,'bytes'));},
|
|
2167
2186
|
'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'));},
|
|
2168
2187
|
'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'));},
|
|
@@ -2350,6 +2369,9 @@ _staticSize:{
|
|
|
2350
2369
|
'updateChannelViewForumAsMessages':16,
|
|
2351
2370
|
'updateSavedReactionTags':4,
|
|
2352
2371
|
'updateDeleteQuickReply':8,
|
|
2372
|
+
'updateReadMonoForumInbox':28,
|
|
2373
|
+
'updateReadMonoForumOutbox':28,
|
|
2374
|
+
'updateMonoForumNoPaidException':28,
|
|
2353
2375
|
'updates.state':24,
|
|
2354
2376
|
'updates.differenceEmpty':12,
|
|
2355
2377
|
'updates.differenceTooLong':8,
|
|
@@ -2713,8 +2735,11 @@ _staticSize:{
|
|
|
2713
2735
|
'starGiftAttributeIdPattern':12,
|
|
2714
2736
|
'starGiftAttributeIdBackdrop':8,
|
|
2715
2737
|
'stories.canSendStoryCount':8,
|
|
2716
|
-
'
|
|
2717
|
-
'
|
|
2738
|
+
'todoCompletion':20,
|
|
2739
|
+
'messageActionSuggestedPostSuccess':20,
|
|
2740
|
+
'messageActionSuggestedPostRefund':8,
|
|
2741
|
+
'inputStickerSetTonGifts':4,
|
|
2742
|
+
'starsTonAmount':12,
|
|
2718
2743
|
'emojiStatusUntil':16,
|
|
2719
2744
|
'test.useConfigSimple':4,
|
|
2720
2745
|
'test.parseInputAppEvent':4,
|
|
@@ -2899,7 +2924,6 @@ _staticSize:{
|
|
|
2899
2924
|
'mt_destroy_auth_key':4,
|
|
2900
2925
|
'updateChatDefaultBannedRights':32,
|
|
2901
2926
|
'updateBroadcastRevenueTransactions':48,
|
|
2902
|
-
'updateStarsBalance':20,
|
|
2903
2927
|
'channelParticipantBanned':44,
|
|
2904
2928
|
'channelAdminLogEventActionDefaultBannedRights':28,
|
|
2905
2929
|
},
|