@mtkruto/node 0.100.2 → 0.101.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/esm/3_types.d.ts +2 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +2 -0
- package/esm/client/0_utilities.d.ts +1 -1
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +2 -2
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/2_context.d.ts +2 -2
- package/esm/client/2_context.d.ts.map +1 -1
- package/esm/client/3_message_manager.d.ts +2 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +2 -1
- package/esm/client/5_client.d.ts +2 -2
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client_dispatcher.d.ts +2 -2
- package/esm/client/5_client_dispatcher.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.d.ts +117 -762
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +194 -57
- package/esm/types/0_gift_component_rarity.d.ts +39 -0
- package/esm/types/0_gift_component_rarity.d.ts.map +1 -0
- package/esm/types/0_gift_component_rarity.js +43 -0
- package/esm/types/3_gift_upgraded_component.d.ts +7 -6
- package/esm/types/3_gift_upgraded_component.d.ts.map +1 -1
- package/esm/types/3_gift_upgraded_component.js +4 -4
- package/esm/types/7_message_list.d.ts +28 -0
- package/esm/types/7_message_list.d.ts.map +1 -0
- package/esm/types/7_message_list.js +20 -0
- package/package.json +1 -1
- package/script/3_types.d.ts +2 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +2 -0
- package/script/client/0_utilities.d.ts +1 -1
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +2 -2
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/2_context.d.ts +2 -2
- package/script/client/2_context.d.ts.map +1 -1
- package/script/client/3_message_manager.d.ts +2 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +2 -1
- package/script/client/5_client.d.ts +2 -2
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client_dispatcher.d.ts +2 -2
- package/script/client/5_client_dispatcher.d.ts.map +1 -1
- package/script/tl/1_telegram_api.d.ts +117 -762
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +194 -57
- package/script/types/0_gift_component_rarity.d.ts +39 -0
- package/script/types/0_gift_component_rarity.d.ts.map +1 -0
- package/script/types/0_gift_component_rarity.js +46 -0
- package/script/types/3_gift_upgraded_component.d.ts +7 -6
- package/script/types/3_gift_upgraded_component.d.ts.map +1 -1
- package/script/types/3_gift_upgraded_component.js +4 -4
- package/script/types/7_message_list.d.ts +28 -0
- package/script/types/7_message_list.d.ts.map +1 -0
- package/script/types/7_message_list.js +21 -0
|
@@ -666,6 +666,7 @@ exports.schema = Object.freeze({
|
|
|
666
666
|
["bot_business", "flags2.11?true"],
|
|
667
667
|
["bot_has_main_app", "flags2.13?true"],
|
|
668
668
|
["bot_forum_view", "flags2.16?true"],
|
|
669
|
+
["bot_forum_can_manage_topics", "flags2.17?true"],
|
|
669
670
|
["id", "long"],
|
|
670
671
|
["access_hash", "flags.0?long"],
|
|
671
672
|
["first_name", "flags.1?string"],
|
|
@@ -849,6 +850,7 @@ exports.schema = Object.freeze({
|
|
|
849
850
|
["flags", "#"],
|
|
850
851
|
["broadcast", "flags.5?true"],
|
|
851
852
|
["megagroup", "flags.8?true"],
|
|
853
|
+
["monoforum", "flags.10?true"],
|
|
852
854
|
["id", "long"],
|
|
853
855
|
["access_hash", "long"],
|
|
854
856
|
["title", "string"],
|
|
@@ -1728,7 +1730,7 @@ exports.schema = Object.freeze({
|
|
|
1728
1730
|
"MessageAction",
|
|
1729
1731
|
],
|
|
1730
1732
|
messageActionStarGiftUnique: [
|
|
1731
|
-
|
|
1733
|
+
0xE6C31522,
|
|
1732
1734
|
[
|
|
1733
1735
|
["flags", "#"],
|
|
1734
1736
|
["upgrade", "flags.0?true"],
|
|
@@ -1738,6 +1740,7 @@ exports.schema = Object.freeze({
|
|
|
1738
1740
|
["prepaid_upgrade", "flags.11?true"],
|
|
1739
1741
|
["assigned", "flags.13?true"],
|
|
1740
1742
|
["from_offer", "flags.14?true"],
|
|
1743
|
+
["craft", "flags.16?true"],
|
|
1741
1744
|
["gift", "StarGift"],
|
|
1742
1745
|
["can_export_at", "flags.3?int"],
|
|
1743
1746
|
["transfer_stars", "flags.4?long"],
|
|
@@ -1748,6 +1751,7 @@ exports.schema = Object.freeze({
|
|
|
1748
1751
|
["can_transfer_at", "flags.9?int"],
|
|
1749
1752
|
["can_resell_at", "flags.10?int"],
|
|
1750
1753
|
["drop_original_details_stars", "flags.12?long"],
|
|
1754
|
+
["can_craft_at", "flags.15?int"],
|
|
1751
1755
|
],
|
|
1752
1756
|
"MessageAction",
|
|
1753
1757
|
],
|
|
@@ -1864,6 +1868,20 @@ exports.schema = Object.freeze({
|
|
|
1864
1868
|
],
|
|
1865
1869
|
"MessageAction",
|
|
1866
1870
|
],
|
|
1871
|
+
messageActionNewCreatorPending: [
|
|
1872
|
+
0xB07ED085,
|
|
1873
|
+
[
|
|
1874
|
+
["new_creator_id", "long"],
|
|
1875
|
+
],
|
|
1876
|
+
"MessageAction",
|
|
1877
|
+
],
|
|
1878
|
+
messageActionChangeCreator: [
|
|
1879
|
+
0xE188503B,
|
|
1880
|
+
[
|
|
1881
|
+
["new_creator_id", "long"],
|
|
1882
|
+
],
|
|
1883
|
+
"MessageAction",
|
|
1884
|
+
],
|
|
1867
1885
|
dialog: [
|
|
1868
1886
|
0xD58A08C6,
|
|
1869
1887
|
[
|
|
@@ -3875,6 +3893,11 @@ exports.schema = Object.freeze({
|
|
|
3875
3893
|
],
|
|
3876
3894
|
"Update",
|
|
3877
3895
|
],
|
|
3896
|
+
updateStarGiftCraftFail: [
|
|
3897
|
+
0xAC072444,
|
|
3898
|
+
[],
|
|
3899
|
+
"Update",
|
|
3900
|
+
],
|
|
3878
3901
|
"updates.state": [
|
|
3879
3902
|
0xA56C2A3E,
|
|
3880
3903
|
[
|
|
@@ -5289,49 +5312,59 @@ exports.schema = Object.freeze({
|
|
|
5289
5312
|
"BotInfo",
|
|
5290
5313
|
],
|
|
5291
5314
|
keyboardButton: [
|
|
5292
|
-
|
|
5315
|
+
0x7D170CFF,
|
|
5293
5316
|
[
|
|
5317
|
+
["flags", "#"],
|
|
5318
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5294
5319
|
["text", "string"],
|
|
5295
5320
|
],
|
|
5296
5321
|
"KeyboardButton",
|
|
5297
5322
|
],
|
|
5298
5323
|
keyboardButtonUrl: [
|
|
5299
|
-
|
|
5324
|
+
0xD80C25EC,
|
|
5300
5325
|
[
|
|
5326
|
+
["flags", "#"],
|
|
5327
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5301
5328
|
["text", "string"],
|
|
5302
5329
|
["url", "string"],
|
|
5303
5330
|
],
|
|
5304
5331
|
"KeyboardButton",
|
|
5305
5332
|
],
|
|
5306
5333
|
keyboardButtonCallback: [
|
|
5307
|
-
|
|
5334
|
+
0xE62BC960,
|
|
5308
5335
|
[
|
|
5309
5336
|
["flags", "#"],
|
|
5310
5337
|
["requires_password", "flags.0?true"],
|
|
5338
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5311
5339
|
["text", "string"],
|
|
5312
5340
|
["data", "bytes"],
|
|
5313
5341
|
],
|
|
5314
5342
|
"KeyboardButton",
|
|
5315
5343
|
],
|
|
5316
5344
|
keyboardButtonRequestPhone: [
|
|
5317
|
-
|
|
5345
|
+
0x417EFD8F,
|
|
5318
5346
|
[
|
|
5347
|
+
["flags", "#"],
|
|
5348
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5319
5349
|
["text", "string"],
|
|
5320
5350
|
],
|
|
5321
5351
|
"KeyboardButton",
|
|
5322
5352
|
],
|
|
5323
5353
|
keyboardButtonRequestGeoLocation: [
|
|
5324
|
-
|
|
5354
|
+
0xAA40F94D,
|
|
5325
5355
|
[
|
|
5356
|
+
["flags", "#"],
|
|
5357
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5326
5358
|
["text", "string"],
|
|
5327
5359
|
],
|
|
5328
5360
|
"KeyboardButton",
|
|
5329
5361
|
],
|
|
5330
5362
|
keyboardButtonSwitchInline: [
|
|
5331
|
-
|
|
5363
|
+
0x991399FC,
|
|
5332
5364
|
[
|
|
5333
5365
|
["flags", "#"],
|
|
5334
5366
|
["same_peer", "flags.0?true"],
|
|
5367
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5335
5368
|
["text", "string"],
|
|
5336
5369
|
["query", "string"],
|
|
5337
5370
|
["peer_types", "flags.1?Vector<InlineQueryPeerType>"],
|
|
@@ -5339,23 +5372,28 @@ exports.schema = Object.freeze({
|
|
|
5339
5372
|
"KeyboardButton",
|
|
5340
5373
|
],
|
|
5341
5374
|
keyboardButtonGame: [
|
|
5342
|
-
|
|
5375
|
+
0x89C590F9,
|
|
5343
5376
|
[
|
|
5377
|
+
["flags", "#"],
|
|
5378
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5344
5379
|
["text", "string"],
|
|
5345
5380
|
],
|
|
5346
5381
|
"KeyboardButton",
|
|
5347
5382
|
],
|
|
5348
5383
|
keyboardButtonBuy: [
|
|
5349
|
-
|
|
5384
|
+
0x3FA53905,
|
|
5350
5385
|
[
|
|
5386
|
+
["flags", "#"],
|
|
5387
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5351
5388
|
["text", "string"],
|
|
5352
5389
|
],
|
|
5353
5390
|
"KeyboardButton",
|
|
5354
5391
|
],
|
|
5355
5392
|
keyboardButtonUrlAuth: [
|
|
5356
|
-
|
|
5393
|
+
0xF51006F9,
|
|
5357
5394
|
[
|
|
5358
5395
|
["flags", "#"],
|
|
5396
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5359
5397
|
["text", "string"],
|
|
5360
5398
|
["fwd_text", "flags.0?string"],
|
|
5361
5399
|
["url", "string"],
|
|
@@ -5364,10 +5402,11 @@ exports.schema = Object.freeze({
|
|
|
5364
5402
|
"KeyboardButton",
|
|
5365
5403
|
],
|
|
5366
5404
|
inputKeyboardButtonUrlAuth: [
|
|
5367
|
-
|
|
5405
|
+
0x68013E72,
|
|
5368
5406
|
[
|
|
5369
5407
|
["flags", "#"],
|
|
5370
5408
|
["request_write_access", "flags.0?true"],
|
|
5409
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5371
5410
|
["text", "string"],
|
|
5372
5411
|
["fwd_text", "flags.1?string"],
|
|
5373
5412
|
["url", "string"],
|
|
@@ -5376,49 +5415,60 @@ exports.schema = Object.freeze({
|
|
|
5376
5415
|
"KeyboardButton",
|
|
5377
5416
|
],
|
|
5378
5417
|
keyboardButtonRequestPoll: [
|
|
5379
|
-
|
|
5418
|
+
0x7A11D782,
|
|
5380
5419
|
[
|
|
5381
5420
|
["flags", "#"],
|
|
5421
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5382
5422
|
["quiz", "flags.0?Bool"],
|
|
5383
5423
|
["text", "string"],
|
|
5384
5424
|
],
|
|
5385
5425
|
"KeyboardButton",
|
|
5386
5426
|
],
|
|
5387
5427
|
inputKeyboardButtonUserProfile: [
|
|
5388
|
-
|
|
5428
|
+
0x7D5E07C7,
|
|
5389
5429
|
[
|
|
5430
|
+
["flags", "#"],
|
|
5431
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5390
5432
|
["text", "string"],
|
|
5391
5433
|
["user_id", "InputUser"],
|
|
5392
5434
|
],
|
|
5393
5435
|
"KeyboardButton",
|
|
5394
5436
|
],
|
|
5395
5437
|
keyboardButtonUserProfile: [
|
|
5396
|
-
|
|
5438
|
+
0xC0FD5D09,
|
|
5397
5439
|
[
|
|
5440
|
+
["flags", "#"],
|
|
5441
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5398
5442
|
["text", "string"],
|
|
5399
5443
|
["user_id", "long"],
|
|
5400
5444
|
],
|
|
5401
5445
|
"KeyboardButton",
|
|
5402
5446
|
],
|
|
5403
5447
|
keyboardButtonWebView: [
|
|
5404
|
-
|
|
5448
|
+
0xE846B1A0,
|
|
5405
5449
|
[
|
|
5450
|
+
["flags", "#"],
|
|
5451
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5406
5452
|
["text", "string"],
|
|
5407
5453
|
["url", "string"],
|
|
5408
5454
|
],
|
|
5409
5455
|
"KeyboardButton",
|
|
5410
5456
|
],
|
|
5411
5457
|
keyboardButtonSimpleWebView: [
|
|
5412
|
-
|
|
5458
|
+
0xE15C4370,
|
|
5413
5459
|
[
|
|
5460
|
+
["flags", "#"],
|
|
5461
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5414
5462
|
["text", "string"],
|
|
5415
5463
|
["url", "string"],
|
|
5416
5464
|
],
|
|
5417
5465
|
"KeyboardButton",
|
|
5418
5466
|
],
|
|
5419
5467
|
keyboardButtonRequestPeer: [
|
|
5420
|
-
|
|
5468
|
+
0x5B0F15F5,
|
|
5421
5469
|
[
|
|
5470
|
+
["flags", "#"],
|
|
5471
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5422
5472
|
["text", "string"],
|
|
5423
5473
|
["button_id", "int"],
|
|
5424
5474
|
["peer_type", "RequestPeerType"],
|
|
@@ -5427,12 +5477,13 @@ exports.schema = Object.freeze({
|
|
|
5427
5477
|
"KeyboardButton",
|
|
5428
5478
|
],
|
|
5429
5479
|
inputKeyboardButtonRequestPeer: [
|
|
5430
|
-
|
|
5480
|
+
0x02B78156,
|
|
5431
5481
|
[
|
|
5432
5482
|
["flags", "#"],
|
|
5433
5483
|
["name_requested", "flags.0?true"],
|
|
5434
5484
|
["username_requested", "flags.1?true"],
|
|
5435
5485
|
["photo_requested", "flags.2?true"],
|
|
5486
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5436
5487
|
["text", "string"],
|
|
5437
5488
|
["button_id", "int"],
|
|
5438
5489
|
["peer_type", "RequestPeerType"],
|
|
@@ -5441,8 +5492,10 @@ exports.schema = Object.freeze({
|
|
|
5441
5492
|
"KeyboardButton",
|
|
5442
5493
|
],
|
|
5443
5494
|
keyboardButtonCopy: [
|
|
5444
|
-
|
|
5495
|
+
0xBCC4AF10,
|
|
5445
5496
|
[
|
|
5497
|
+
["flags", "#"],
|
|
5498
|
+
["style", "flags.10?KeyboardButtonStyle"],
|
|
5446
5499
|
["text", "string"],
|
|
5447
5500
|
["copy_text", "string"],
|
|
5448
5501
|
],
|
|
@@ -9093,19 +9146,25 @@ exports.schema = Object.freeze({
|
|
|
9093
9146
|
"messages.SearchCounter",
|
|
9094
9147
|
],
|
|
9095
9148
|
urlAuthResultRequest: [
|
|
9096
|
-
|
|
9149
|
+
0x32FABF1A,
|
|
9097
9150
|
[
|
|
9098
9151
|
["flags", "#"],
|
|
9099
9152
|
["request_write_access", "flags.0?true"],
|
|
9153
|
+
["request_phone_number", "flags.1?true"],
|
|
9100
9154
|
["bot", "User"],
|
|
9101
9155
|
["domain", "string"],
|
|
9156
|
+
["browser", "flags.2?string"],
|
|
9157
|
+
["platform", "flags.2?string"],
|
|
9158
|
+
["ip", "flags.2?string"],
|
|
9159
|
+
["region", "flags.2?string"],
|
|
9102
9160
|
],
|
|
9103
9161
|
"UrlAuthResult",
|
|
9104
9162
|
],
|
|
9105
9163
|
urlAuthResultAccepted: [
|
|
9106
|
-
|
|
9164
|
+
0x623A8FA0,
|
|
9107
9165
|
[
|
|
9108
|
-
["
|
|
9166
|
+
["flags", "#"],
|
|
9167
|
+
["url", "flags.0?string"],
|
|
9109
9168
|
],
|
|
9110
9169
|
"UrlAuthResult",
|
|
9111
9170
|
],
|
|
@@ -12957,12 +13016,14 @@ exports.schema = Object.freeze({
|
|
|
12957
13016
|
"StarGift",
|
|
12958
13017
|
],
|
|
12959
13018
|
starGiftUnique: [
|
|
12960
|
-
|
|
13019
|
+
0x85F0A9CD,
|
|
12961
13020
|
[
|
|
12962
13021
|
["flags", "#"],
|
|
12963
13022
|
["require_premium", "flags.6?true"],
|
|
12964
13023
|
["resale_ton_only", "flags.7?true"],
|
|
12965
13024
|
["theme_available", "flags.9?true"],
|
|
13025
|
+
["burned", "flags.14?true"],
|
|
13026
|
+
["crafted", "flags.15?true"],
|
|
12966
13027
|
["id", "long"],
|
|
12967
13028
|
["gift_id", "long"],
|
|
12968
13029
|
["title", "string"],
|
|
@@ -12984,6 +13045,7 @@ exports.schema = Object.freeze({
|
|
|
12984
13045
|
["peer_color", "flags.11?PeerColor"],
|
|
12985
13046
|
["host_id", "flags.12?Peer"],
|
|
12986
13047
|
["offer_min_stars", "flags.13?int"],
|
|
13048
|
+
["craft_chance_permille", "flags.16?int"],
|
|
12987
13049
|
],
|
|
12988
13050
|
"StarGift",
|
|
12989
13051
|
],
|
|
@@ -13164,25 +13226,27 @@ exports.schema = Object.freeze({
|
|
|
13164
13226
|
"BotVerification",
|
|
13165
13227
|
],
|
|
13166
13228
|
starGiftAttributeModel: [
|
|
13167
|
-
|
|
13229
|
+
0x565251E2,
|
|
13168
13230
|
[
|
|
13231
|
+
["flags", "#"],
|
|
13232
|
+
["crafted", "flags.0?true"],
|
|
13169
13233
|
["name", "string"],
|
|
13170
13234
|
["document", "Document"],
|
|
13171
|
-
["
|
|
13235
|
+
["rarity", "StarGiftAttributeRarity"],
|
|
13172
13236
|
],
|
|
13173
13237
|
"StarGiftAttribute",
|
|
13174
13238
|
],
|
|
13175
13239
|
starGiftAttributePattern: [
|
|
13176
|
-
|
|
13240
|
+
0x4E7085EA,
|
|
13177
13241
|
[
|
|
13178
13242
|
["name", "string"],
|
|
13179
13243
|
["document", "Document"],
|
|
13180
|
-
["
|
|
13244
|
+
["rarity", "StarGiftAttributeRarity"],
|
|
13181
13245
|
],
|
|
13182
13246
|
"StarGiftAttribute",
|
|
13183
13247
|
],
|
|
13184
13248
|
starGiftAttributeBackdrop: [
|
|
13185
|
-
|
|
13249
|
+
0x9F2504E4,
|
|
13186
13250
|
[
|
|
13187
13251
|
["name", "string"],
|
|
13188
13252
|
["backdrop_id", "int"],
|
|
@@ -13190,7 +13254,7 @@ exports.schema = Object.freeze({
|
|
|
13190
13254
|
["edge_color", "int"],
|
|
13191
13255
|
["pattern_color", "int"],
|
|
13192
13256
|
["text_color", "int"],
|
|
13193
|
-
["
|
|
13257
|
+
["rarity", "StarGiftAttributeRarity"],
|
|
13194
13258
|
],
|
|
13195
13259
|
"StarGiftAttribute",
|
|
13196
13260
|
],
|
|
@@ -13248,7 +13312,7 @@ exports.schema = Object.freeze({
|
|
|
13248
13312
|
"messages.WebPagePreview",
|
|
13249
13313
|
],
|
|
13250
13314
|
savedStarGift: [
|
|
13251
|
-
|
|
13315
|
+
0x41DF43FC,
|
|
13252
13316
|
[
|
|
13253
13317
|
["flags", "#"],
|
|
13254
13318
|
["name_hidden", "flags.0?true"],
|
|
@@ -13273,6 +13337,7 @@ exports.schema = Object.freeze({
|
|
|
13273
13337
|
["prepaid_upgrade_hash", "flags.16?string"],
|
|
13274
13338
|
["drop_original_details_stars", "flags.18?long"],
|
|
13275
13339
|
["gift_num", "flags.19?int"],
|
|
13340
|
+
["can_craft_at", "flags.20?int"],
|
|
13276
13341
|
],
|
|
13277
13342
|
"SavedStarGift",
|
|
13278
13343
|
],
|
|
@@ -14016,6 +14081,44 @@ exports.schema = Object.freeze({
|
|
|
14016
14081
|
],
|
|
14017
14082
|
"messages.EmojiGameInfo",
|
|
14018
14083
|
],
|
|
14084
|
+
starGiftAttributeRarity: [
|
|
14085
|
+
0x36437737,
|
|
14086
|
+
[
|
|
14087
|
+
["permille", "int"],
|
|
14088
|
+
],
|
|
14089
|
+
"StarGiftAttributeRarity",
|
|
14090
|
+
],
|
|
14091
|
+
starGiftAttributeRarityUncommon: [
|
|
14092
|
+
0xDBCE6389,
|
|
14093
|
+
[],
|
|
14094
|
+
"StarGiftAttributeRarity",
|
|
14095
|
+
],
|
|
14096
|
+
starGiftAttributeRarityRare: [
|
|
14097
|
+
0xF08D516B,
|
|
14098
|
+
[],
|
|
14099
|
+
"StarGiftAttributeRarity",
|
|
14100
|
+
],
|
|
14101
|
+
starGiftAttributeRarityEpic: [
|
|
14102
|
+
0x78FBF3A8,
|
|
14103
|
+
[],
|
|
14104
|
+
"StarGiftAttributeRarity",
|
|
14105
|
+
],
|
|
14106
|
+
starGiftAttributeRarityLegendary: [
|
|
14107
|
+
0xCEF7E7A8,
|
|
14108
|
+
[],
|
|
14109
|
+
"StarGiftAttributeRarity",
|
|
14110
|
+
],
|
|
14111
|
+
keyboardButtonStyle: [
|
|
14112
|
+
0x4FDD3430,
|
|
14113
|
+
[
|
|
14114
|
+
["flags", "#"],
|
|
14115
|
+
["bg_primary", "flags.0?true"],
|
|
14116
|
+
["bg_danger", "flags.1?true"],
|
|
14117
|
+
["bg_success", "flags.2?true"],
|
|
14118
|
+
["icon", "flags.3?long"],
|
|
14119
|
+
],
|
|
14120
|
+
"KeyboardButtonStyle",
|
|
14121
|
+
],
|
|
14019
14122
|
invokeWithBusinessConnectionPrefix: [
|
|
14020
14123
|
0xDD289F8E,
|
|
14021
14124
|
[
|
|
@@ -16668,6 +16771,7 @@ exports.schema = Object.freeze({
|
|
|
16668
16771
|
[
|
|
16669
16772
|
["flags", "#"],
|
|
16670
16773
|
["write_allowed", "flags.0?true"],
|
|
16774
|
+
["share_phone_number", "flags.3?true"],
|
|
16671
16775
|
["peer", "flags.1?InputPeer"],
|
|
16672
16776
|
["msg_id", "flags.1?int"],
|
|
16673
16777
|
["button_id", "flags.1?int"],
|
|
@@ -18697,6 +18801,13 @@ exports.schema = Object.freeze({
|
|
|
18697
18801
|
],
|
|
18698
18802
|
"Bool",
|
|
18699
18803
|
],
|
|
18804
|
+
"channels.getFutureCreatorAfterLeave": [
|
|
18805
|
+
0xA00918AF,
|
|
18806
|
+
[
|
|
18807
|
+
["channel", "InputChannel"],
|
|
18808
|
+
],
|
|
18809
|
+
"User",
|
|
18810
|
+
],
|
|
18700
18811
|
"bots.sendCustomRequest": [
|
|
18701
18812
|
0xAA2769ED,
|
|
18702
18813
|
[
|
|
@@ -19371,6 +19482,7 @@ exports.schema = Object.freeze({
|
|
|
19371
19482
|
["flags", "#"],
|
|
19372
19483
|
["sort_by_price", "flags.1?true"],
|
|
19373
19484
|
["sort_by_num", "flags.2?true"],
|
|
19485
|
+
["for_craft", "flags.4?true"],
|
|
19374
19486
|
["attributes_hash", "flags.0?long"],
|
|
19375
19487
|
["gift_id", "long"],
|
|
19376
19488
|
["attributes", "flags.3?Vector<StarGiftAttributeId>"],
|
|
@@ -19498,6 +19610,22 @@ exports.schema = Object.freeze({
|
|
|
19498
19610
|
],
|
|
19499
19611
|
"payments.StarGiftUpgradeAttributes",
|
|
19500
19612
|
],
|
|
19613
|
+
"payments.getCraftStarGifts": [
|
|
19614
|
+
0xFD05DD00,
|
|
19615
|
+
[
|
|
19616
|
+
["gift_id", "long"],
|
|
19617
|
+
["offset", "string"],
|
|
19618
|
+
["limit", "int"],
|
|
19619
|
+
],
|
|
19620
|
+
"payments.SavedStarGifts",
|
|
19621
|
+
],
|
|
19622
|
+
"payments.craftStarGift": [
|
|
19623
|
+
0xB0F9684F,
|
|
19624
|
+
[
|
|
19625
|
+
["stargift", "Vector<InputSavedStarGift>"],
|
|
19626
|
+
],
|
|
19627
|
+
"Updates",
|
|
19628
|
+
],
|
|
19501
19629
|
"stickers.createStickerSet": [
|
|
19502
19630
|
0x9021AB67,
|
|
19503
19631
|
[
|
|
@@ -20774,7 +20902,7 @@ exports.schema = Object.freeze({
|
|
|
20774
20902
|
[0x45D5B021]: "messageActionGiftStars",
|
|
20775
20903
|
[0xB00C47A2]: "messageActionPrizeStars",
|
|
20776
20904
|
[0xEA2C31D3]: "messageActionStarGift",
|
|
20777
|
-
[
|
|
20905
|
+
[0xE6C31522]: "messageActionStarGiftUnique",
|
|
20778
20906
|
[0xAC1F1FCD]: "messageActionPaidMessagesRefunded",
|
|
20779
20907
|
[0x84B88578]: "messageActionPaidMessagesPrice",
|
|
20780
20908
|
[0x2FFE2F7A]: "messageActionConferenceCall",
|
|
@@ -20787,6 +20915,8 @@ exports.schema = Object.freeze({
|
|
|
20787
20915
|
[0x2C8F2A25]: "messageActionSuggestBirthday",
|
|
20788
20916
|
[0x774278D4]: "messageActionStarGiftPurchaseOffer",
|
|
20789
20917
|
[0x73ADA76B]: "messageActionStarGiftPurchaseOfferDeclined",
|
|
20918
|
+
[0xB07ED085]: "messageActionNewCreatorPending",
|
|
20919
|
+
[0xE188503B]: "messageActionChangeCreator",
|
|
20790
20920
|
[0xD58A08C6]: "dialog",
|
|
20791
20921
|
[0x71BD134C]: "dialogFolder",
|
|
20792
20922
|
[0x2331B22D]: "photoEmpty",
|
|
@@ -21013,6 +21143,7 @@ exports.schema = Object.freeze({
|
|
|
21013
21143
|
[0x48E246C2]: "updateStarGiftAuctionState",
|
|
21014
21144
|
[0xDC58F31E]: "updateStarGiftAuctionUserState",
|
|
21015
21145
|
[0xFB9C547A]: "updateEmojiGameInfo",
|
|
21146
|
+
[0xAC072444]: "updateStarGiftCraftFail",
|
|
21016
21147
|
[0xA56C2A3E]: "updates.state",
|
|
21017
21148
|
[0x5D75A138]: "updates.differenceEmpty",
|
|
21018
21149
|
[0x00F49CA0]: "updates.difference",
|
|
@@ -21185,24 +21316,24 @@ exports.schema = Object.freeze({
|
|
|
21185
21316
|
[0xD3F924EB]: "messages.stickerSetNotModified",
|
|
21186
21317
|
[0xC27AC8C7]: "botCommand",
|
|
21187
21318
|
[0x4D8A0299]: "botInfo",
|
|
21188
|
-
[
|
|
21189
|
-
[
|
|
21190
|
-
[
|
|
21191
|
-
[
|
|
21192
|
-
[
|
|
21193
|
-
[
|
|
21194
|
-
[
|
|
21195
|
-
[
|
|
21196
|
-
[
|
|
21197
|
-
[
|
|
21198
|
-
[
|
|
21199
|
-
[
|
|
21200
|
-
[
|
|
21201
|
-
[
|
|
21202
|
-
[
|
|
21203
|
-
[
|
|
21204
|
-
[
|
|
21205
|
-
[
|
|
21319
|
+
[0x7D170CFF]: "keyboardButton",
|
|
21320
|
+
[0xD80C25EC]: "keyboardButtonUrl",
|
|
21321
|
+
[0xE62BC960]: "keyboardButtonCallback",
|
|
21322
|
+
[0x417EFD8F]: "keyboardButtonRequestPhone",
|
|
21323
|
+
[0xAA40F94D]: "keyboardButtonRequestGeoLocation",
|
|
21324
|
+
[0x991399FC]: "keyboardButtonSwitchInline",
|
|
21325
|
+
[0x89C590F9]: "keyboardButtonGame",
|
|
21326
|
+
[0x3FA53905]: "keyboardButtonBuy",
|
|
21327
|
+
[0xF51006F9]: "keyboardButtonUrlAuth",
|
|
21328
|
+
[0x68013E72]: "inputKeyboardButtonUrlAuth",
|
|
21329
|
+
[0x7A11D782]: "keyboardButtonRequestPoll",
|
|
21330
|
+
[0x7D5E07C7]: "inputKeyboardButtonUserProfile",
|
|
21331
|
+
[0xC0FD5D09]: "keyboardButtonUserProfile",
|
|
21332
|
+
[0xE846B1A0]: "keyboardButtonWebView",
|
|
21333
|
+
[0xE15C4370]: "keyboardButtonSimpleWebView",
|
|
21334
|
+
[0x5B0F15F5]: "keyboardButtonRequestPeer",
|
|
21335
|
+
[0x02B78156]: "inputKeyboardButtonRequestPeer",
|
|
21336
|
+
[0xBCC4AF10]: "keyboardButtonCopy",
|
|
21206
21337
|
[0x77608B83]: "keyboardButtonRow",
|
|
21207
21338
|
[0xA03E5B85]: "replyKeyboardHide",
|
|
21208
21339
|
[0x86B40B08]: "replyKeyboardForceReply",
|
|
@@ -21617,8 +21748,8 @@ exports.schema = Object.freeze({
|
|
|
21617
21748
|
[0xFBD2C296]: "inputFolderPeer",
|
|
21618
21749
|
[0xE9BAA668]: "folderPeer",
|
|
21619
21750
|
[0xE844EBFF]: "messages.searchCounter",
|
|
21620
|
-
[
|
|
21621
|
-
[
|
|
21751
|
+
[0x32FABF1A]: "urlAuthResultRequest",
|
|
21752
|
+
[0x623A8FA0]: "urlAuthResultAccepted",
|
|
21622
21753
|
[0xA9D6DB1F]: "urlAuthResultDefault",
|
|
21623
21754
|
[0xBFB5AD8B]: "channelLocationEmpty",
|
|
21624
21755
|
[0x209B82DB]: "channelLocation",
|
|
@@ -22025,7 +22156,7 @@ exports.schema = Object.freeze({
|
|
|
22025
22156
|
[0x94CE852A]: "starsGiveawayOption",
|
|
22026
22157
|
[0x54236209]: "starsGiveawayWinnersOption",
|
|
22027
22158
|
[0x313A9547]: "starGift",
|
|
22028
|
-
[
|
|
22159
|
+
[0x85F0A9CD]: "starGiftUnique",
|
|
22029
22160
|
[0xA388A368]: "payments.starGiftsNotModified",
|
|
22030
22161
|
[0x2ED82995]: "payments.starGifts",
|
|
22031
22162
|
[0x7903E3D9]: "messageReportOption",
|
|
@@ -22045,16 +22176,16 @@ exports.schema = Object.freeze({
|
|
|
22045
22176
|
[0x82C9E290]: "messages.foundStickers",
|
|
22046
22177
|
[0xB0CD6617]: "botVerifierSettings",
|
|
22047
22178
|
[0xF93CD45C]: "botVerification",
|
|
22048
|
-
[
|
|
22049
|
-
[
|
|
22050
|
-
[
|
|
22179
|
+
[0x565251E2]: "starGiftAttributeModel",
|
|
22180
|
+
[0x4E7085EA]: "starGiftAttributePattern",
|
|
22181
|
+
[0x9F2504E4]: "starGiftAttributeBackdrop",
|
|
22051
22182
|
[0xE0BFF26C]: "starGiftAttributeOriginalDetails",
|
|
22052
22183
|
[0x3DE1DFED]: "payments.starGiftUpgradePreview",
|
|
22053
22184
|
[0x62D706B8]: "users.users",
|
|
22054
22185
|
[0x315A4974]: "users.usersSlice",
|
|
22055
22186
|
[0x416C56E8]: "payments.uniqueStarGift",
|
|
22056
22187
|
[0x8C9A88AC]: "messages.webPagePreview",
|
|
22057
|
-
[
|
|
22188
|
+
[0x41DF43FC]: "savedStarGift",
|
|
22058
22189
|
[0x95F389B1]: "payments.savedStarGifts",
|
|
22059
22190
|
[0x69279795]: "inputSavedStarGiftUser",
|
|
22060
22191
|
[0xF101AA7F]: "inputSavedStarGiftChat",
|
|
@@ -22142,6 +22273,12 @@ exports.schema = Object.freeze({
|
|
|
22142
22273
|
[0xDA2AD647]: "messages.emojiGameOutcome",
|
|
22143
22274
|
[0x59E65335]: "messages.emojiGameUnavailable",
|
|
22144
22275
|
[0x44E56023]: "messages.emojiGameDiceInfo",
|
|
22276
|
+
[0x36437737]: "starGiftAttributeRarity",
|
|
22277
|
+
[0xDBCE6389]: "starGiftAttributeRarityUncommon",
|
|
22278
|
+
[0xF08D516B]: "starGiftAttributeRarityRare",
|
|
22279
|
+
[0x78FBF3A8]: "starGiftAttributeRarityEpic",
|
|
22280
|
+
[0xCEF7E7A8]: "starGiftAttributeRarityLegendary",
|
|
22281
|
+
[0x4FDD3430]: "keyboardButtonStyle",
|
|
22145
22282
|
},
|
|
22146
22283
|
});
|
|
22147
|
-
exports.LAYER =
|
|
22284
|
+
exports.LAYER = 222;
|
|
@@ -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"}
|