@mtkruto/node 0.100.3 → 0.101.1

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.
Files changed (33) hide show
  1. package/esm/3_types.d.ts +1 -0
  2. package/esm/3_types.d.ts.map +1 -1
  3. package/esm/3_types.js +1 -0
  4. package/esm/client/0_utilities.d.ts +1 -1
  5. package/esm/client/0_utilities.d.ts.map +1 -1
  6. package/esm/tl/1_telegram_api.d.ts +117 -762
  7. package/esm/tl/1_telegram_api.d.ts.map +1 -1
  8. package/esm/tl/1_telegram_api.js +194 -57
  9. package/esm/tl/1_tl_reader.d.ts.map +1 -1
  10. package/esm/tl/1_tl_reader.js +6 -0
  11. package/esm/types/0_gift_component_rarity.d.ts +39 -0
  12. package/esm/types/0_gift_component_rarity.d.ts.map +1 -0
  13. package/esm/types/0_gift_component_rarity.js +43 -0
  14. package/esm/types/3_gift_upgraded_component.d.ts +7 -6
  15. package/esm/types/3_gift_upgraded_component.d.ts.map +1 -1
  16. package/esm/types/3_gift_upgraded_component.js +4 -4
  17. package/package.json +1 -1
  18. package/script/3_types.d.ts +1 -0
  19. package/script/3_types.d.ts.map +1 -1
  20. package/script/3_types.js +1 -0
  21. package/script/client/0_utilities.d.ts +1 -1
  22. package/script/client/0_utilities.d.ts.map +1 -1
  23. package/script/tl/1_telegram_api.d.ts +117 -762
  24. package/script/tl/1_telegram_api.d.ts.map +1 -1
  25. package/script/tl/1_telegram_api.js +194 -57
  26. package/script/tl/1_tl_reader.d.ts.map +1 -1
  27. package/script/tl/1_tl_reader.js +6 -0
  28. package/script/types/0_gift_component_rarity.d.ts +39 -0
  29. package/script/types/0_gift_component_rarity.d.ts.map +1 -0
  30. package/script/types/0_gift_component_rarity.js +46 -0
  31. package/script/types/3_gift_upgraded_component.d.ts +7 -6
  32. package/script/types/3_gift_upgraded_component.d.ts.map +1 -1
  33. package/script/types/3_gift_upgraded_component.js +4 -4
@@ -663,6 +663,7 @@ export const schema = Object.freeze({
663
663
  ["bot_business", "flags2.11?true"],
664
664
  ["bot_has_main_app", "flags2.13?true"],
665
665
  ["bot_forum_view", "flags2.16?true"],
666
+ ["bot_forum_can_manage_topics", "flags2.17?true"],
666
667
  ["id", "long"],
667
668
  ["access_hash", "flags.0?long"],
668
669
  ["first_name", "flags.1?string"],
@@ -846,6 +847,7 @@ export const schema = Object.freeze({
846
847
  ["flags", "#"],
847
848
  ["broadcast", "flags.5?true"],
848
849
  ["megagroup", "flags.8?true"],
850
+ ["monoforum", "flags.10?true"],
849
851
  ["id", "long"],
850
852
  ["access_hash", "long"],
851
853
  ["title", "string"],
@@ -1725,7 +1727,7 @@ export const schema = Object.freeze({
1725
1727
  "MessageAction",
1726
1728
  ],
1727
1729
  messageActionStarGiftUnique: [
1728
- 0x95728543,
1730
+ 0xE6C31522,
1729
1731
  [
1730
1732
  ["flags", "#"],
1731
1733
  ["upgrade", "flags.0?true"],
@@ -1735,6 +1737,7 @@ export const schema = Object.freeze({
1735
1737
  ["prepaid_upgrade", "flags.11?true"],
1736
1738
  ["assigned", "flags.13?true"],
1737
1739
  ["from_offer", "flags.14?true"],
1740
+ ["craft", "flags.16?true"],
1738
1741
  ["gift", "StarGift"],
1739
1742
  ["can_export_at", "flags.3?int"],
1740
1743
  ["transfer_stars", "flags.4?long"],
@@ -1745,6 +1748,7 @@ export const schema = Object.freeze({
1745
1748
  ["can_transfer_at", "flags.9?int"],
1746
1749
  ["can_resell_at", "flags.10?int"],
1747
1750
  ["drop_original_details_stars", "flags.12?long"],
1751
+ ["can_craft_at", "flags.15?int"],
1748
1752
  ],
1749
1753
  "MessageAction",
1750
1754
  ],
@@ -1861,6 +1865,20 @@ export const schema = Object.freeze({
1861
1865
  ],
1862
1866
  "MessageAction",
1863
1867
  ],
1868
+ messageActionNewCreatorPending: [
1869
+ 0xB07ED085,
1870
+ [
1871
+ ["new_creator_id", "long"],
1872
+ ],
1873
+ "MessageAction",
1874
+ ],
1875
+ messageActionChangeCreator: [
1876
+ 0xE188503B,
1877
+ [
1878
+ ["new_creator_id", "long"],
1879
+ ],
1880
+ "MessageAction",
1881
+ ],
1864
1882
  dialog: [
1865
1883
  0xD58A08C6,
1866
1884
  [
@@ -3872,6 +3890,11 @@ export const schema = Object.freeze({
3872
3890
  ],
3873
3891
  "Update",
3874
3892
  ],
3893
+ updateStarGiftCraftFail: [
3894
+ 0xAC072444,
3895
+ [],
3896
+ "Update",
3897
+ ],
3875
3898
  "updates.state": [
3876
3899
  0xA56C2A3E,
3877
3900
  [
@@ -5286,49 +5309,59 @@ export const schema = Object.freeze({
5286
5309
  "BotInfo",
5287
5310
  ],
5288
5311
  keyboardButton: [
5289
- 0xA2FA4880,
5312
+ 0x7D170CFF,
5290
5313
  [
5314
+ ["flags", "#"],
5315
+ ["style", "flags.10?KeyboardButtonStyle"],
5291
5316
  ["text", "string"],
5292
5317
  ],
5293
5318
  "KeyboardButton",
5294
5319
  ],
5295
5320
  keyboardButtonUrl: [
5296
- 0x258AFF05,
5321
+ 0xD80C25EC,
5297
5322
  [
5323
+ ["flags", "#"],
5324
+ ["style", "flags.10?KeyboardButtonStyle"],
5298
5325
  ["text", "string"],
5299
5326
  ["url", "string"],
5300
5327
  ],
5301
5328
  "KeyboardButton",
5302
5329
  ],
5303
5330
  keyboardButtonCallback: [
5304
- 0x35BBDB6B,
5331
+ 0xE62BC960,
5305
5332
  [
5306
5333
  ["flags", "#"],
5307
5334
  ["requires_password", "flags.0?true"],
5335
+ ["style", "flags.10?KeyboardButtonStyle"],
5308
5336
  ["text", "string"],
5309
5337
  ["data", "bytes"],
5310
5338
  ],
5311
5339
  "KeyboardButton",
5312
5340
  ],
5313
5341
  keyboardButtonRequestPhone: [
5314
- 0xB16A6C29,
5342
+ 0x417EFD8F,
5315
5343
  [
5344
+ ["flags", "#"],
5345
+ ["style", "flags.10?KeyboardButtonStyle"],
5316
5346
  ["text", "string"],
5317
5347
  ],
5318
5348
  "KeyboardButton",
5319
5349
  ],
5320
5350
  keyboardButtonRequestGeoLocation: [
5321
- 0xFC796B3F,
5351
+ 0xAA40F94D,
5322
5352
  [
5353
+ ["flags", "#"],
5354
+ ["style", "flags.10?KeyboardButtonStyle"],
5323
5355
  ["text", "string"],
5324
5356
  ],
5325
5357
  "KeyboardButton",
5326
5358
  ],
5327
5359
  keyboardButtonSwitchInline: [
5328
- 0x93B9FBB5,
5360
+ 0x991399FC,
5329
5361
  [
5330
5362
  ["flags", "#"],
5331
5363
  ["same_peer", "flags.0?true"],
5364
+ ["style", "flags.10?KeyboardButtonStyle"],
5332
5365
  ["text", "string"],
5333
5366
  ["query", "string"],
5334
5367
  ["peer_types", "flags.1?Vector<InlineQueryPeerType>"],
@@ -5336,23 +5369,28 @@ export const schema = Object.freeze({
5336
5369
  "KeyboardButton",
5337
5370
  ],
5338
5371
  keyboardButtonGame: [
5339
- 0x50F41CCF,
5372
+ 0x89C590F9,
5340
5373
  [
5374
+ ["flags", "#"],
5375
+ ["style", "flags.10?KeyboardButtonStyle"],
5341
5376
  ["text", "string"],
5342
5377
  ],
5343
5378
  "KeyboardButton",
5344
5379
  ],
5345
5380
  keyboardButtonBuy: [
5346
- 0xAFD93FBB,
5381
+ 0x3FA53905,
5347
5382
  [
5383
+ ["flags", "#"],
5384
+ ["style", "flags.10?KeyboardButtonStyle"],
5348
5385
  ["text", "string"],
5349
5386
  ],
5350
5387
  "KeyboardButton",
5351
5388
  ],
5352
5389
  keyboardButtonUrlAuth: [
5353
- 0x10B78D29,
5390
+ 0xF51006F9,
5354
5391
  [
5355
5392
  ["flags", "#"],
5393
+ ["style", "flags.10?KeyboardButtonStyle"],
5356
5394
  ["text", "string"],
5357
5395
  ["fwd_text", "flags.0?string"],
5358
5396
  ["url", "string"],
@@ -5361,10 +5399,11 @@ export const schema = Object.freeze({
5361
5399
  "KeyboardButton",
5362
5400
  ],
5363
5401
  inputKeyboardButtonUrlAuth: [
5364
- 0xD02E7FD4,
5402
+ 0x68013E72,
5365
5403
  [
5366
5404
  ["flags", "#"],
5367
5405
  ["request_write_access", "flags.0?true"],
5406
+ ["style", "flags.10?KeyboardButtonStyle"],
5368
5407
  ["text", "string"],
5369
5408
  ["fwd_text", "flags.1?string"],
5370
5409
  ["url", "string"],
@@ -5373,49 +5412,60 @@ export const schema = Object.freeze({
5373
5412
  "KeyboardButton",
5374
5413
  ],
5375
5414
  keyboardButtonRequestPoll: [
5376
- 0xBBC7515D,
5415
+ 0x7A11D782,
5377
5416
  [
5378
5417
  ["flags", "#"],
5418
+ ["style", "flags.10?KeyboardButtonStyle"],
5379
5419
  ["quiz", "flags.0?Bool"],
5380
5420
  ["text", "string"],
5381
5421
  ],
5382
5422
  "KeyboardButton",
5383
5423
  ],
5384
5424
  inputKeyboardButtonUserProfile: [
5385
- 0xE988037B,
5425
+ 0x7D5E07C7,
5386
5426
  [
5427
+ ["flags", "#"],
5428
+ ["style", "flags.10?KeyboardButtonStyle"],
5387
5429
  ["text", "string"],
5388
5430
  ["user_id", "InputUser"],
5389
5431
  ],
5390
5432
  "KeyboardButton",
5391
5433
  ],
5392
5434
  keyboardButtonUserProfile: [
5393
- 0x308660C1,
5435
+ 0xC0FD5D09,
5394
5436
  [
5437
+ ["flags", "#"],
5438
+ ["style", "flags.10?KeyboardButtonStyle"],
5395
5439
  ["text", "string"],
5396
5440
  ["user_id", "long"],
5397
5441
  ],
5398
5442
  "KeyboardButton",
5399
5443
  ],
5400
5444
  keyboardButtonWebView: [
5401
- 0x13767230,
5445
+ 0xE846B1A0,
5402
5446
  [
5447
+ ["flags", "#"],
5448
+ ["style", "flags.10?KeyboardButtonStyle"],
5403
5449
  ["text", "string"],
5404
5450
  ["url", "string"],
5405
5451
  ],
5406
5452
  "KeyboardButton",
5407
5453
  ],
5408
5454
  keyboardButtonSimpleWebView: [
5409
- 0xA0C0505C,
5455
+ 0xE15C4370,
5410
5456
  [
5457
+ ["flags", "#"],
5458
+ ["style", "flags.10?KeyboardButtonStyle"],
5411
5459
  ["text", "string"],
5412
5460
  ["url", "string"],
5413
5461
  ],
5414
5462
  "KeyboardButton",
5415
5463
  ],
5416
5464
  keyboardButtonRequestPeer: [
5417
- 0x53D7BFD8,
5465
+ 0x5B0F15F5,
5418
5466
  [
5467
+ ["flags", "#"],
5468
+ ["style", "flags.10?KeyboardButtonStyle"],
5419
5469
  ["text", "string"],
5420
5470
  ["button_id", "int"],
5421
5471
  ["peer_type", "RequestPeerType"],
@@ -5424,12 +5474,13 @@ export const schema = Object.freeze({
5424
5474
  "KeyboardButton",
5425
5475
  ],
5426
5476
  inputKeyboardButtonRequestPeer: [
5427
- 0xC9662D05,
5477
+ 0x02B78156,
5428
5478
  [
5429
5479
  ["flags", "#"],
5430
5480
  ["name_requested", "flags.0?true"],
5431
5481
  ["username_requested", "flags.1?true"],
5432
5482
  ["photo_requested", "flags.2?true"],
5483
+ ["style", "flags.10?KeyboardButtonStyle"],
5433
5484
  ["text", "string"],
5434
5485
  ["button_id", "int"],
5435
5486
  ["peer_type", "RequestPeerType"],
@@ -5438,8 +5489,10 @@ export const schema = Object.freeze({
5438
5489
  "KeyboardButton",
5439
5490
  ],
5440
5491
  keyboardButtonCopy: [
5441
- 0x75D2698E,
5492
+ 0xBCC4AF10,
5442
5493
  [
5494
+ ["flags", "#"],
5495
+ ["style", "flags.10?KeyboardButtonStyle"],
5443
5496
  ["text", "string"],
5444
5497
  ["copy_text", "string"],
5445
5498
  ],
@@ -9090,19 +9143,25 @@ export const schema = Object.freeze({
9090
9143
  "messages.SearchCounter",
9091
9144
  ],
9092
9145
  urlAuthResultRequest: [
9093
- 0x92D33A0E,
9146
+ 0x32FABF1A,
9094
9147
  [
9095
9148
  ["flags", "#"],
9096
9149
  ["request_write_access", "flags.0?true"],
9150
+ ["request_phone_number", "flags.1?true"],
9097
9151
  ["bot", "User"],
9098
9152
  ["domain", "string"],
9153
+ ["browser", "flags.2?string"],
9154
+ ["platform", "flags.2?string"],
9155
+ ["ip", "flags.2?string"],
9156
+ ["region", "flags.2?string"],
9099
9157
  ],
9100
9158
  "UrlAuthResult",
9101
9159
  ],
9102
9160
  urlAuthResultAccepted: [
9103
- 0x8F8C0E4E,
9161
+ 0x623A8FA0,
9104
9162
  [
9105
- ["url", "string"],
9163
+ ["flags", "#"],
9164
+ ["url", "flags.0?string"],
9106
9165
  ],
9107
9166
  "UrlAuthResult",
9108
9167
  ],
@@ -12954,12 +13013,14 @@ export const schema = Object.freeze({
12954
13013
  "StarGift",
12955
13014
  ],
12956
13015
  starGiftUnique: [
12957
- 0x569D64C9,
13016
+ 0x85F0A9CD,
12958
13017
  [
12959
13018
  ["flags", "#"],
12960
13019
  ["require_premium", "flags.6?true"],
12961
13020
  ["resale_ton_only", "flags.7?true"],
12962
13021
  ["theme_available", "flags.9?true"],
13022
+ ["burned", "flags.14?true"],
13023
+ ["crafted", "flags.15?true"],
12963
13024
  ["id", "long"],
12964
13025
  ["gift_id", "long"],
12965
13026
  ["title", "string"],
@@ -12981,6 +13042,7 @@ export const schema = Object.freeze({
12981
13042
  ["peer_color", "flags.11?PeerColor"],
12982
13043
  ["host_id", "flags.12?Peer"],
12983
13044
  ["offer_min_stars", "flags.13?int"],
13045
+ ["craft_chance_permille", "flags.16?int"],
12984
13046
  ],
12985
13047
  "StarGift",
12986
13048
  ],
@@ -13161,25 +13223,27 @@ export const schema = Object.freeze({
13161
13223
  "BotVerification",
13162
13224
  ],
13163
13225
  starGiftAttributeModel: [
13164
- 0x39D99013,
13226
+ 0x565251E2,
13165
13227
  [
13228
+ ["flags", "#"],
13229
+ ["crafted", "flags.0?true"],
13166
13230
  ["name", "string"],
13167
13231
  ["document", "Document"],
13168
- ["rarity_permille", "int"],
13232
+ ["rarity", "StarGiftAttributeRarity"],
13169
13233
  ],
13170
13234
  "StarGiftAttribute",
13171
13235
  ],
13172
13236
  starGiftAttributePattern: [
13173
- 0x13ACFF19,
13237
+ 0x4E7085EA,
13174
13238
  [
13175
13239
  ["name", "string"],
13176
13240
  ["document", "Document"],
13177
- ["rarity_permille", "int"],
13241
+ ["rarity", "StarGiftAttributeRarity"],
13178
13242
  ],
13179
13243
  "StarGiftAttribute",
13180
13244
  ],
13181
13245
  starGiftAttributeBackdrop: [
13182
- 0xD93D859C,
13246
+ 0x9F2504E4,
13183
13247
  [
13184
13248
  ["name", "string"],
13185
13249
  ["backdrop_id", "int"],
@@ -13187,7 +13251,7 @@ export const schema = Object.freeze({
13187
13251
  ["edge_color", "int"],
13188
13252
  ["pattern_color", "int"],
13189
13253
  ["text_color", "int"],
13190
- ["rarity_permille", "int"],
13254
+ ["rarity", "StarGiftAttributeRarity"],
13191
13255
  ],
13192
13256
  "StarGiftAttribute",
13193
13257
  ],
@@ -13245,7 +13309,7 @@ export const schema = Object.freeze({
13245
13309
  "messages.WebPagePreview",
13246
13310
  ],
13247
13311
  savedStarGift: [
13248
- 0xEAD6805E,
13312
+ 0x41DF43FC,
13249
13313
  [
13250
13314
  ["flags", "#"],
13251
13315
  ["name_hidden", "flags.0?true"],
@@ -13270,6 +13334,7 @@ export const schema = Object.freeze({
13270
13334
  ["prepaid_upgrade_hash", "flags.16?string"],
13271
13335
  ["drop_original_details_stars", "flags.18?long"],
13272
13336
  ["gift_num", "flags.19?int"],
13337
+ ["can_craft_at", "flags.20?int"],
13273
13338
  ],
13274
13339
  "SavedStarGift",
13275
13340
  ],
@@ -14013,6 +14078,44 @@ export const schema = Object.freeze({
14013
14078
  ],
14014
14079
  "messages.EmojiGameInfo",
14015
14080
  ],
14081
+ starGiftAttributeRarity: [
14082
+ 0x36437737,
14083
+ [
14084
+ ["permille", "int"],
14085
+ ],
14086
+ "StarGiftAttributeRarity",
14087
+ ],
14088
+ starGiftAttributeRarityUncommon: [
14089
+ 0xDBCE6389,
14090
+ [],
14091
+ "StarGiftAttributeRarity",
14092
+ ],
14093
+ starGiftAttributeRarityRare: [
14094
+ 0xF08D516B,
14095
+ [],
14096
+ "StarGiftAttributeRarity",
14097
+ ],
14098
+ starGiftAttributeRarityEpic: [
14099
+ 0x78FBF3A8,
14100
+ [],
14101
+ "StarGiftAttributeRarity",
14102
+ ],
14103
+ starGiftAttributeRarityLegendary: [
14104
+ 0xCEF7E7A8,
14105
+ [],
14106
+ "StarGiftAttributeRarity",
14107
+ ],
14108
+ keyboardButtonStyle: [
14109
+ 0x4FDD3430,
14110
+ [
14111
+ ["flags", "#"],
14112
+ ["bg_primary", "flags.0?true"],
14113
+ ["bg_danger", "flags.1?true"],
14114
+ ["bg_success", "flags.2?true"],
14115
+ ["icon", "flags.3?long"],
14116
+ ],
14117
+ "KeyboardButtonStyle",
14118
+ ],
14016
14119
  invokeWithBusinessConnectionPrefix: [
14017
14120
  0xDD289F8E,
14018
14121
  [
@@ -16665,6 +16768,7 @@ export const schema = Object.freeze({
16665
16768
  [
16666
16769
  ["flags", "#"],
16667
16770
  ["write_allowed", "flags.0?true"],
16771
+ ["share_phone_number", "flags.3?true"],
16668
16772
  ["peer", "flags.1?InputPeer"],
16669
16773
  ["msg_id", "flags.1?int"],
16670
16774
  ["button_id", "flags.1?int"],
@@ -18694,6 +18798,13 @@ export const schema = Object.freeze({
18694
18798
  ],
18695
18799
  "Bool",
18696
18800
  ],
18801
+ "channels.getFutureCreatorAfterLeave": [
18802
+ 0xA00918AF,
18803
+ [
18804
+ ["channel", "InputChannel"],
18805
+ ],
18806
+ "User",
18807
+ ],
18697
18808
  "bots.sendCustomRequest": [
18698
18809
  0xAA2769ED,
18699
18810
  [
@@ -19368,6 +19479,7 @@ export const schema = Object.freeze({
19368
19479
  ["flags", "#"],
19369
19480
  ["sort_by_price", "flags.1?true"],
19370
19481
  ["sort_by_num", "flags.2?true"],
19482
+ ["for_craft", "flags.4?true"],
19371
19483
  ["attributes_hash", "flags.0?long"],
19372
19484
  ["gift_id", "long"],
19373
19485
  ["attributes", "flags.3?Vector<StarGiftAttributeId>"],
@@ -19495,6 +19607,22 @@ export const schema = Object.freeze({
19495
19607
  ],
19496
19608
  "payments.StarGiftUpgradeAttributes",
19497
19609
  ],
19610
+ "payments.getCraftStarGifts": [
19611
+ 0xFD05DD00,
19612
+ [
19613
+ ["gift_id", "long"],
19614
+ ["offset", "string"],
19615
+ ["limit", "int"],
19616
+ ],
19617
+ "payments.SavedStarGifts",
19618
+ ],
19619
+ "payments.craftStarGift": [
19620
+ 0xB0F9684F,
19621
+ [
19622
+ ["stargift", "Vector<InputSavedStarGift>"],
19623
+ ],
19624
+ "Updates",
19625
+ ],
19498
19626
  "stickers.createStickerSet": [
19499
19627
  0x9021AB67,
19500
19628
  [
@@ -20771,7 +20899,7 @@ export const schema = Object.freeze({
20771
20899
  [0x45D5B021]: "messageActionGiftStars",
20772
20900
  [0xB00C47A2]: "messageActionPrizeStars",
20773
20901
  [0xEA2C31D3]: "messageActionStarGift",
20774
- [0x95728543]: "messageActionStarGiftUnique",
20902
+ [0xE6C31522]: "messageActionStarGiftUnique",
20775
20903
  [0xAC1F1FCD]: "messageActionPaidMessagesRefunded",
20776
20904
  [0x84B88578]: "messageActionPaidMessagesPrice",
20777
20905
  [0x2FFE2F7A]: "messageActionConferenceCall",
@@ -20784,6 +20912,8 @@ export const schema = Object.freeze({
20784
20912
  [0x2C8F2A25]: "messageActionSuggestBirthday",
20785
20913
  [0x774278D4]: "messageActionStarGiftPurchaseOffer",
20786
20914
  [0x73ADA76B]: "messageActionStarGiftPurchaseOfferDeclined",
20915
+ [0xB07ED085]: "messageActionNewCreatorPending",
20916
+ [0xE188503B]: "messageActionChangeCreator",
20787
20917
  [0xD58A08C6]: "dialog",
20788
20918
  [0x71BD134C]: "dialogFolder",
20789
20919
  [0x2331B22D]: "photoEmpty",
@@ -21010,6 +21140,7 @@ export const schema = Object.freeze({
21010
21140
  [0x48E246C2]: "updateStarGiftAuctionState",
21011
21141
  [0xDC58F31E]: "updateStarGiftAuctionUserState",
21012
21142
  [0xFB9C547A]: "updateEmojiGameInfo",
21143
+ [0xAC072444]: "updateStarGiftCraftFail",
21013
21144
  [0xA56C2A3E]: "updates.state",
21014
21145
  [0x5D75A138]: "updates.differenceEmpty",
21015
21146
  [0x00F49CA0]: "updates.difference",
@@ -21182,24 +21313,24 @@ export const schema = Object.freeze({
21182
21313
  [0xD3F924EB]: "messages.stickerSetNotModified",
21183
21314
  [0xC27AC8C7]: "botCommand",
21184
21315
  [0x4D8A0299]: "botInfo",
21185
- [0xA2FA4880]: "keyboardButton",
21186
- [0x258AFF05]: "keyboardButtonUrl",
21187
- [0x35BBDB6B]: "keyboardButtonCallback",
21188
- [0xB16A6C29]: "keyboardButtonRequestPhone",
21189
- [0xFC796B3F]: "keyboardButtonRequestGeoLocation",
21190
- [0x93B9FBB5]: "keyboardButtonSwitchInline",
21191
- [0x50F41CCF]: "keyboardButtonGame",
21192
- [0xAFD93FBB]: "keyboardButtonBuy",
21193
- [0x10B78D29]: "keyboardButtonUrlAuth",
21194
- [0xD02E7FD4]: "inputKeyboardButtonUrlAuth",
21195
- [0xBBC7515D]: "keyboardButtonRequestPoll",
21196
- [0xE988037B]: "inputKeyboardButtonUserProfile",
21197
- [0x308660C1]: "keyboardButtonUserProfile",
21198
- [0x13767230]: "keyboardButtonWebView",
21199
- [0xA0C0505C]: "keyboardButtonSimpleWebView",
21200
- [0x53D7BFD8]: "keyboardButtonRequestPeer",
21201
- [0xC9662D05]: "inputKeyboardButtonRequestPeer",
21202
- [0x75D2698E]: "keyboardButtonCopy",
21316
+ [0x7D170CFF]: "keyboardButton",
21317
+ [0xD80C25EC]: "keyboardButtonUrl",
21318
+ [0xE62BC960]: "keyboardButtonCallback",
21319
+ [0x417EFD8F]: "keyboardButtonRequestPhone",
21320
+ [0xAA40F94D]: "keyboardButtonRequestGeoLocation",
21321
+ [0x991399FC]: "keyboardButtonSwitchInline",
21322
+ [0x89C590F9]: "keyboardButtonGame",
21323
+ [0x3FA53905]: "keyboardButtonBuy",
21324
+ [0xF51006F9]: "keyboardButtonUrlAuth",
21325
+ [0x68013E72]: "inputKeyboardButtonUrlAuth",
21326
+ [0x7A11D782]: "keyboardButtonRequestPoll",
21327
+ [0x7D5E07C7]: "inputKeyboardButtonUserProfile",
21328
+ [0xC0FD5D09]: "keyboardButtonUserProfile",
21329
+ [0xE846B1A0]: "keyboardButtonWebView",
21330
+ [0xE15C4370]: "keyboardButtonSimpleWebView",
21331
+ [0x5B0F15F5]: "keyboardButtonRequestPeer",
21332
+ [0x02B78156]: "inputKeyboardButtonRequestPeer",
21333
+ [0xBCC4AF10]: "keyboardButtonCopy",
21203
21334
  [0x77608B83]: "keyboardButtonRow",
21204
21335
  [0xA03E5B85]: "replyKeyboardHide",
21205
21336
  [0x86B40B08]: "replyKeyboardForceReply",
@@ -21614,8 +21745,8 @@ export const schema = Object.freeze({
21614
21745
  [0xFBD2C296]: "inputFolderPeer",
21615
21746
  [0xE9BAA668]: "folderPeer",
21616
21747
  [0xE844EBFF]: "messages.searchCounter",
21617
- [0x92D33A0E]: "urlAuthResultRequest",
21618
- [0x8F8C0E4E]: "urlAuthResultAccepted",
21748
+ [0x32FABF1A]: "urlAuthResultRequest",
21749
+ [0x623A8FA0]: "urlAuthResultAccepted",
21619
21750
  [0xA9D6DB1F]: "urlAuthResultDefault",
21620
21751
  [0xBFB5AD8B]: "channelLocationEmpty",
21621
21752
  [0x209B82DB]: "channelLocation",
@@ -22022,7 +22153,7 @@ export const schema = Object.freeze({
22022
22153
  [0x94CE852A]: "starsGiveawayOption",
22023
22154
  [0x54236209]: "starsGiveawayWinnersOption",
22024
22155
  [0x313A9547]: "starGift",
22025
- [0x569D64C9]: "starGiftUnique",
22156
+ [0x85F0A9CD]: "starGiftUnique",
22026
22157
  [0xA388A368]: "payments.starGiftsNotModified",
22027
22158
  [0x2ED82995]: "payments.starGifts",
22028
22159
  [0x7903E3D9]: "messageReportOption",
@@ -22042,16 +22173,16 @@ export const schema = Object.freeze({
22042
22173
  [0x82C9E290]: "messages.foundStickers",
22043
22174
  [0xB0CD6617]: "botVerifierSettings",
22044
22175
  [0xF93CD45C]: "botVerification",
22045
- [0x39D99013]: "starGiftAttributeModel",
22046
- [0x13ACFF19]: "starGiftAttributePattern",
22047
- [0xD93D859C]: "starGiftAttributeBackdrop",
22176
+ [0x565251E2]: "starGiftAttributeModel",
22177
+ [0x4E7085EA]: "starGiftAttributePattern",
22178
+ [0x9F2504E4]: "starGiftAttributeBackdrop",
22048
22179
  [0xE0BFF26C]: "starGiftAttributeOriginalDetails",
22049
22180
  [0x3DE1DFED]: "payments.starGiftUpgradePreview",
22050
22181
  [0x62D706B8]: "users.users",
22051
22182
  [0x315A4974]: "users.usersSlice",
22052
22183
  [0x416C56E8]: "payments.uniqueStarGift",
22053
22184
  [0x8C9A88AC]: "messages.webPagePreview",
22054
- [0xEAD6805E]: "savedStarGift",
22185
+ [0x41DF43FC]: "savedStarGift",
22055
22186
  [0x95F389B1]: "payments.savedStarGifts",
22056
22187
  [0x69279795]: "inputSavedStarGiftUser",
22057
22188
  [0xF101AA7F]: "inputSavedStarGiftChat",
@@ -22139,6 +22270,12 @@ export const schema = Object.freeze({
22139
22270
  [0xDA2AD647]: "messages.emojiGameOutcome",
22140
22271
  [0x59E65335]: "messages.emojiGameUnavailable",
22141
22272
  [0x44E56023]: "messages.emojiGameDiceInfo",
22273
+ [0x36437737]: "starGiftAttributeRarity",
22274
+ [0xDBCE6389]: "starGiftAttributeRarityUncommon",
22275
+ [0xF08D516B]: "starGiftAttributeRarityRare",
22276
+ [0x78FBF3A8]: "starGiftAttributeRarityEpic",
22277
+ [0xCEF7E7A8]: "starGiftAttributeRarityLegendary",
22278
+ [0x4FDD3430]: "keyboardButtonStyle",
22142
22279
  },
22143
22280
  });
22144
- export const LAYER = 221;
22281
+ export const LAYER = 222;
@@ -1 +1 @@
1
- {"version":3,"file":"1_tl_reader.d.ts","sourceRoot":"","sources":["../../src/tl/1_tl_reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,KAAK,EAAoB,MAAM,EAAE,MAAM,cAAc,CAAC;AAG7D,qBAAa,QAAQ;;IAGP,SAAS,CAAC,OAAO,EAAE,UAAU;gBAAnB,OAAO,EAAE,UAAU;IAGzC,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAUhD,MAAM,CAAC,KAAK,EAAE,MAAM;IASpB,SAAS,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKlC,SAAS,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKlC,WAAW;IAIX,SAAS,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKlC,UAAU,IAAI,MAAM;IAKpB,UAAU,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKnC,UAAU,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKnC,SAAS,IAAI,UAAU,CAAC,WAAW,CAAC;IAiBpC,UAAU,IAAI,MAAM;IAId,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CA6H3D"}
1
+ {"version":3,"file":"1_tl_reader.d.ts","sourceRoot":"","sources":["../../src/tl/1_tl_reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,KAAK,EAAoB,MAAM,EAAE,MAAM,cAAc,CAAC;AAG7D,qBAAa,QAAQ;;IAGP,SAAS,CAAC,OAAO,EAAE,UAAU;gBAAnB,OAAO,EAAE,UAAU;IAGzC,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAUhD,MAAM,CAAC,KAAK,EAAE,MAAM;IASpB,SAAS,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKlC,SAAS,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKlC,WAAW;IAIX,SAAS,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKlC,UAAU,IAAI,MAAM;IAKpB,UAAU,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKnC,UAAU,CAAC,QAAQ,UAAO,GAAG,MAAM;IAKnC,SAAS,IAAI,UAAU,CAAC,WAAW,CAAC;IAiBpC,UAAU,IAAI,MAAM;IAId,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAkI3D"}
@@ -101,6 +101,12 @@ export class TLReader {
101
101
  return primitive;
102
102
  }
103
103
  const id = this.readInt32(false);
104
+ if (id === BOOL_TRUE) {
105
+ return true;
106
+ }
107
+ else if (id === BOOL_FALSE) {
108
+ return false;
109
+ }
104
110
  if (name === X) {
105
111
  const typeName = schema.identifierToName[id];
106
112
  if (!typeName) {
@@ -0,0 +1,39 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import type { Api } from "../2_tl.js";
21
+ export interface GiftComponentRarityPerMille {
22
+ type: "perMille";
23
+ perMille: number;
24
+ }
25
+ export interface GiftComponentRarityUncommon {
26
+ type: "uncommon";
27
+ }
28
+ export interface GiftComponentRarityRare {
29
+ type: "rare";
30
+ }
31
+ export interface GiftComponentRarityEpic {
32
+ type: "epic";
33
+ }
34
+ export interface GiftComponentRarityLegendary {
35
+ type: "legendary";
36
+ }
37
+ export type GiftComponentRarity = GiftComponentRarityPerMille | GiftComponentRarityUncommon | GiftComponentRarityRare | GiftComponentRarityEpic | GiftComponentRarityLegendary;
38
+ export declare function constructGiftComponentRarity(rarity: Api.StarGiftAttributeRarity): GiftComponentRarity;
39
+ //# sourceMappingURL=0_gift_component_rarity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"0_gift_component_rarity.d.ts","sourceRoot":"","sources":["../../src/types/0_gift_component_rarity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,GAAG,2BAA2B,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,4BAA4B,CAAC;AAE/K,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,GAAG,CAAC,uBAAuB,GAAG,mBAAmB,CAsBrG"}