@mtcute/tl 222.0.0 → 223.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
@@ -252,6 +252,8 @@ export declare namespace tlCompat {
252
252
  *
253
253
  * Added arguments:
254
254
  * display_gifts_button: flags2.16?true
255
+ * noforwards_my_enabled: flags2.23?true
256
+ * noforwards_peer_enabled: flags2.24?true
255
257
  * theme: flags.15?ChatTheme
256
258
  * send_paid_messages_stars: flags2.14?long
257
259
  * disallowed_gifts: flags2.15?DisallowedGiftsSettings
@@ -445,6 +447,7 @@ export declare namespace tlCompat {
445
447
  * Added arguments:
446
448
  * paid_suggested_post_stars: flags2.8?true
447
449
  * paid_suggested_post_ton: flags2.9?true
450
+ * from_rank: flags2.12?string
448
451
  * paid_message_stars: flags2.6?long
449
452
  * suggested_post: flags2.7?SuggestedPost
450
453
  * schedule_repeat_period: flags2.10?int
@@ -498,6 +501,8 @@ export declare namespace tlCompat {
498
501
  *
499
502
  * Added arguments:
500
503
  * display_gifts_button: flags2.16?true
504
+ * noforwards_my_enabled: flags2.23?true
505
+ * noforwards_peer_enabled: flags2.24?true
501
506
  * theme: flags.15?ChatTheme
502
507
  * disallowed_gifts: flags2.15?DisallowedGiftsSettings
503
508
  * stars_rating: flags2.17?StarsRating
@@ -836,6 +841,7 @@ export declare namespace tlCompat {
836
841
  * Added arguments:
837
842
  * paid_suggested_post_stars: flags2.8?true
838
843
  * paid_suggested_post_ton: flags2.9?true
844
+ * from_rank: flags2.12?string
839
845
  * suggested_post: flags2.7?SuggestedPost
840
846
  * schedule_repeat_period: flags2.10?int
841
847
  * summary_from_language: flags2.11?string
@@ -981,6 +987,8 @@ export declare namespace tlCompat {
981
987
  * Compared to the current schema, changes from this entry:
982
988
  *
983
989
  * Added arguments:
990
+ * noforwards_my_enabled: flags2.23?true
991
+ * noforwards_peer_enabled: flags2.24?true
984
992
  * theme: flags.15?ChatTheme
985
993
  * stars_rating: flags2.17?StarsRating
986
994
  * stars_my_pending_rating: flags2.18?StarsRating
@@ -1081,6 +1089,8 @@ export declare namespace tlCompat {
1081
1089
  * Compared to the current schema, changes from this entry:
1082
1090
  *
1083
1091
  * Added arguments:
1092
+ * noforwards_my_enabled: flags2.23?true
1093
+ * noforwards_peer_enabled: flags2.24?true
1084
1094
  * theme: flags.15?ChatTheme
1085
1095
  * stars_my_pending_rating: flags2.18?StarsRating
1086
1096
  * stars_my_pending_rating_date: flags2.18?int
@@ -1241,6 +1251,8 @@ export declare namespace tlCompat {
1241
1251
  * Compared to the current schema, changes from this entry:
1242
1252
  *
1243
1253
  * Added arguments:
1254
+ * noforwards_my_enabled: flags2.23?true
1255
+ * noforwards_peer_enabled: flags2.24?true
1244
1256
  * theme: flags.15?ChatTheme
1245
1257
  * main_tab: flags2.20?ProfileTab
1246
1258
  * saved_music: flags2.21?Document
@@ -1490,6 +1502,8 @@ export declare namespace tlCompat {
1490
1502
  * Compared to the current schema, changes from this entry:
1491
1503
  *
1492
1504
  * Added arguments:
1505
+ * noforwards_my_enabled: flags2.23?true
1506
+ * noforwards_peer_enabled: flags2.24?true
1493
1507
  * note: flags2.22?TextWithEntities
1494
1508
  */
1495
1509
  interface RawUserFull_layer214 {
@@ -1850,6 +1864,7 @@ export declare namespace tlCompat {
1850
1864
  * Compared to the current schema, changes from this entry:
1851
1865
  *
1852
1866
  * Added arguments:
1867
+ * from_rank: flags2.12?string
1853
1868
  * schedule_repeat_period: flags2.10?int
1854
1869
  * summary_from_language: flags2.11?string
1855
1870
  */
@@ -2029,6 +2044,7 @@ export declare namespace tlCompat {
2029
2044
  * Compared to the current schema, changes from this entry:
2030
2045
  *
2031
2046
  * Added arguments:
2047
+ * from_rank: flags2.12?string
2032
2048
  * summary_from_language: flags2.11?string
2033
2049
  */
2034
2050
  interface RawMessage_layer220 {
@@ -2406,6 +2422,98 @@ export declare namespace tlCompat {
2406
2422
  _: 'keyboardButton_layer221';
2407
2423
  text: string;
2408
2424
  }
2425
+ /**
2426
+ * Compared to the current schema, changes from this entry:
2427
+ *
2428
+ * Added arguments:
2429
+ * flags: #
2430
+ * rank: flags.0?string
2431
+ */
2432
+ interface RawChatParticipantAdmin_layer222 {
2433
+ _: 'chatParticipantAdmin_layer222';
2434
+ userId: number;
2435
+ inviterId: number;
2436
+ date: number;
2437
+ }
2438
+ /**
2439
+ * Compared to the current schema, changes from this entry:
2440
+ *
2441
+ * Added arguments:
2442
+ * flags: #
2443
+ * rank: flags.0?string
2444
+ */
2445
+ interface RawChatParticipantCreator_layer222 {
2446
+ _: 'chatParticipantCreator_layer222';
2447
+ userId: number;
2448
+ }
2449
+ /**
2450
+ * Compared to the current schema, changes from this entry:
2451
+ *
2452
+ * Added arguments:
2453
+ * flags: #
2454
+ * rank: flags.0?string
2455
+ */
2456
+ interface RawChatParticipant_layer222 {
2457
+ _: 'chatParticipant_layer222';
2458
+ userId: number;
2459
+ inviterId: number;
2460
+ date: number;
2461
+ }
2462
+ /**
2463
+ * Compared to the current schema, changes from this entry:
2464
+ *
2465
+ * Added arguments:
2466
+ * from_rank: flags2.12?string
2467
+ */
2468
+ interface RawMessage_layer222 {
2469
+ _: 'message_layer222';
2470
+ out?: boolean;
2471
+ mentioned?: boolean;
2472
+ mediaUnread?: boolean;
2473
+ silent?: boolean;
2474
+ post?: boolean;
2475
+ fromScheduled?: boolean;
2476
+ legacy?: boolean;
2477
+ editHide?: boolean;
2478
+ pinned?: boolean;
2479
+ noforwards?: boolean;
2480
+ invertMedia?: boolean;
2481
+ offline?: boolean;
2482
+ videoProcessingPending?: boolean;
2483
+ paidSuggestedPostStars?: boolean;
2484
+ paidSuggestedPostTon?: boolean;
2485
+ id: number;
2486
+ fromId?: tl.TypePeer;
2487
+ fromBoostsApplied?: number;
2488
+ peerId: tl.TypePeer;
2489
+ savedPeerId?: tl.TypePeer;
2490
+ fwdFrom?: tl.TypeMessageFwdHeader;
2491
+ viaBotId?: number;
2492
+ viaBusinessBotId?: number;
2493
+ replyTo?: tlCompat.TypeMessageReplyHeader;
2494
+ date: number;
2495
+ message: string;
2496
+ media?: tlCompat.TypeMessageMedia;
2497
+ replyMarkup?: tl.TypeReplyMarkup;
2498
+ entities?: tl.TypeMessageEntity[];
2499
+ views?: number;
2500
+ forwards?: number;
2501
+ replies?: tl.TypeMessageReplies;
2502
+ editDate?: number;
2503
+ postAuthor?: string;
2504
+ groupedId?: Long;
2505
+ reactions?: tl.TypeMessageReactions;
2506
+ restrictionReason?: tl.TypeRestrictionReason[];
2507
+ ttlPeriod?: number;
2508
+ quickReplyShortcutId?: number;
2509
+ effect?: Long;
2510
+ factcheck?: tl.TypeFactCheck;
2511
+ reportDeliveryUntilDate?: number;
2512
+ paidMessageStars?: Long;
2513
+ suggestedPost?: tl.TypeSuggestedPost;
2514
+ scheduleRepeatPeriod?: number;
2515
+ summaryFromLanguage?: string;
2516
+ }
2409
2517
  interface RpcCallReturn {
2410
2518
  }
2411
2519
  type TypeStarGift = tlCompat.RawStarGiftUnique_layer197 | tlCompat.RawStarGiftUnique_layer198 | tlCompat.RawStarGiftUnique_layer202 | tlCompat.RawStarGift_layer202 | tlCompat.RawStarGiftUnique_layer206 | tlCompat.RawStarGift_layer206 | tlCompat.RawStarGift_layer209 | tlCompat.RawStarGiftUnique_layer210 | tlCompat.RawStarGiftUnique_layer211 | tlCompat.RawStarGift_layer211 | tlCompat.RawStarGiftUnique_layer214 | tlCompat.RawStarGift_layer216 | tlCompat.RawStarGiftUnique_layer218 | tlCompat.RawStarGift_layer218 | tlCompat.RawStarGiftUnique_layer221 | tl.TypeStarGift
@@ -2417,7 +2525,7 @@ export declare namespace tlCompat {
2417
2525
  type TypePremiumGiftOption = tlCompat.RawPremiumGiftOption_layer199
2418
2526
  type TypeUser = tlCompat.RawUser_layer199 | tlCompat.RawUser_layer216 | tl.TypeUser
2419
2527
  type TypeChat = tlCompat.RawChannel_layer199 | tlCompat.RawChannel_layer203 | tlCompat.RawChannel_layer216 | tl.TypeChat
2420
- type TypeMessage = tlCompat.RawMessage_layer199 | tlCompat.RawMessageService_layer204 | tlCompat.RawMessage_layer204 | tlCompat.RawMessage_layer216 | tlCompat.RawMessage_layer220 | tl.TypeMessage
2528
+ type TypeMessage = tlCompat.RawMessage_layer199 | tlCompat.RawMessageService_layer204 | tlCompat.RawMessage_layer204 | tlCompat.RawMessage_layer216 | tlCompat.RawMessage_layer220 | tlCompat.RawMessage_layer222 | tl.TypeMessage
2421
2529
  type TypePhoneCallDiscardReason = tlCompat.RawPhoneCallDiscardReasonAllowGroupCall_layer202 | tl.TypePhoneCallDiscardReason
2422
2530
  type TypeMessageReplyHeader = tlCompat.RawMessageReplyHeader_layer206 | tl.TypeMessageReplyHeader
2423
2531
  type TypeStoryItem = tlCompat.RawStoryItem_layer210 | tl.TypeStoryItem
@@ -2425,6 +2533,7 @@ export declare namespace tlCompat {
2425
2533
  type TypeWebPageAttribute = tlCompat.RawWebPageAttributeStarGiftAuction_layer218 | tl.TypeWebPageAttribute
2426
2534
  type TypeStarGiftAttribute = tlCompat.RawStarGiftAttributeBackdrop_layer221 | tlCompat.RawStarGiftAttributePattern_layer221 | tlCompat.RawStarGiftAttributeModel_layer221 | tl.TypeStarGiftAttribute
2427
2535
  type TypeKeyboardButton = tlCompat.RawKeyboardButtonCopy_layer221 | tlCompat.RawInputKeyboardButtonRequestPeer_layer221 | tlCompat.RawKeyboardButtonRequestPeer_layer221 | tlCompat.RawKeyboardButtonSimpleWebView_layer221 | tlCompat.RawKeyboardButtonWebView_layer221 | tlCompat.RawKeyboardButtonUserProfile_layer221 | tlCompat.RawInputKeyboardButtonUserProfile_layer221 | tlCompat.RawKeyboardButtonRequestPoll_layer221 | tlCompat.RawInputKeyboardButtonUrlAuth_layer221 | tlCompat.RawKeyboardButtonUrlAuth_layer221 | tlCompat.RawKeyboardButtonBuy_layer221 | tlCompat.RawKeyboardButtonGame_layer221 | tlCompat.RawKeyboardButtonSwitchInline_layer221 | tlCompat.RawKeyboardButtonRequestGeoLocation_layer221 | tlCompat.RawKeyboardButtonRequestPhone_layer221 | tlCompat.RawKeyboardButtonCallback_layer221 | tlCompat.RawKeyboardButtonUrl_layer221 | tlCompat.RawKeyboardButton_layer221 | tl.TypeKeyboardButton
2536
+ type TypeChatParticipant = tlCompat.RawChatParticipantAdmin_layer222 | tlCompat.RawChatParticipantCreator_layer222 | tlCompat.RawChatParticipant_layer222 | tl.TypeChatParticipant
2428
2537
 
2429
2538
  type TlObject =
2430
2539
  | tlCompat.RawStarGiftUnique_layer197
@@ -2505,5 +2614,9 @@ export declare namespace tlCompat {
2505
2614
  | tlCompat.RawKeyboardButtonCallback_layer221
2506
2615
  | tlCompat.RawKeyboardButtonUrl_layer221
2507
2616
  | tlCompat.RawKeyboardButton_layer221
2617
+ | tlCompat.RawChatParticipantAdmin_layer222
2618
+ | tlCompat.RawChatParticipantCreator_layer222
2619
+ | tlCompat.RawChatParticipant_layer222
2620
+ | tlCompat.RawMessage_layer222
2508
2621
  | tl.TlObject
2509
2622
  }
package/compat/reader.js CHANGED
@@ -80,5 +80,9 @@ var m={
80
80
  901503851:function(r){var flags=r.uint();return{_:'keyboardButtonCallback_layer221',requiresPassword:!!(flags&1),text:r.string(),data:r.bytes(),}},
81
81
  629866245:function(r){return{_:'keyboardButtonUrl_layer221',text:r.string(),url:r.string(),}},
82
82
  2734311552:function(r){return{_:'keyboardButton_layer221',text:r.string(),}},
83
+ 2694004571:function(r){return{_:'chatParticipantAdmin_layer222',userId:r.int53(),inviterId:r.int53(),date:r.int(),}},
84
+ 3832270564:function(r){return{_:'chatParticipantCreator_layer222',userId:r.int53(),}},
85
+ 3224190983:function(r){return{_:'chatParticipant_layer222',userId:r.int53(),inviterId:r.int53(),date:r.int(),}},
86
+ 2629079273:function(r){var flags=r.uint(),flags2=r.uint();return{_:'message_layer222',out:!!(flags&2),mentioned:!!(flags&16),mediaUnread:!!(flags&32),silent:!!(flags&8192),post:!!(flags&16384),fromScheduled:!!(flags&262144),legacy:!!(flags&524288),editHide:!!(flags&2097152),pinned:!!(flags&16777216),noforwards:!!(flags&67108864),invertMedia:!!(flags&134217728),offline:!!(flags2&2),videoProcessingPending:!!(flags2&16),paidSuggestedPostStars:!!(flags2&256),paidSuggestedPostTon:!!(flags2&512),id:r.int(),fromId:flags&256?r.object():void 0,fromBoostsApplied:flags&536870912?r.int():void 0,peerId:r.object(),savedPeerId:flags&268435456?r.object():void 0,fwdFrom:flags&4?r.object():void 0,viaBotId:flags&2048?r.int53():void 0,viaBusinessBotId:flags2&1?r.int53():void 0,replyTo:flags&8?r.object():void 0,date:r.int(),message:r.string(),media:flags&512?r.object():void 0,replyMarkup:flags&64?r.object():void 0,entities:flags&128?r.vector(r.object):void 0,views:flags&1024?r.int():void 0,forwards:flags&1024?r.int():void 0,replies:flags&8388608?r.object():void 0,editDate:flags&32768?r.int():void 0,postAuthor:flags&65536?r.string():void 0,groupedId:flags&131072?r.long():void 0,reactions:flags&1048576?r.object():void 0,restrictionReason:flags&4194304?r.vector(r.object):void 0,ttlPeriod:flags&33554432?r.int():void 0,quickReplyShortcutId:flags&1073741824?r.int():void 0,effect:flags2&4?r.long():void 0,factcheck:flags2&8?r.object():void 0,reportDeliveryUntilDate:flags2&32?r.int():void 0,paidMessageStars:flags2&64?r.long():void 0,suggestedPost:flags2&128?r.object():void 0,scheduleRepeatPeriod:flags2&1024?r.int():void 0,summaryFromLanguage:flags2&2048?r.string():void 0,}},
83
87
  }
84
88
  exports.__tlReaderMapCompat = m;