@mtcute/tl 200.0.0 → 202.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compat/index.d.ts CHANGED
@@ -202,7 +202,9 @@ export declare namespace tlCompat {
202
202
  * Compared to the current schema, changes from this entry:
203
203
  *
204
204
  * Added arguments:
205
+ * display_gifts_button: flags2.16?true
205
206
  * send_paid_messages_stars: flags2.14?long
207
+ * disallowed_gifts: flags2.15?DisallowedGiftsSettings
206
208
  * Removed arguments: premium_gifts
207
209
  */
208
210
  interface RawUserFull_layer199 {
@@ -408,6 +410,62 @@ export declare namespace tlCompat {
408
410
  factcheck?: tl.TypeFactCheck;
409
411
  reportDeliveryUntilDate?: number;
410
412
  }
413
+ /**
414
+ * Compared to the current schema, changes from this entry:
415
+ *
416
+ * Added arguments:
417
+ * display_gifts_button: flags2.16?true
418
+ * disallowed_gifts: flags2.15?DisallowedGiftsSettings
419
+ */
420
+ interface RawUserFull_layer200 {
421
+ _: 'userFull_layer200';
422
+ blocked?: boolean;
423
+ phoneCallsAvailable?: boolean;
424
+ phoneCallsPrivate?: boolean;
425
+ canPinMessage?: boolean;
426
+ hasScheduled?: boolean;
427
+ videoCallsAvailable?: boolean;
428
+ voiceMessagesForbidden?: boolean;
429
+ translationsDisabled?: boolean;
430
+ storiesPinnedAvailable?: boolean;
431
+ blockedMyStoriesFrom?: boolean;
432
+ wallpaperOverridden?: boolean;
433
+ contactRequirePremium?: boolean;
434
+ readDatesPrivate?: boolean;
435
+ sponsoredEnabled?: boolean;
436
+ canViewRevenue?: boolean;
437
+ botCanManageEmojiStatus?: boolean;
438
+ id: number;
439
+ about?: string;
440
+ settings: tl.TypePeerSettings;
441
+ personalPhoto?: tl.TypePhoto;
442
+ profilePhoto?: tl.TypePhoto;
443
+ fallbackPhoto?: tl.TypePhoto;
444
+ notifySettings: tl.TypePeerNotifySettings;
445
+ botInfo?: tl.TypeBotInfo;
446
+ pinnedMsgId?: number;
447
+ commonChatsCount: number;
448
+ folderId?: number;
449
+ ttlPeriod?: number;
450
+ themeEmoticon?: string;
451
+ privateForwardName?: string;
452
+ botGroupAdminRights?: tl.TypeChatAdminRights;
453
+ botBroadcastAdminRights?: tl.TypeChatAdminRights;
454
+ wallpaper?: tl.TypeWallPaper;
455
+ stories?: tl.TypePeerStories;
456
+ businessWorkHours?: tl.TypeBusinessWorkHours;
457
+ businessLocation?: tl.TypeBusinessLocation;
458
+ businessGreetingMessage?: tl.TypeBusinessGreetingMessage;
459
+ businessAwayMessage?: tl.TypeBusinessAwayMessage;
460
+ businessIntro?: tl.TypeBusinessIntro;
461
+ birthday?: tl.TypeBirthday;
462
+ personalChannelId?: number;
463
+ personalChannelMessage?: number;
464
+ stargiftsCount?: number;
465
+ starrefProgram?: tl.TypeStarRefProgram;
466
+ botVerification?: tl.TypeBotVerification;
467
+ sendPaidMessagesStars?: Long;
468
+ }
411
469
  interface RpcCallReturn {
412
470
  }
413
471
  type TypeStarGift = tlCompat.RawStarGiftUnique_layer197 | tlCompat.RawStarGiftUnique_layer198 | AnyToNever<tl.TypeStarGift>
@@ -415,7 +473,7 @@ export declare namespace tlCompat {
415
473
  type TypeMessageMedia = tlCompat.RawMessageMediaDocument_layer197 | AnyToNever<tl.TypeMessageMedia>
416
474
  type TypeChatFull = tlCompat.RawChannelFull_layer197 | AnyToNever<tl.TypeChatFull>
417
475
  type TypeMessageAction = tlCompat.RawMessageActionStarGiftUnique_layer197 | tlCompat.RawMessageActionStarGift_layer197 | AnyToNever<tl.TypeMessageAction>
418
- type TypeUserFull = tlCompat.RawUserFull_layer199 | AnyToNever<tl.TypeUserFull>
476
+ type TypeUserFull = tlCompat.RawUserFull_layer199 | tlCompat.RawUserFull_layer200 | AnyToNever<tl.TypeUserFull>
419
477
  type TypeUser = tlCompat.RawUser_layer199 | AnyToNever<tl.TypeUser>
420
478
  type TypeChat = tlCompat.RawChannel_layer199 | AnyToNever<tl.TypeChat>
421
479
  type TypeMessage = tlCompat.RawMessage_layer199 | AnyToNever<tl.TypeMessage>
@@ -432,5 +490,6 @@ export declare namespace tlCompat {
432
490
  | tlCompat.RawUser_layer199
433
491
  | tlCompat.RawChannel_layer199
434
492
  | tlCompat.RawMessage_layer199
493
+ | tlCompat.RawUserFull_layer200
435
494
  | tl.TlObject
436
495
  }
package/compat/reader.js CHANGED
@@ -13,5 +13,6 @@ var m={
13
13
  1262928766:function(r){var flags=r.uint(),flags2=r.uint();return{_:'user_layer199',self:!!(flags&1024),contact:!!(flags&2048),mutualContact:!!(flags&4096),deleted:!!(flags&8192),bot:!!(flags&16384),botChatHistory:!!(flags&32768),botNochats:!!(flags&65536),verified:!!(flags&131072),restricted:!!(flags&262144),min:!!(flags&1048576),botInlineGeo:!!(flags&2097152),support:!!(flags&8388608),scam:!!(flags&16777216),applyMinPhoto:!!(flags&33554432),fake:!!(flags&67108864),botAttachMenu:!!(flags&134217728),premium:!!(flags&268435456),attachMenuEnabled:!!(flags&536870912),botCanEdit:!!(flags2&2),closeFriend:!!(flags2&4),storiesHidden:!!(flags2&8),storiesUnavailable:!!(flags2&16),contactRequirePremium:!!(flags2&1024),botBusiness:!!(flags2&2048),botHasMainApp:!!(flags2&8192),id:r.int53(),accessHash:flags&1?r.long():void 0,firstName:flags&2?r.string():void 0,lastName:flags&4?r.string():void 0,username:flags&8?r.string():void 0,phone:flags&16?r.string():void 0,photo:flags&32?r.object():void 0,status:flags&64?r.object():void 0,botInfoVersion:flags&16384?r.int():void 0,restrictionReason:flags&262144?r.vector(r.object):void 0,botInlinePlaceholder:flags&524288?r.string():void 0,langCode:flags&4194304?r.string():void 0,emojiStatus:flags&1073741824?r.object():void 0,usernames:flags2&1?r.vector(r.object):void 0,storiesMaxId:flags2&32?r.int():void 0,color:flags2&256?r.object():void 0,profileColor:flags2&512?r.object():void 0,botActiveUsers:flags2&4096?r.int():void 0,botVerificationIcon:flags2&16384?r.long():void 0,}},
14
14
  3758725303:function(r){var flags=r.uint(),flags2=r.uint();return{_:'channel_layer199',creator:!!(flags&1),left:!!(flags&4),broadcast:!!(flags&32),verified:!!(flags&128),megagroup:!!(flags&256),restricted:!!(flags&512),signatures:!!(flags&2048),min:!!(flags&4096),scam:!!(flags&524288),hasLink:!!(flags&1048576),hasGeo:!!(flags&2097152),slowmodeEnabled:!!(flags&4194304),callActive:!!(flags&8388608),callNotEmpty:!!(flags&16777216),fake:!!(flags&33554432),gigagroup:!!(flags&67108864),noforwards:!!(flags&134217728),joinToSend:!!(flags&268435456),joinRequest:!!(flags&536870912),forum:!!(flags&1073741824),storiesHidden:!!(flags2&2),storiesHiddenMin:!!(flags2&4),storiesUnavailable:!!(flags2&8),signatureProfiles:!!(flags2&4096),id:r.int53(),accessHash:flags&8192?r.long():void 0,title:r.string(),username:flags&64?r.string():void 0,photo:r.object(),date:r.int(),restrictionReason:flags&512?r.vector(r.object):void 0,adminRights:flags&16384?r.object():void 0,bannedRights:flags&32768?r.object():void 0,defaultBannedRights:flags&262144?r.object():void 0,participantsCount:flags&131072?r.int():void 0,usernames:flags2&1?r.vector(r.object):void 0,storiesMaxId:flags2&16?r.int():void 0,color:flags2&128?r.object():void 0,profileColor:flags2&256?r.object():void 0,emojiStatus:flags2&512?r.object():void 0,level:flags2&1024?r.int():void 0,subscriptionUntilDate:flags2&2048?r.int():void 0,botVerificationIcon:flags2&8192?r.long():void 0,}},
15
15
  2533211113:function(r){var flags=r.uint(),flags2=r.uint();return{_:'message_layer199',out:!!(flags&2),mentioned:!!(flags&16),mediaUnread:!!(flags&32),silent:!!(flags&8192),post:!!(flags&16384),fromScheduled:!!(flags&262144),legacy:!!(flags&524288),editHide:!!(flags&2097152),pinned:!!(flags&16777216),noforwards:!!(flags&67108864),invertMedia:!!(flags&134217728),offline:!!(flags2&2),videoProcessingPending:!!(flags2&16),id:r.int(),fromId:flags&256?r.object():void 0,fromBoostsApplied:flags&536870912?r.int():void 0,peerId:r.object(),savedPeerId:flags&268435456?r.object():void 0,fwdFrom:flags&4?r.object():void 0,viaBotId:flags&2048?r.int53():void 0,viaBusinessBotId:flags2&1?r.int53():void 0,replyTo:flags&8?r.object():void 0,date:r.int(),message:r.string(),media:flags&512?r.object():void 0,replyMarkup:flags&64?r.object():void 0,entities:flags&128?r.vector(r.object):void 0,views:flags&1024?r.int():void 0,forwards:flags&1024?r.int():void 0,replies:flags&8388608?r.object():void 0,editDate:flags&32768?r.int():void 0,postAuthor:flags&65536?r.string():void 0,groupedId:flags&131072?r.long():void 0,reactions:flags&1048576?r.object():void 0,restrictionReason:flags&4194304?r.vector(r.object):void 0,ttlPeriod:flags&33554432?r.int():void 0,quickReplyShortcutId:flags&1073741824?r.int():void 0,effect:flags2&4?r.long():void 0,factcheck:flags2&8?r.object():void 0,reportDeliveryUntilDate:flags2&32?r.int():void 0,}},
16
+ 3525529248:function(r){var flags=r.uint(),flags2=r.uint();return{_:'userFull_layer200',blocked:!!(flags&1),phoneCallsAvailable:!!(flags&16),phoneCallsPrivate:!!(flags&32),canPinMessage:!!(flags&128),hasScheduled:!!(flags&4096),videoCallsAvailable:!!(flags&8192),voiceMessagesForbidden:!!(flags&1048576),translationsDisabled:!!(flags&8388608),storiesPinnedAvailable:!!(flags&67108864),blockedMyStoriesFrom:!!(flags&134217728),wallpaperOverridden:!!(flags&268435456),contactRequirePremium:!!(flags&536870912),readDatesPrivate:!!(flags&1073741824),sponsoredEnabled:!!(flags2&128),canViewRevenue:!!(flags2&512),botCanManageEmojiStatus:!!(flags2&1024),id:r.int53(),about:flags&2?r.string():void 0,settings:r.object(),personalPhoto:flags&2097152?r.object():void 0,profilePhoto:flags&4?r.object():void 0,fallbackPhoto:flags&4194304?r.object():void 0,notifySettings:r.object(),botInfo:flags&8?r.object():void 0,pinnedMsgId:flags&64?r.int():void 0,commonChatsCount:r.int(),folderId:flags&2048?r.int():void 0,ttlPeriod:flags&16384?r.int():void 0,themeEmoticon:flags&32768?r.string():void 0,privateForwardName:flags&65536?r.string():void 0,botGroupAdminRights:flags&131072?r.object():void 0,botBroadcastAdminRights:flags&262144?r.object():void 0,wallpaper:flags&16777216?r.object():void 0,stories:flags&33554432?r.object():void 0,businessWorkHours:flags2&1?r.object():void 0,businessLocation:flags2&2?r.object():void 0,businessGreetingMessage:flags2&4?r.object():void 0,businessAwayMessage:flags2&8?r.object():void 0,businessIntro:flags2&16?r.object():void 0,birthday:flags2&32?r.object():void 0,personalChannelId:flags2&64?r.int53():void 0,personalChannelMessage:flags2&64?r.int():void 0,stargiftsCount:flags2&256?r.int():void 0,starrefProgram:flags2&2048?r.object():void 0,botVerification:flags2&4096?r.object():void 0,sendPaidMessagesStars:flags2&16384?r.long():void 0,}},
16
17
  }
17
18
  exports.__tlReaderMapCompat = m;