@mtkruto/node 0.1.132 → 0.1.134
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_errors.d.ts +519 -510
- package/esm/3_errors.js +521 -509
- package/esm/3_types.d.ts +19 -7
- package/esm/3_types.js +19 -7
- package/esm/4_constants.d.ts +2 -2
- package/esm/4_constants.js +2 -2
- package/esm/4_errors.d.ts +7 -12
- package/esm/4_errors.js +6 -7
- package/esm/5_client.d.ts +3 -3
- package/esm/5_client.js +3 -3
- package/esm/client/0_utilities.d.ts +30 -2
- package/esm/client/0_utilities.js +13 -5
- package/esm/client/1_composer.d.ts +30 -0
- package/esm/client/{4_composer.js → 1_composer.js} +15 -2
- package/esm/client/2_client_plain.d.ts +1 -1
- package/esm/client/2_client_plain.js +1 -1
- package/esm/client/{3_types.d.ts → 3_params.d.ts} +68 -172
- package/esm/client/3_params.js +1 -0
- package/esm/client/{5_client.d.ts → 4_client.d.ts} +89 -57
- package/esm/client/{5_client.js → 4_client.js} +499 -308
- package/esm/client/5_composer.d.ts +4 -0
- package/esm/client/5_composer.js +3 -0
- package/esm/storage/0_storage.d.ts +4 -1
- package/esm/storage/0_storage.js +36 -7
- package/esm/storage/1_storage_indexed_db.d.ts +6 -2
- package/esm/storage/1_storage_indexed_db.js +7 -5
- package/esm/storage/1_storage_local_storage.d.ts +1 -1
- package/esm/storage/1_storage_local_storage.js +1 -1
- package/esm/storage/1_storage_memory.d.ts +1 -1
- package/esm/storage/1_storage_memory.js +1 -1
- package/esm/storage/1_storage_session_storage.d.ts +1 -1
- package/esm/storage/1_storage_session_storage.js +1 -1
- package/esm/tl/2_types.d.ts +313 -24
- package/esm/tl/2_types.js +982 -46
- package/esm/tl/3_functions.d.ts +95 -32
- package/esm/tl/3_functions.js +227 -66
- package/esm/tl/3_utilities.d.ts +1 -0
- package/esm/tl/3_utilities.js +14 -0
- package/esm/tl/6_message.js +1 -1
- package/esm/types/0_authorization_state.d.ts +5 -0
- package/esm/types/0_authorization_state.js +1 -0
- package/esm/types/0_chat_photo.d.ts +22 -21
- package/esm/types/0_connection_state.d.ts +17 -0
- package/esm/types/0_connection_state.js +1 -0
- package/esm/types/0_giveaway_parameters.d.ts +9 -0
- package/esm/types/0_giveaway_parameters.js +9 -0
- package/esm/types/0_login_url.d.ts +0 -4
- package/esm/types/0_mask_position.d.ts +0 -4
- package/esm/types/0_message_entity.d.ts +91 -74
- package/esm/types/0_message_identifier.d.ts +4 -0
- package/esm/types/0_message_identifier.js +1 -0
- package/esm/types/0_network_statistics_entry.d.ts +4 -0
- package/esm/types/0_network_statistics_entry.js +1 -0
- package/esm/types/0_reaction.d.ts +14 -10
- package/esm/types/0_reaction.js +29 -1
- package/esm/types/1__getters.d.ts +3 -0
- package/esm/types/1_bot_command_scope.d.ts +32 -27
- package/esm/types/1_chat_p.d.ts +77 -68
- package/esm/types/1_giveaway.d.ts +8 -0
- package/esm/types/1_giveaway.js +7 -0
- package/esm/types/1_keyboard_button.d.ts +41 -57
- package/esm/types/1_keyboard_button.js +3 -0
- package/esm/types/1_message_reaction.d.ts +14 -0
- package/esm/types/1_message_reaction.js +22 -0
- package/esm/types/1_network_statistics.d.ts +5 -0
- package/esm/types/1_network_statistics.js +1 -0
- package/esm/types/1_poll.d.ts +0 -13
- package/esm/types/1_reaction_count.d.ts +7 -0
- package/esm/types/1_reaction_count.js +6 -0
- package/esm/types/1_user.d.ts +2 -2
- package/esm/types/2_game.d.ts +0 -7
- package/esm/types/2_inline_keyboard_button.d.ts +36 -37
- package/esm/types/2_inline_query.d.ts +0 -6
- package/esm/types/2_message_interactions.d.ts +8 -0
- package/esm/types/2_message_interactions.js +1 -0
- package/esm/types/2_message_reaction_count.d.ts +8 -0
- package/esm/types/2_message_reaction_count.js +1 -0
- package/esm/types/2_reply_keyboard_markup.d.ts +0 -7
- package/esm/types/3_inline_keyboard_markup.d.ts +0 -2
- package/esm/types/4_message.d.ts +457 -0
- package/esm/types/{3_message.js → 4_message.js} +216 -129
- package/{script/types/4_callback_query.d.ts → esm/types/5_callback_query.d.ts} +1 -1
- package/esm/types/5_chat.d.ts +37 -0
- package/esm/types/{4_chat.js → 5_chat.js} +2 -2
- package/esm/types/6_update.d.ts +134 -0
- package/esm/types/6_update.js +1 -0
- package/package.json +1 -1
- package/script/3_errors.d.ts +519 -510
- package/script/3_errors.js +533 -520
- package/script/3_types.d.ts +19 -7
- package/script/3_types.js +19 -7
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +2 -2
- package/script/4_errors.d.ts +7 -12
- package/script/4_errors.js +5 -6
- package/script/5_client.d.ts +3 -3
- package/script/5_client.js +3 -3
- package/script/client/0_utilities.d.ts +30 -2
- package/script/client/0_utilities.js +15 -6
- package/script/client/1_composer.d.ts +30 -0
- package/script/client/{4_composer.js → 1_composer.js} +17 -4
- package/script/client/2_client_plain.d.ts +1 -1
- package/script/client/2_client_plain.js +2 -2
- package/script/client/{3_types.d.ts → 3_params.d.ts} +68 -172
- package/script/client/3_params.js +2 -0
- package/script/client/{5_client.d.ts → 4_client.d.ts} +89 -57
- package/script/client/{5_client.js → 4_client.js} +505 -314
- package/script/client/5_composer.d.ts +4 -0
- package/script/client/{6_composer.js → 5_composer.js} +2 -2
- package/script/storage/0_storage.d.ts +4 -1
- package/script/storage/0_storage.js +36 -7
- package/script/storage/1_storage_indexed_db.d.ts +6 -2
- package/script/storage/1_storage_indexed_db.js +7 -5
- package/script/storage/1_storage_local_storage.d.ts +1 -1
- package/script/storage/1_storage_local_storage.js +1 -1
- package/script/storage/1_storage_memory.d.ts +1 -1
- package/script/storage/1_storage_memory.js +1 -1
- package/script/storage/1_storage_session_storage.d.ts +1 -1
- package/script/storage/1_storage_session_storage.js +1 -1
- package/script/tl/2_types.d.ts +313 -24
- package/script/tl/2_types.js +1169 -217
- package/script/tl/3_functions.d.ts +95 -32
- package/script/tl/3_functions.js +241 -77
- package/script/tl/3_utilities.d.ts +1 -0
- package/script/tl/3_utilities.js +16 -1
- package/script/tl/6_message.js +1 -1
- package/script/types/0_authorization_state.d.ts +5 -0
- package/script/types/0_authorization_state.js +2 -0
- package/script/types/0_chat_photo.d.ts +22 -21
- package/script/types/0_connection_state.d.ts +17 -0
- package/script/types/0_connection_state.js +2 -0
- package/script/types/0_giveaway_parameters.d.ts +9 -0
- package/script/types/0_giveaway_parameters.js +13 -0
- package/script/types/0_login_url.d.ts +0 -4
- package/script/types/0_mask_position.d.ts +0 -4
- package/script/types/0_message_entity.d.ts +91 -74
- package/script/types/0_message_identifier.d.ts +4 -0
- package/script/types/0_message_identifier.js +2 -0
- package/script/types/0_network_statistics_entry.d.ts +4 -0
- package/script/types/0_network_statistics_entry.js +2 -0
- package/script/types/0_reaction.d.ts +14 -10
- package/script/types/0_reaction.js +33 -0
- package/script/types/1__getters.d.ts +3 -0
- package/script/types/1_bot_command_scope.d.ts +32 -27
- package/script/types/1_chat_p.d.ts +77 -68
- package/script/types/1_giveaway.d.ts +8 -0
- package/script/types/1_giveaway.js +11 -0
- package/script/types/1_keyboard_button.d.ts +41 -57
- package/script/types/1_keyboard_button.js +3 -0
- package/script/types/1_message_reaction.d.ts +14 -0
- package/script/types/1_message_reaction.js +26 -0
- package/script/types/1_network_statistics.d.ts +5 -0
- package/script/types/1_network_statistics.js +2 -0
- package/script/types/1_poll.d.ts +0 -13
- package/script/types/1_reaction_count.d.ts +7 -0
- package/script/types/1_reaction_count.js +10 -0
- package/script/types/1_user.d.ts +2 -2
- package/script/types/2_game.d.ts +0 -7
- package/script/types/2_inline_keyboard_button.d.ts +36 -37
- package/script/types/2_inline_query.d.ts +0 -6
- package/script/types/2_message_interactions.d.ts +8 -0
- package/script/types/2_message_interactions.js +2 -0
- package/script/types/2_message_reaction_count.d.ts +8 -0
- package/script/types/2_message_reaction_count.js +2 -0
- package/script/types/2_reply_keyboard_markup.d.ts +0 -7
- package/script/types/3_inline_keyboard_markup.d.ts +0 -2
- package/script/types/4_message.d.ts +457 -0
- package/script/types/{3_message.js → 4_message.js} +218 -130
- package/{esm/types/4_callback_query.d.ts → script/types/5_callback_query.d.ts} +1 -1
- package/script/types/5_chat.d.ts +37 -0
- package/script/types/{4_chat.js → 5_chat.js} +3 -3
- package/script/types/6_update.d.ts +134 -0
- package/script/types/6_update.js +2 -0
- package/esm/client/3_types.js +0 -11
- package/esm/client/4_composer.d.ts +0 -31
- package/esm/client/6_composer.d.ts +0 -4
- package/esm/client/6_composer.js +0 -3
- package/esm/types/3_message.d.ts +0 -182
- package/esm/types/4_chat.d.ts +0 -34
- package/script/client/3_types.js +0 -15
- package/script/client/4_composer.d.ts +0 -31
- package/script/client/6_composer.d.ts +0 -4
- package/script/types/3_message.d.ts +0 -182
- package/script/types/4_chat.d.ts +0 -34
- /package/esm/client/{1_client_abstract.d.ts → 0_client_abstract.d.ts} +0 -0
- /package/esm/client/{1_client_abstract.js → 0_client_abstract.js} +0 -0
- /package/esm/types/{0_audio.d.ts → 1_audio.d.ts} +0 -0
- /package/esm/types/{0_audio.js → 1_audio.js} +0 -0
- /package/esm/types/{4_callback_query.js → 5_callback_query.js} +0 -0
- /package/script/client/{1_client_abstract.d.ts → 0_client_abstract.d.ts} +0 -0
- /package/script/client/{1_client_abstract.js → 0_client_abstract.js} +0 -0
- /package/script/types/{0_audio.d.ts → 1_audio.d.ts} +0 -0
- /package/script/types/{0_audio.js → 1_audio.js} +0 -0
- /package/script/types/{4_callback_query.js → 5_callback_query.js} +0 -0
package/esm/tl/3_functions.js
CHANGED
|
@@ -5330,6 +5330,74 @@ Object.defineProperty(account_getDefaultBackgroundEmojis_, "__F", {
|
|
|
5330
5330
|
writable: true,
|
|
5331
5331
|
value: Symbol()
|
|
5332
5332
|
});
|
|
5333
|
+
export class account_getChannelDefaultEmojiStatuses_ extends Function_ {
|
|
5334
|
+
get [id]() {
|
|
5335
|
+
return 0x7727A7D5;
|
|
5336
|
+
}
|
|
5337
|
+
static get [name]() {
|
|
5338
|
+
return "account.getChannelDefaultEmojiStatuses";
|
|
5339
|
+
}
|
|
5340
|
+
static get [paramDesc]() {
|
|
5341
|
+
return [
|
|
5342
|
+
["hash", "bigint", "long"],
|
|
5343
|
+
];
|
|
5344
|
+
}
|
|
5345
|
+
get [params]() {
|
|
5346
|
+
return [
|
|
5347
|
+
[this.hash, "bigint", "long"],
|
|
5348
|
+
];
|
|
5349
|
+
}
|
|
5350
|
+
constructor(params) {
|
|
5351
|
+
super();
|
|
5352
|
+
Object.defineProperty(this, "hash", {
|
|
5353
|
+
enumerable: true,
|
|
5354
|
+
configurable: true,
|
|
5355
|
+
writable: true,
|
|
5356
|
+
value: void 0
|
|
5357
|
+
});
|
|
5358
|
+
this.hash = params.hash;
|
|
5359
|
+
}
|
|
5360
|
+
}
|
|
5361
|
+
Object.defineProperty(account_getChannelDefaultEmojiStatuses_, "__F", {
|
|
5362
|
+
enumerable: true,
|
|
5363
|
+
configurable: true,
|
|
5364
|
+
writable: true,
|
|
5365
|
+
value: Symbol()
|
|
5366
|
+
});
|
|
5367
|
+
export class account_getChannelRestrictedStatusEmojis_ extends Function_ {
|
|
5368
|
+
get [id]() {
|
|
5369
|
+
return 0x35A9E0D5;
|
|
5370
|
+
}
|
|
5371
|
+
static get [name]() {
|
|
5372
|
+
return "account.getChannelRestrictedStatusEmojis";
|
|
5373
|
+
}
|
|
5374
|
+
static get [paramDesc]() {
|
|
5375
|
+
return [
|
|
5376
|
+
["hash", "bigint", "long"],
|
|
5377
|
+
];
|
|
5378
|
+
}
|
|
5379
|
+
get [params]() {
|
|
5380
|
+
return [
|
|
5381
|
+
[this.hash, "bigint", "long"],
|
|
5382
|
+
];
|
|
5383
|
+
}
|
|
5384
|
+
constructor(params) {
|
|
5385
|
+
super();
|
|
5386
|
+
Object.defineProperty(this, "hash", {
|
|
5387
|
+
enumerable: true,
|
|
5388
|
+
configurable: true,
|
|
5389
|
+
writable: true,
|
|
5390
|
+
value: void 0
|
|
5391
|
+
});
|
|
5392
|
+
this.hash = params.hash;
|
|
5393
|
+
}
|
|
5394
|
+
}
|
|
5395
|
+
Object.defineProperty(account_getChannelRestrictedStatusEmojis_, "__F", {
|
|
5396
|
+
enumerable: true,
|
|
5397
|
+
configurable: true,
|
|
5398
|
+
writable: true,
|
|
5399
|
+
value: Symbol()
|
|
5400
|
+
});
|
|
5333
5401
|
export class users_getUsers_ extends Function_ {
|
|
5334
5402
|
get [id]() {
|
|
5335
5403
|
return 0x0D91A548;
|
|
@@ -16009,7 +16077,7 @@ Object.defineProperty(messages_getDefaultHistoryTTL_, "__F", {
|
|
|
16009
16077
|
});
|
|
16010
16078
|
export class messages_sendBotRequestedPeer_ extends Function_ {
|
|
16011
16079
|
get [id]() {
|
|
16012
|
-
return
|
|
16080
|
+
return 0x91B2D060;
|
|
16013
16081
|
}
|
|
16014
16082
|
static get [name]() {
|
|
16015
16083
|
return "messages.sendBotRequestedPeer";
|
|
@@ -16019,7 +16087,7 @@ export class messages_sendBotRequestedPeer_ extends Function_ {
|
|
|
16019
16087
|
["peer", types._InputPeer, "InputPeer"],
|
|
16020
16088
|
["msg_id", "number", "int"],
|
|
16021
16089
|
["button_id", "number", "int"],
|
|
16022
|
-
["
|
|
16090
|
+
["requested_peers", [types._InputPeer], "Vector<InputPeer>"],
|
|
16023
16091
|
];
|
|
16024
16092
|
}
|
|
16025
16093
|
get [params]() {
|
|
@@ -16027,7 +16095,7 @@ export class messages_sendBotRequestedPeer_ extends Function_ {
|
|
|
16027
16095
|
[this.peer, types._InputPeer, "InputPeer"],
|
|
16028
16096
|
[this.msg_id, "number", "int"],
|
|
16029
16097
|
[this.button_id, "number", "int"],
|
|
16030
|
-
[this.
|
|
16098
|
+
[this.requested_peers, [types._InputPeer], "Vector<InputPeer>"],
|
|
16031
16099
|
];
|
|
16032
16100
|
}
|
|
16033
16101
|
constructor(params) {
|
|
@@ -16050,7 +16118,7 @@ export class messages_sendBotRequestedPeer_ extends Function_ {
|
|
|
16050
16118
|
writable: true,
|
|
16051
16119
|
value: void 0
|
|
16052
16120
|
});
|
|
16053
|
-
Object.defineProperty(this, "
|
|
16121
|
+
Object.defineProperty(this, "requested_peers", {
|
|
16054
16122
|
enumerable: true,
|
|
16055
16123
|
configurable: true,
|
|
16056
16124
|
writable: true,
|
|
@@ -16059,7 +16127,7 @@ export class messages_sendBotRequestedPeer_ extends Function_ {
|
|
|
16059
16127
|
this.peer = params.peer;
|
|
16060
16128
|
this.msg_id = params.msg_id;
|
|
16061
16129
|
this.button_id = params.button_id;
|
|
16062
|
-
this.
|
|
16130
|
+
this.requested_peers = params.requested_peers;
|
|
16063
16131
|
}
|
|
16064
16132
|
}
|
|
16065
16133
|
Object.defineProperty(messages_sendBotRequestedPeer_, "__F", {
|
|
@@ -17557,40 +17625,6 @@ Object.defineProperty(help_getSupport_, "__F", {
|
|
|
17557
17625
|
writable: true,
|
|
17558
17626
|
value: Symbol()
|
|
17559
17627
|
});
|
|
17560
|
-
export class help_getAppChangelog_ extends Function_ {
|
|
17561
|
-
get [id]() {
|
|
17562
|
-
return 0x9010EF6F;
|
|
17563
|
-
}
|
|
17564
|
-
static get [name]() {
|
|
17565
|
-
return "help.getAppChangelog";
|
|
17566
|
-
}
|
|
17567
|
-
static get [paramDesc]() {
|
|
17568
|
-
return [
|
|
17569
|
-
["prev_app_version", "string", "string"],
|
|
17570
|
-
];
|
|
17571
|
-
}
|
|
17572
|
-
get [params]() {
|
|
17573
|
-
return [
|
|
17574
|
-
[this.prev_app_version, "string", "string"],
|
|
17575
|
-
];
|
|
17576
|
-
}
|
|
17577
|
-
constructor(params) {
|
|
17578
|
-
super();
|
|
17579
|
-
Object.defineProperty(this, "prev_app_version", {
|
|
17580
|
-
enumerable: true,
|
|
17581
|
-
configurable: true,
|
|
17582
|
-
writable: true,
|
|
17583
|
-
value: void 0
|
|
17584
|
-
});
|
|
17585
|
-
this.prev_app_version = params.prev_app_version;
|
|
17586
|
-
}
|
|
17587
|
-
}
|
|
17588
|
-
Object.defineProperty(help_getAppChangelog_, "__F", {
|
|
17589
|
-
enumerable: true,
|
|
17590
|
-
configurable: true,
|
|
17591
|
-
writable: true,
|
|
17592
|
-
value: Symbol()
|
|
17593
|
-
});
|
|
17594
17628
|
export class help_setBotUpdatesStatus_ extends Function_ {
|
|
17595
17629
|
get [id]() {
|
|
17596
17630
|
return 0xEC22CFCD;
|
|
@@ -20876,7 +20910,7 @@ Object.defineProperty(channels_clickSponsoredMessage_, "__F", {
|
|
|
20876
20910
|
});
|
|
20877
20911
|
export class channels_updateColor_ extends Function_ {
|
|
20878
20912
|
get [id]() {
|
|
20879
|
-
return
|
|
20913
|
+
return 0xD8AA3671;
|
|
20880
20914
|
}
|
|
20881
20915
|
static get [name]() {
|
|
20882
20916
|
return "channels.updateColor";
|
|
@@ -20884,21 +20918,29 @@ export class channels_updateColor_ extends Function_ {
|
|
|
20884
20918
|
static get [paramDesc]() {
|
|
20885
20919
|
return [
|
|
20886
20920
|
["flags", flags, "#"],
|
|
20921
|
+
["for_profile", "true", "flags.1?true"],
|
|
20887
20922
|
["channel", types._InputChannel, "InputChannel"],
|
|
20888
|
-
["color", "number", "int"],
|
|
20923
|
+
["color", "number", "flags.2?int"],
|
|
20889
20924
|
["background_emoji_id", "bigint", "flags.0?long"],
|
|
20890
20925
|
];
|
|
20891
20926
|
}
|
|
20892
20927
|
get [params]() {
|
|
20893
20928
|
return [
|
|
20894
20929
|
["flags", flags, "#"],
|
|
20930
|
+
[this.for_profile ?? null, "true", "flags.1?true"],
|
|
20895
20931
|
[this.channel, types._InputChannel, "InputChannel"],
|
|
20896
|
-
[this.color, "number", "int"],
|
|
20932
|
+
[this.color ?? null, "number", "flags.2?int"],
|
|
20897
20933
|
[this.background_emoji_id ?? null, "bigint", "flags.0?long"],
|
|
20898
20934
|
];
|
|
20899
20935
|
}
|
|
20900
20936
|
constructor(params) {
|
|
20901
20937
|
super();
|
|
20938
|
+
Object.defineProperty(this, "for_profile", {
|
|
20939
|
+
enumerable: true,
|
|
20940
|
+
configurable: true,
|
|
20941
|
+
writable: true,
|
|
20942
|
+
value: void 0
|
|
20943
|
+
});
|
|
20902
20944
|
Object.defineProperty(this, "channel", {
|
|
20903
20945
|
enumerable: true,
|
|
20904
20946
|
configurable: true,
|
|
@@ -20917,6 +20959,7 @@ export class channels_updateColor_ extends Function_ {
|
|
|
20917
20959
|
writable: true,
|
|
20918
20960
|
value: void 0
|
|
20919
20961
|
});
|
|
20962
|
+
this.for_profile = params.for_profile;
|
|
20920
20963
|
this.channel = params.channel;
|
|
20921
20964
|
this.color = params.color;
|
|
20922
20965
|
this.background_emoji_id = params.background_emoji_id;
|
|
@@ -21005,6 +21048,49 @@ Object.defineProperty(channels_getChannelRecommendations_, "__F", {
|
|
|
21005
21048
|
writable: true,
|
|
21006
21049
|
value: Symbol()
|
|
21007
21050
|
});
|
|
21051
|
+
export class channels_updateEmojiStatus_ extends Function_ {
|
|
21052
|
+
get [id]() {
|
|
21053
|
+
return 0xF0D3E6A8;
|
|
21054
|
+
}
|
|
21055
|
+
static get [name]() {
|
|
21056
|
+
return "channels.updateEmojiStatus";
|
|
21057
|
+
}
|
|
21058
|
+
static get [paramDesc]() {
|
|
21059
|
+
return [
|
|
21060
|
+
["channel", types._InputChannel, "InputChannel"],
|
|
21061
|
+
["emoji_status", types._EmojiStatus, "EmojiStatus"],
|
|
21062
|
+
];
|
|
21063
|
+
}
|
|
21064
|
+
get [params]() {
|
|
21065
|
+
return [
|
|
21066
|
+
[this.channel, types._InputChannel, "InputChannel"],
|
|
21067
|
+
[this.emoji_status, types._EmojiStatus, "EmojiStatus"],
|
|
21068
|
+
];
|
|
21069
|
+
}
|
|
21070
|
+
constructor(params) {
|
|
21071
|
+
super();
|
|
21072
|
+
Object.defineProperty(this, "channel", {
|
|
21073
|
+
enumerable: true,
|
|
21074
|
+
configurable: true,
|
|
21075
|
+
writable: true,
|
|
21076
|
+
value: void 0
|
|
21077
|
+
});
|
|
21078
|
+
Object.defineProperty(this, "emoji_status", {
|
|
21079
|
+
enumerable: true,
|
|
21080
|
+
configurable: true,
|
|
21081
|
+
writable: true,
|
|
21082
|
+
value: void 0
|
|
21083
|
+
});
|
|
21084
|
+
this.channel = params.channel;
|
|
21085
|
+
this.emoji_status = params.emoji_status;
|
|
21086
|
+
}
|
|
21087
|
+
}
|
|
21088
|
+
Object.defineProperty(channels_updateEmojiStatus_, "__F", {
|
|
21089
|
+
enumerable: true,
|
|
21090
|
+
configurable: true,
|
|
21091
|
+
writable: true,
|
|
21092
|
+
value: Symbol()
|
|
21093
|
+
});
|
|
21008
21094
|
export class bots_sendCustomRequest_ extends Function_ {
|
|
21009
21095
|
get [id]() {
|
|
21010
21096
|
return 0xAA2769ED;
|
|
@@ -24843,7 +24929,7 @@ Object.defineProperty(stats_getMegagroupStats_, "__F", {
|
|
|
24843
24929
|
});
|
|
24844
24930
|
export class stats_getMessagePublicForwards_ extends Function_ {
|
|
24845
24931
|
get [id]() {
|
|
24846
|
-
return
|
|
24932
|
+
return 0x5F150144;
|
|
24847
24933
|
}
|
|
24848
24934
|
static get [name]() {
|
|
24849
24935
|
return "stats.getMessagePublicForwards";
|
|
@@ -24852,9 +24938,7 @@ export class stats_getMessagePublicForwards_ extends Function_ {
|
|
|
24852
24938
|
return [
|
|
24853
24939
|
["channel", types._InputChannel, "InputChannel"],
|
|
24854
24940
|
["msg_id", "number", "int"],
|
|
24855
|
-
["
|
|
24856
|
-
["offset_peer", types._InputPeer, "InputPeer"],
|
|
24857
|
-
["offset_id", "number", "int"],
|
|
24941
|
+
["offset", "string", "string"],
|
|
24858
24942
|
["limit", "number", "int"],
|
|
24859
24943
|
];
|
|
24860
24944
|
}
|
|
@@ -24862,9 +24946,7 @@ export class stats_getMessagePublicForwards_ extends Function_ {
|
|
|
24862
24946
|
return [
|
|
24863
24947
|
[this.channel, types._InputChannel, "InputChannel"],
|
|
24864
24948
|
[this.msg_id, "number", "int"],
|
|
24865
|
-
[this.
|
|
24866
|
-
[this.offset_peer, types._InputPeer, "InputPeer"],
|
|
24867
|
-
[this.offset_id, "number", "int"],
|
|
24949
|
+
[this.offset, "string", "string"],
|
|
24868
24950
|
[this.limit, "number", "int"],
|
|
24869
24951
|
];
|
|
24870
24952
|
}
|
|
@@ -24882,19 +24964,7 @@ export class stats_getMessagePublicForwards_ extends Function_ {
|
|
|
24882
24964
|
writable: true,
|
|
24883
24965
|
value: void 0
|
|
24884
24966
|
});
|
|
24885
|
-
Object.defineProperty(this, "
|
|
24886
|
-
enumerable: true,
|
|
24887
|
-
configurable: true,
|
|
24888
|
-
writable: true,
|
|
24889
|
-
value: void 0
|
|
24890
|
-
});
|
|
24891
|
-
Object.defineProperty(this, "offset_peer", {
|
|
24892
|
-
enumerable: true,
|
|
24893
|
-
configurable: true,
|
|
24894
|
-
writable: true,
|
|
24895
|
-
value: void 0
|
|
24896
|
-
});
|
|
24897
|
-
Object.defineProperty(this, "offset_id", {
|
|
24967
|
+
Object.defineProperty(this, "offset", {
|
|
24898
24968
|
enumerable: true,
|
|
24899
24969
|
configurable: true,
|
|
24900
24970
|
writable: true,
|
|
@@ -24908,9 +24978,7 @@ export class stats_getMessagePublicForwards_ extends Function_ {
|
|
|
24908
24978
|
});
|
|
24909
24979
|
this.channel = params.channel;
|
|
24910
24980
|
this.msg_id = params.msg_id;
|
|
24911
|
-
this.
|
|
24912
|
-
this.offset_peer = params.offset_peer;
|
|
24913
|
-
this.offset_id = params.offset_id;
|
|
24981
|
+
this.offset = params.offset;
|
|
24914
24982
|
this.limit = params.limit;
|
|
24915
24983
|
}
|
|
24916
24984
|
}
|
|
@@ -26242,6 +26310,7 @@ export class stories_getStoryViewsList_ extends Function_ {
|
|
|
26242
26310
|
["flags", flags, "#"],
|
|
26243
26311
|
["just_contacts", "true", "flags.0?true"],
|
|
26244
26312
|
["reactions_first", "true", "flags.2?true"],
|
|
26313
|
+
["forwards_first", "true", "flags.3?true"],
|
|
26245
26314
|
["peer", types._InputPeer, "InputPeer"],
|
|
26246
26315
|
["q", "string", "flags.1?string"],
|
|
26247
26316
|
["id", "number", "int"],
|
|
@@ -26254,6 +26323,7 @@ export class stories_getStoryViewsList_ extends Function_ {
|
|
|
26254
26323
|
["flags", flags, "#"],
|
|
26255
26324
|
[this.just_contacts ?? null, "true", "flags.0?true"],
|
|
26256
26325
|
[this.reactions_first ?? null, "true", "flags.2?true"],
|
|
26326
|
+
[this.forwards_first ?? null, "true", "flags.3?true"],
|
|
26257
26327
|
[this.peer, types._InputPeer, "InputPeer"],
|
|
26258
26328
|
[this.q ?? null, "string", "flags.1?string"],
|
|
26259
26329
|
[this.id, "number", "int"],
|
|
@@ -26275,6 +26345,12 @@ export class stories_getStoryViewsList_ extends Function_ {
|
|
|
26275
26345
|
writable: true,
|
|
26276
26346
|
value: void 0
|
|
26277
26347
|
});
|
|
26348
|
+
Object.defineProperty(this, "forwards_first", {
|
|
26349
|
+
enumerable: true,
|
|
26350
|
+
configurable: true,
|
|
26351
|
+
writable: true,
|
|
26352
|
+
value: void 0
|
|
26353
|
+
});
|
|
26278
26354
|
Object.defineProperty(this, "peer", {
|
|
26279
26355
|
enumerable: true,
|
|
26280
26356
|
configurable: true,
|
|
@@ -26307,6 +26383,7 @@ export class stories_getStoryViewsList_ extends Function_ {
|
|
|
26307
26383
|
});
|
|
26308
26384
|
this.just_contacts = params.just_contacts;
|
|
26309
26385
|
this.reactions_first = params.reactions_first;
|
|
26386
|
+
this.forwards_first = params.forwards_first;
|
|
26310
26387
|
this.peer = params.peer;
|
|
26311
26388
|
this.q = params.q;
|
|
26312
26389
|
this.id = params.id;
|
|
@@ -26732,6 +26809,87 @@ Object.defineProperty(stories_togglePeerStoriesHidden_, "__F", {
|
|
|
26732
26809
|
writable: true,
|
|
26733
26810
|
value: Symbol()
|
|
26734
26811
|
});
|
|
26812
|
+
export class stories_getStoryReactionsList_ extends Function_ {
|
|
26813
|
+
get [id]() {
|
|
26814
|
+
return 0xB9B2881F;
|
|
26815
|
+
}
|
|
26816
|
+
static get [name]() {
|
|
26817
|
+
return "stories.getStoryReactionsList";
|
|
26818
|
+
}
|
|
26819
|
+
static get [paramDesc]() {
|
|
26820
|
+
return [
|
|
26821
|
+
["flags", flags, "#"],
|
|
26822
|
+
["forwards_first", "true", "flags.2?true"],
|
|
26823
|
+
["peer", types._InputPeer, "InputPeer"],
|
|
26824
|
+
["id", "number", "int"],
|
|
26825
|
+
["reaction", types._Reaction, "flags.0?Reaction"],
|
|
26826
|
+
["offset", "string", "flags.1?string"],
|
|
26827
|
+
["limit", "number", "int"],
|
|
26828
|
+
];
|
|
26829
|
+
}
|
|
26830
|
+
get [params]() {
|
|
26831
|
+
return [
|
|
26832
|
+
["flags", flags, "#"],
|
|
26833
|
+
[this.forwards_first ?? null, "true", "flags.2?true"],
|
|
26834
|
+
[this.peer, types._InputPeer, "InputPeer"],
|
|
26835
|
+
[this.id, "number", "int"],
|
|
26836
|
+
[this.reaction ?? null, types._Reaction, "flags.0?Reaction"],
|
|
26837
|
+
[this.offset ?? null, "string", "flags.1?string"],
|
|
26838
|
+
[this.limit, "number", "int"],
|
|
26839
|
+
];
|
|
26840
|
+
}
|
|
26841
|
+
constructor(params) {
|
|
26842
|
+
super();
|
|
26843
|
+
Object.defineProperty(this, "forwards_first", {
|
|
26844
|
+
enumerable: true,
|
|
26845
|
+
configurable: true,
|
|
26846
|
+
writable: true,
|
|
26847
|
+
value: void 0
|
|
26848
|
+
});
|
|
26849
|
+
Object.defineProperty(this, "peer", {
|
|
26850
|
+
enumerable: true,
|
|
26851
|
+
configurable: true,
|
|
26852
|
+
writable: true,
|
|
26853
|
+
value: void 0
|
|
26854
|
+
});
|
|
26855
|
+
Object.defineProperty(this, "id", {
|
|
26856
|
+
enumerable: true,
|
|
26857
|
+
configurable: true,
|
|
26858
|
+
writable: true,
|
|
26859
|
+
value: void 0
|
|
26860
|
+
});
|
|
26861
|
+
Object.defineProperty(this, "reaction", {
|
|
26862
|
+
enumerable: true,
|
|
26863
|
+
configurable: true,
|
|
26864
|
+
writable: true,
|
|
26865
|
+
value: void 0
|
|
26866
|
+
});
|
|
26867
|
+
Object.defineProperty(this, "offset", {
|
|
26868
|
+
enumerable: true,
|
|
26869
|
+
configurable: true,
|
|
26870
|
+
writable: true,
|
|
26871
|
+
value: void 0
|
|
26872
|
+
});
|
|
26873
|
+
Object.defineProperty(this, "limit", {
|
|
26874
|
+
enumerable: true,
|
|
26875
|
+
configurable: true,
|
|
26876
|
+
writable: true,
|
|
26877
|
+
value: void 0
|
|
26878
|
+
});
|
|
26879
|
+
this.forwards_first = params.forwards_first;
|
|
26880
|
+
this.peer = params.peer;
|
|
26881
|
+
this.id = params.id;
|
|
26882
|
+
this.reaction = params.reaction;
|
|
26883
|
+
this.offset = params.offset;
|
|
26884
|
+
this.limit = params.limit;
|
|
26885
|
+
}
|
|
26886
|
+
}
|
|
26887
|
+
Object.defineProperty(stories_getStoryReactionsList_, "__F", {
|
|
26888
|
+
enumerable: true,
|
|
26889
|
+
configurable: true,
|
|
26890
|
+
writable: true,
|
|
26891
|
+
value: Symbol()
|
|
26892
|
+
});
|
|
26735
26893
|
export class premium_getBoostsList_ extends Function_ {
|
|
26736
26894
|
get [id]() {
|
|
26737
26895
|
return 0x60F67660;
|
|
@@ -27073,6 +27231,8 @@ export const functions = {
|
|
|
27073
27231
|
invalidateSignInCodes: account_invalidateSignInCodes_,
|
|
27074
27232
|
updateColor: account_updateColor_,
|
|
27075
27233
|
getDefaultBackgroundEmojis: account_getDefaultBackgroundEmojis_,
|
|
27234
|
+
getChannelDefaultEmojiStatuses: account_getChannelDefaultEmojiStatuses_,
|
|
27235
|
+
getChannelRestrictedStatusEmojis: account_getChannelRestrictedStatusEmojis_,
|
|
27076
27236
|
},
|
|
27077
27237
|
users: {
|
|
27078
27238
|
getUsers: users_getUsers_,
|
|
@@ -27324,7 +27484,6 @@ export const functions = {
|
|
|
27324
27484
|
getAppUpdate: help_getAppUpdate_,
|
|
27325
27485
|
getInviteText: help_getInviteText_,
|
|
27326
27486
|
getSupport: help_getSupport_,
|
|
27327
|
-
getAppChangelog: help_getAppChangelog_,
|
|
27328
27487
|
setBotUpdatesStatus: help_setBotUpdatesStatus_,
|
|
27329
27488
|
getCdnConfig: help_getCdnConfig_,
|
|
27330
27489
|
getRecentMeUrls: help_getRecentMeUrls_,
|
|
@@ -27405,6 +27564,7 @@ export const functions = {
|
|
|
27405
27564
|
updateColor: channels_updateColor_,
|
|
27406
27565
|
toggleViewForumAsMessages: channels_toggleViewForumAsMessages_,
|
|
27407
27566
|
getChannelRecommendations: channels_getChannelRecommendations_,
|
|
27567
|
+
updateEmojiStatus: channels_updateEmojiStatus_,
|
|
27408
27568
|
},
|
|
27409
27569
|
bots: {
|
|
27410
27570
|
sendCustomRequest: bots_sendCustomRequest_,
|
|
@@ -27543,6 +27703,7 @@ export const functions = {
|
|
|
27543
27703
|
getPeerMaxIDs: stories_getPeerMaxIDs_,
|
|
27544
27704
|
getChatsToSend: stories_getChatsToSend_,
|
|
27545
27705
|
togglePeerStoriesHidden: stories_togglePeerStoriesHidden_,
|
|
27706
|
+
getStoryReactionsList: stories_getStoryReactionsList_,
|
|
27546
27707
|
},
|
|
27547
27708
|
premium: {
|
|
27548
27709
|
getBoostsList: premium_getBoostsList_,
|
package/esm/tl/3_utilities.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ import { enums } from "./2_types.js";
|
|
|
2
2
|
export declare function getChannelChatId(channelId: bigint): number;
|
|
3
3
|
export declare function peerToChatId(peer: enums.Peer | enums.InputPeer): number;
|
|
4
4
|
export declare function chatIdToPeer(chatId: number): import("./2_types.js").PeerUser_ | import("./2_types.js").PeerChat_ | import("./2_types.js").PeerChannel_;
|
|
5
|
+
export declare function inputPeerToPeer(inputPeer: enums.InputPeer): import("./2_types.js").PeerUser_ | import("./2_types.js").PeerChat_ | import("./2_types.js").PeerChannel_;
|
package/esm/tl/3_utilities.js
CHANGED
|
@@ -28,3 +28,17 @@ export function chatIdToPeer(chatId) {
|
|
|
28
28
|
return new types.PeerChannel({ channel_id: BigInt(ZERO_CHANNEL_ID - chatId) });
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
export function inputPeerToPeer(inputPeer) {
|
|
32
|
+
if ("user_id" in inputPeer) {
|
|
33
|
+
return new types.PeerUser(inputPeer);
|
|
34
|
+
}
|
|
35
|
+
else if ("chat_id" in inputPeer) {
|
|
36
|
+
return new types.PeerChat(inputPeer);
|
|
37
|
+
}
|
|
38
|
+
else if ("channel_id" in inputPeer) {
|
|
39
|
+
return new types.PeerChannel(inputPeer);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
UNREACHABLE();
|
|
43
|
+
}
|
|
44
|
+
}
|
package/esm/tl/6_message.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { id, serialize } from "./1_tl_object.js";
|
|
2
2
|
import { TLReader } from "./3_tl_reader.js";
|
|
3
|
-
import { TLWriter } from "./4_tl_writer.js";
|
|
4
3
|
import { RPCResult } from "./4_rpc_result.js";
|
|
4
|
+
import { TLWriter } from "./4_tl_writer.js";
|
|
5
5
|
export function calculateLength(object) {
|
|
6
6
|
let length = 0;
|
|
7
7
|
if (Array.isArray(object)) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { types } from "../2_tl.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
interface User extends Base {
|
|
16
|
-
/** Differentiates between user profile photos. */
|
|
17
|
-
personal: true;
|
|
18
|
-
}
|
|
19
|
-
type Chat = Base;
|
|
2
|
+
/** @unlisted */
|
|
3
|
+
export interface ChatPhotoBase {
|
|
4
|
+
/** A file identifier that can be used to download or reuse the small version of the chat photo (160x160). */
|
|
5
|
+
smallFileId: string;
|
|
6
|
+
/** A file identifier that can be used to identify the small version of the chat photo (160x160). */
|
|
7
|
+
smallFileUniqueId: string;
|
|
8
|
+
/** A file identifier that can be used to download or reuse the big version of the chat photo (640x640). */
|
|
9
|
+
bigFileId: string;
|
|
10
|
+
/** A file identifier that can be used to identify the big version of the chat photo (640x640). */
|
|
11
|
+
bigFileUniqueId: string;
|
|
12
|
+
/** Whether the chat photo is animated. */
|
|
13
|
+
hasVideo: boolean;
|
|
20
14
|
}
|
|
15
|
+
/** @unlisted */
|
|
16
|
+
export interface ChatPhotoUser extends ChatPhotoBase {
|
|
17
|
+
/** Differentiates between user profile photos. */
|
|
18
|
+
personal: true;
|
|
19
|
+
}
|
|
20
|
+
/** @unlisted */
|
|
21
|
+
export type ChatPhotoChat = ChatPhotoBase;
|
|
21
22
|
/** This object represents a chat photo. */
|
|
22
|
-
export type ChatPhoto =
|
|
23
|
-
export declare function constructChatPhoto(photo: types.ChatPhoto, chatId: number, chatAccessHash: bigint):
|
|
24
|
-
export declare function constructChatPhoto(photo: types.UserProfilePhoto, chatId: number, chatAccessHash: bigint):
|
|
23
|
+
export type ChatPhoto = ChatPhotoUser | ChatPhotoChat;
|
|
24
|
+
export declare function constructChatPhoto(photo: types.ChatPhoto, chatId: number, chatAccessHash: bigint): ChatPhotoChat;
|
|
25
|
+
export declare function constructChatPhoto(photo: types.UserProfilePhoto, chatId: number, chatAccessHash: bigint): ChatPhotoUser;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The client is not connected.
|
|
3
|
+
* @unlisted
|
|
4
|
+
*/
|
|
5
|
+
export type ConnectionStateNotConnected = "notConnected";
|
|
6
|
+
/**
|
|
7
|
+
* The client is connected but recovering from an update gap.
|
|
8
|
+
* @unlisted
|
|
9
|
+
*/
|
|
10
|
+
export type ConnectionStateUpdating = "updating";
|
|
11
|
+
/**
|
|
12
|
+
* The client is connected and not recovering from an update gap.
|
|
13
|
+
* @unlisted
|
|
14
|
+
*/
|
|
15
|
+
export type ConnectionStateReady = "ready";
|
|
16
|
+
/** A client's connection state. */
|
|
17
|
+
export type ConnectionState = ConnectionStateNotConnected | ConnectionStateUpdating | ConnectionStateReady;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { types } from "../2_tl.js";
|
|
2
|
+
export interface GiveawayParameters {
|
|
3
|
+
boostedChatId: number;
|
|
4
|
+
additionalChatIds: number[];
|
|
5
|
+
winnerSelectionDate: Date;
|
|
6
|
+
onlyNewMembers: boolean;
|
|
7
|
+
countries: string[];
|
|
8
|
+
}
|
|
9
|
+
export declare function constructGiveawayParameters(g: types.MessageMediaGiveaway): GiveawayParameters;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { peerToChatId, types } from "../2_tl.js";
|
|
2
|
+
export function constructGiveawayParameters(g) {
|
|
3
|
+
const countries = g.countries_iso2 ?? [];
|
|
4
|
+
const boostedChatId = peerToChatId(new types.PeerChannel({ channel_id: g.channels[0] }));
|
|
5
|
+
const additionalChatIds = g.channels.slice(1).map((v) => peerToChatId(new types.PeerChannel({ channel_id: v })));
|
|
6
|
+
const onlyNewMembers = g.only_new_subscribers ? true : false;
|
|
7
|
+
const winnerSelectionDate = new Date(g.until_date * 1000);
|
|
8
|
+
return { boostedChatId, additionalChatIds, winnerSelectionDate, onlyNewMembers, countries };
|
|
9
|
+
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export interface LoginUrl {
|
|
2
|
-
/** An HTTPS URL to be opened with the authorization data appended to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. */
|
|
3
2
|
url: string;
|
|
4
|
-
/** A different text to use for the button when the message is forwarded. */
|
|
5
3
|
forwardText?: string;
|
|
6
|
-
/** Username of a bot, which will be used for user authorization. See [Learn more.](https://core.telegram.org/widgets/login#setting-up-a-bot) If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. [Learn more.](https://core.telegram.org/widgets/login#linking-your-domain-to-the-bot) */
|
|
7
4
|
botUsername?: string;
|
|
8
|
-
/** Whether to ask the user to allow messages to be received from the specified bot. */
|
|
9
5
|
requestWriteAccess?: boolean;
|
|
10
6
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { enums } from "../2_tl.js";
|
|
2
2
|
export interface MaskPosition {
|
|
3
|
-
/** The part of the face relative to which the mask should be placed. One of "forehead", "eyes", "mouth", or "chin". */
|
|
4
3
|
point: "forehead" | "eyes" | "mouth" | "chin";
|
|
5
|
-
/** Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position. */
|
|
6
4
|
xShift: number;
|
|
7
|
-
/** Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position. */
|
|
8
5
|
yShift: number;
|
|
9
|
-
/** Mask scaling coefficient. For example, 2.0 means double size. */
|
|
10
6
|
scale: number;
|
|
11
7
|
}
|
|
12
8
|
export declare function constructMaskPosition({ n, x, y, zoom }: enums.MaskCoords): MaskPosition;
|