@mtkruto/node 0.2.35 → 0.2.36
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/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_params.d.ts +3 -1
- package/esm/client/0_params.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 +3 -3
- package/esm/client/5_client.d.ts +2 -2
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +13 -8
- package/esm/tl/0_api.d.ts +123 -74
- package/esm/tl/0_api.d.ts.map +1 -1
- package/esm/tl/0_api.js +194 -130
- package/esm/types/0_reaction.d.ts +5 -1
- package/esm/types/0_reaction.d.ts.map +1 -1
- package/esm/types/0_reaction.js +4 -1
- package/esm/types/4_message.d.ts +1 -0
- package/esm/types/4_message.d.ts.map +1 -1
- package/esm/types/4_message.js +1 -0
- package/package.json +1 -1
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_params.d.ts +3 -1
- package/script/client/0_params.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 +3 -3
- package/script/client/5_client.d.ts +2 -2
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +13 -8
- package/script/tl/0_api.d.ts +123 -74
- package/script/tl/0_api.d.ts.map +1 -1
- package/script/tl/0_api.js +194 -130
- package/script/types/0_reaction.d.ts +5 -1
- package/script/types/0_reaction.d.ts.map +1 -1
- package/script/types/0_reaction.js +4 -1
- package/script/types/4_message.d.ts +1 -0
- package/script/types/4_message.d.ts.map +1 -1
- package/script/types/4_message.js +1 -0
package/esm/tl/0_api.d.ts
CHANGED
|
@@ -202,41 +202,8 @@ export interface error {
|
|
|
202
202
|
code: number;
|
|
203
203
|
text: string;
|
|
204
204
|
}
|
|
205
|
-
export interface
|
|
206
|
-
_: "
|
|
207
|
-
ipv4: number;
|
|
208
|
-
port: number;
|
|
209
|
-
}
|
|
210
|
-
export interface ipPortSecret {
|
|
211
|
-
_: "ipPortSecret";
|
|
212
|
-
ipv4: number;
|
|
213
|
-
port: number;
|
|
214
|
-
secret: Uint8Array;
|
|
215
|
-
}
|
|
216
|
-
export interface accessPointRule {
|
|
217
|
-
_: "accessPointRule";
|
|
218
|
-
phone_prefix_rules: string;
|
|
219
|
-
dc_id: number;
|
|
220
|
-
ips: Array<IpPort>;
|
|
221
|
-
}
|
|
222
|
-
export interface help_configSimple {
|
|
223
|
-
_: "help.configSimple";
|
|
224
|
-
date: number;
|
|
225
|
-
expires: number;
|
|
226
|
-
rules: Array<AccessPointRule>;
|
|
227
|
-
}
|
|
228
|
-
export interface inputPeerPhotoFileLocationLegacy {
|
|
229
|
-
_: "inputPeerPhotoFileLocationLegacy";
|
|
230
|
-
big?: true;
|
|
231
|
-
peer: InputPeer;
|
|
232
|
-
volume_id: bigint;
|
|
233
|
-
local_id: number;
|
|
234
|
-
}
|
|
235
|
-
export interface inputStickerSetThumbLegacy {
|
|
236
|
-
_: "inputStickerSetThumbLegacy";
|
|
237
|
-
stickerset: InputStickerSet;
|
|
238
|
-
volume_id: bigint;
|
|
239
|
-
local_id: number;
|
|
205
|
+
export interface null_ {
|
|
206
|
+
_: "null";
|
|
240
207
|
}
|
|
241
208
|
export interface inputPeerEmpty {
|
|
242
209
|
_: "inputPeerEmpty";
|
|
@@ -702,6 +669,7 @@ export interface channel {
|
|
|
702
669
|
stories_hidden?: true;
|
|
703
670
|
stories_hidden_min?: true;
|
|
704
671
|
stories_unavailable?: true;
|
|
672
|
+
signature_profiles?: true;
|
|
705
673
|
id: bigint;
|
|
706
674
|
access_hash?: bigint;
|
|
707
675
|
title: string;
|
|
@@ -719,6 +687,7 @@ export interface channel {
|
|
|
719
687
|
profile_color?: PeerColor;
|
|
720
688
|
emoji_status?: EmojiStatus;
|
|
721
689
|
level?: number;
|
|
690
|
+
subscription_until_date?: number;
|
|
722
691
|
}
|
|
723
692
|
export interface channelForbidden {
|
|
724
693
|
_: "channelForbidden";
|
|
@@ -772,6 +741,7 @@ export interface channelFull {
|
|
|
772
741
|
can_view_revenue?: true;
|
|
773
742
|
paid_media_allowed?: true;
|
|
774
743
|
can_view_stars_revenue?: true;
|
|
744
|
+
paid_reactions_available?: true;
|
|
775
745
|
id: bigint;
|
|
776
746
|
about: string;
|
|
777
747
|
participants_count?: number;
|
|
@@ -3270,7 +3240,9 @@ export interface chatInviteExported {
|
|
|
3270
3240
|
usage_limit?: number;
|
|
3271
3241
|
usage?: number;
|
|
3272
3242
|
requested?: number;
|
|
3243
|
+
subscription_expired?: number;
|
|
3273
3244
|
title?: string;
|
|
3245
|
+
subscription_pricing?: StarsSubscriptionPricing;
|
|
3274
3246
|
}
|
|
3275
3247
|
export interface chatInvitePublicJoinRequests {
|
|
3276
3248
|
_: "chatInvitePublicJoinRequests";
|
|
@@ -3289,12 +3261,15 @@ export interface chatInvite {
|
|
|
3289
3261
|
verified?: true;
|
|
3290
3262
|
scam?: true;
|
|
3291
3263
|
fake?: true;
|
|
3264
|
+
can_refulfill_subscription?: true;
|
|
3292
3265
|
title: string;
|
|
3293
3266
|
about?: string;
|
|
3294
3267
|
photo: Photo;
|
|
3295
3268
|
participants_count: number;
|
|
3296
3269
|
participants?: Array<User>;
|
|
3297
3270
|
color: number;
|
|
3271
|
+
subscription_pricing?: StarsSubscriptionPricing;
|
|
3272
|
+
subscription_form_id?: bigint;
|
|
3298
3273
|
}
|
|
3299
3274
|
export interface chatInvitePeek {
|
|
3300
3275
|
_: "chatInvitePeek";
|
|
@@ -3383,6 +3358,7 @@ export interface botInfo {
|
|
|
3383
3358
|
description_document?: Document;
|
|
3384
3359
|
commands?: Array<BotCommand>;
|
|
3385
3360
|
menu_button?: BotMenuButton;
|
|
3361
|
+
privacy_policy_url?: string;
|
|
3386
3362
|
}
|
|
3387
3363
|
export interface keyboardButton {
|
|
3388
3364
|
_: "keyboardButton";
|
|
@@ -3679,6 +3655,7 @@ export interface channelParticipant {
|
|
|
3679
3655
|
_: "channelParticipant";
|
|
3680
3656
|
user_id: bigint;
|
|
3681
3657
|
date: number;
|
|
3658
|
+
subscription_until_date?: number;
|
|
3682
3659
|
}
|
|
3683
3660
|
export interface channelParticipantSelf {
|
|
3684
3661
|
_: "channelParticipantSelf";
|
|
@@ -3686,6 +3663,7 @@ export interface channelParticipantSelf {
|
|
|
3686
3663
|
user_id: bigint;
|
|
3687
3664
|
inviter_id: bigint;
|
|
3688
3665
|
date: number;
|
|
3666
|
+
subscription_until_date?: number;
|
|
3689
3667
|
}
|
|
3690
3668
|
export interface channelParticipantCreator {
|
|
3691
3669
|
_: "channelParticipantCreator";
|
|
@@ -5092,6 +5070,10 @@ export interface channelAdminLogEventActionChangeEmojiStickerSet {
|
|
|
5092
5070
|
prev_stickerset: InputStickerSet;
|
|
5093
5071
|
new_stickerset: InputStickerSet;
|
|
5094
5072
|
}
|
|
5073
|
+
export interface channelAdminLogEventActionToggleSignatureProfiles {
|
|
5074
|
+
_: "channelAdminLogEventActionToggleSignatureProfiles";
|
|
5075
|
+
new_value: boolean;
|
|
5076
|
+
}
|
|
5095
5077
|
export interface channelAdminLogEvent {
|
|
5096
5078
|
_: "channelAdminLogEvent";
|
|
5097
5079
|
id: bigint;
|
|
@@ -6454,6 +6436,7 @@ export interface sponsoredMessage {
|
|
|
6454
6436
|
message: string;
|
|
6455
6437
|
entities?: Array<MessageEntity>;
|
|
6456
6438
|
photo?: Photo;
|
|
6439
|
+
media?: MessageMedia;
|
|
6457
6440
|
color?: PeerColor;
|
|
6458
6441
|
button_text: string;
|
|
6459
6442
|
sponsor_info?: string;
|
|
@@ -6534,6 +6517,7 @@ export interface messageReactions {
|
|
|
6534
6517
|
reactions_as_tags?: true;
|
|
6535
6518
|
results: Array<ReactionCount>;
|
|
6536
6519
|
recent_reactions?: Array<MessagePeerReaction>;
|
|
6520
|
+
top_reactors?: Array<MessageReactor>;
|
|
6537
6521
|
}
|
|
6538
6522
|
export interface messages_messageReactionsList {
|
|
6539
6523
|
_: "messages.messageReactionsList";
|
|
@@ -6711,6 +6695,10 @@ export interface inputInvoiceStars {
|
|
|
6711
6695
|
_: "inputInvoiceStars";
|
|
6712
6696
|
purpose: InputStorePaymentPurpose;
|
|
6713
6697
|
}
|
|
6698
|
+
export interface inputInvoiceChatInviteSubscription {
|
|
6699
|
+
_: "inputInvoiceChatInviteSubscription";
|
|
6700
|
+
hash: string;
|
|
6701
|
+
}
|
|
6714
6702
|
export interface payments_exportedInvoice {
|
|
6715
6703
|
_: "payments.exportedInvoice";
|
|
6716
6704
|
url: string;
|
|
@@ -6820,6 +6808,9 @@ export interface reactionCustomEmoji {
|
|
|
6820
6808
|
_: "reactionCustomEmoji";
|
|
6821
6809
|
document_id: bigint;
|
|
6822
6810
|
}
|
|
6811
|
+
export interface reactionPaid {
|
|
6812
|
+
_: "reactionPaid";
|
|
6813
|
+
}
|
|
6823
6814
|
export interface chatReactionsNone {
|
|
6824
6815
|
_: "chatReactionsNone";
|
|
6825
6816
|
}
|
|
@@ -8015,6 +8006,7 @@ export interface starsTransaction {
|
|
|
8015
8006
|
pending?: true;
|
|
8016
8007
|
failed?: true;
|
|
8017
8008
|
gift?: true;
|
|
8009
|
+
reaction?: true;
|
|
8018
8010
|
id: string;
|
|
8019
8011
|
stars: bigint;
|
|
8020
8012
|
date: number;
|
|
@@ -8027,11 +8019,15 @@ export interface starsTransaction {
|
|
|
8027
8019
|
bot_payload?: Uint8Array;
|
|
8028
8020
|
msg_id?: number;
|
|
8029
8021
|
extended_media?: Array<MessageMedia>;
|
|
8022
|
+
subscription_period?: number;
|
|
8030
8023
|
}
|
|
8031
8024
|
export interface payments_starsStatus {
|
|
8032
8025
|
_: "payments.starsStatus";
|
|
8033
8026
|
balance: bigint;
|
|
8034
|
-
|
|
8027
|
+
subscriptions?: Array<StarsSubscription>;
|
|
8028
|
+
subscriptions_next_offset?: string;
|
|
8029
|
+
subscriptions_missing_balance?: bigint;
|
|
8030
|
+
history?: Array<StarsTransaction>;
|
|
8035
8031
|
next_offset?: string;
|
|
8036
8032
|
chats: Array<Chat>;
|
|
8037
8033
|
users: Array<User>;
|
|
@@ -8106,6 +8102,30 @@ export interface bots_previewInfo {
|
|
|
8106
8102
|
media: Array<BotPreviewMedia>;
|
|
8107
8103
|
lang_codes: Array<string>;
|
|
8108
8104
|
}
|
|
8105
|
+
export interface starsSubscriptionPricing {
|
|
8106
|
+
_: "starsSubscriptionPricing";
|
|
8107
|
+
period: number;
|
|
8108
|
+
amount: bigint;
|
|
8109
|
+
}
|
|
8110
|
+
export interface starsSubscription {
|
|
8111
|
+
_: "starsSubscription";
|
|
8112
|
+
canceled?: true;
|
|
8113
|
+
can_refulfill?: true;
|
|
8114
|
+
missing_balance?: true;
|
|
8115
|
+
id: string;
|
|
8116
|
+
peer: Peer;
|
|
8117
|
+
until_date: number;
|
|
8118
|
+
pricing: StarsSubscriptionPricing;
|
|
8119
|
+
chat_invite_hash?: string;
|
|
8120
|
+
}
|
|
8121
|
+
export interface messageReactor {
|
|
8122
|
+
_: "messageReactor";
|
|
8123
|
+
top?: true;
|
|
8124
|
+
my?: true;
|
|
8125
|
+
anonymous?: true;
|
|
8126
|
+
peer_id?: Peer;
|
|
8127
|
+
count: number;
|
|
8128
|
+
}
|
|
8109
8129
|
export interface req_pq_multi {
|
|
8110
8130
|
_: "req_pq_multi";
|
|
8111
8131
|
nonce: bigint;
|
|
@@ -8158,23 +8178,6 @@ export interface destroy_auth_key {
|
|
|
8158
8178
|
_: "destroy_auth_key";
|
|
8159
8179
|
[R]?: DestroyAuthKeyRes;
|
|
8160
8180
|
}
|
|
8161
|
-
export interface invokeWithBusinessConnectionPrefix {
|
|
8162
|
-
_: "invokeWithBusinessConnectionPrefix";
|
|
8163
|
-
connection_id: string;
|
|
8164
|
-
[R]?: Error;
|
|
8165
|
-
}
|
|
8166
|
-
export interface invokeWithGooglePlayIntegrityPrefix {
|
|
8167
|
-
_: "invokeWithGooglePlayIntegrityPrefix";
|
|
8168
|
-
nonce: string;
|
|
8169
|
-
token: string;
|
|
8170
|
-
[R]?: Error;
|
|
8171
|
-
}
|
|
8172
|
-
export interface invokeWithApnsSecretPrefix {
|
|
8173
|
-
_: "invokeWithApnsSecretPrefix";
|
|
8174
|
-
nonce: string;
|
|
8175
|
-
secret: string;
|
|
8176
|
-
[R]?: Error;
|
|
8177
|
-
}
|
|
8178
8181
|
export interface invokeAfterMsg<T> {
|
|
8179
8182
|
_: "invokeAfterMsg";
|
|
8180
8183
|
msg_id: bigint;
|
|
@@ -9492,6 +9495,7 @@ export interface messages_exportChatInvite {
|
|
|
9492
9495
|
expire_date?: number;
|
|
9493
9496
|
usage_limit?: number;
|
|
9494
9497
|
title?: string;
|
|
9498
|
+
subscription_pricing?: StarsSubscriptionPricing;
|
|
9495
9499
|
[R]?: ExportedChatInvite;
|
|
9496
9500
|
}
|
|
9497
9501
|
export interface messages_checkChatInvite {
|
|
@@ -10186,6 +10190,7 @@ export interface messages_getAdminsWithInvites {
|
|
|
10186
10190
|
export interface messages_getChatInviteImporters {
|
|
10187
10191
|
_: "messages.getChatInviteImporters";
|
|
10188
10192
|
requested?: true;
|
|
10193
|
+
subscription_expired?: true;
|
|
10189
10194
|
peer: InputPeer;
|
|
10190
10195
|
link?: string;
|
|
10191
10196
|
q?: string;
|
|
@@ -10290,6 +10295,7 @@ export interface messages_setChatAvailableReactions {
|
|
|
10290
10295
|
peer: InputPeer;
|
|
10291
10296
|
available_reactions: ChatReactions;
|
|
10292
10297
|
reactions_limit?: number;
|
|
10298
|
+
paid_enabled?: boolean;
|
|
10293
10299
|
[R]?: Updates;
|
|
10294
10300
|
}
|
|
10295
10301
|
export interface messages_getAvailableReactions {
|
|
@@ -10704,6 +10710,22 @@ export interface messages_requestMainWebView {
|
|
|
10704
10710
|
platform: string;
|
|
10705
10711
|
[R]?: WebViewResult;
|
|
10706
10712
|
}
|
|
10713
|
+
export interface messages_sendPaidReaction {
|
|
10714
|
+
_: "messages.sendPaidReaction";
|
|
10715
|
+
private?: true;
|
|
10716
|
+
peer: InputPeer;
|
|
10717
|
+
msg_id: number;
|
|
10718
|
+
count: number;
|
|
10719
|
+
random_id: bigint;
|
|
10720
|
+
[R]?: Updates;
|
|
10721
|
+
}
|
|
10722
|
+
export interface messages_togglePaidReactionPrivacy {
|
|
10723
|
+
_: "messages.togglePaidReactionPrivacy";
|
|
10724
|
+
peer: InputPeer;
|
|
10725
|
+
msg_id: number;
|
|
10726
|
+
private: boolean;
|
|
10727
|
+
[R]?: boolean;
|
|
10728
|
+
}
|
|
10707
10729
|
export interface updates_getState {
|
|
10708
10730
|
_: "updates.getState";
|
|
10709
10731
|
[R]?: updates_State;
|
|
@@ -11071,8 +11093,9 @@ export interface channels_exportMessageLink {
|
|
|
11071
11093
|
}
|
|
11072
11094
|
export interface channels_toggleSignatures {
|
|
11073
11095
|
_: "channels.toggleSignatures";
|
|
11096
|
+
signatures_enabled?: true;
|
|
11097
|
+
profiles_enabled?: true;
|
|
11074
11098
|
channel: InputChannel;
|
|
11075
|
-
enabled: boolean;
|
|
11076
11099
|
[R]?: Updates;
|
|
11077
11100
|
}
|
|
11078
11101
|
export interface channels_getAdminedPublicChannels {
|
|
@@ -11617,6 +11640,7 @@ export interface payments_getStarsTransactions {
|
|
|
11617
11640
|
inbound?: true;
|
|
11618
11641
|
outbound?: true;
|
|
11619
11642
|
ascending?: true;
|
|
11643
|
+
subscription_id?: string;
|
|
11620
11644
|
peer: InputPeer;
|
|
11621
11645
|
offset: string;
|
|
11622
11646
|
limit: number;
|
|
@@ -11663,6 +11687,26 @@ export interface payments_getStarsGiftOptions {
|
|
|
11663
11687
|
user_id?: InputUser;
|
|
11664
11688
|
[R]?: Array<StarsGiftOption>;
|
|
11665
11689
|
}
|
|
11690
|
+
export interface payments_getStarsSubscriptions {
|
|
11691
|
+
_: "payments.getStarsSubscriptions";
|
|
11692
|
+
missing_balance?: true;
|
|
11693
|
+
peer: InputPeer;
|
|
11694
|
+
offset: string;
|
|
11695
|
+
[R]?: payments_StarsStatus;
|
|
11696
|
+
}
|
|
11697
|
+
export interface payments_changeStarsSubscription {
|
|
11698
|
+
_: "payments.changeStarsSubscription";
|
|
11699
|
+
peer: InputPeer;
|
|
11700
|
+
subscription_id: string;
|
|
11701
|
+
canceled?: boolean;
|
|
11702
|
+
[R]?: boolean;
|
|
11703
|
+
}
|
|
11704
|
+
export interface payments_fulfillStarsSubscription {
|
|
11705
|
+
_: "payments.fulfillStarsSubscription";
|
|
11706
|
+
peer: InputPeer;
|
|
11707
|
+
subscription_id: string;
|
|
11708
|
+
[R]?: boolean;
|
|
11709
|
+
}
|
|
11666
11710
|
export interface stickers_createStickerSet {
|
|
11667
11711
|
_: "stickers.createStickerSet";
|
|
11668
11712
|
masks?: true;
|
|
@@ -12398,12 +12442,7 @@ export interface Types {
|
|
|
12398
12442
|
"http_wait": http_wait;
|
|
12399
12443
|
"true": true_;
|
|
12400
12444
|
"error": error;
|
|
12401
|
-
"
|
|
12402
|
-
"ipPortSecret": ipPortSecret;
|
|
12403
|
-
"accessPointRule": accessPointRule;
|
|
12404
|
-
"help.configSimple": help_configSimple;
|
|
12405
|
-
"inputPeerPhotoFileLocationLegacy": inputPeerPhotoFileLocationLegacy;
|
|
12406
|
-
"inputStickerSetThumbLegacy": inputStickerSetThumbLegacy;
|
|
12445
|
+
"null": null_;
|
|
12407
12446
|
"inputPeerEmpty": inputPeerEmpty;
|
|
12408
12447
|
"inputPeerSelf": inputPeerSelf;
|
|
12409
12448
|
"inputPeerChat": inputPeerChat;
|
|
@@ -13229,6 +13268,7 @@ export interface Types {
|
|
|
13229
13268
|
"channelAdminLogEventActionChangeWallpaper": channelAdminLogEventActionChangeWallpaper;
|
|
13230
13269
|
"channelAdminLogEventActionChangeEmojiStatus": channelAdminLogEventActionChangeEmojiStatus;
|
|
13231
13270
|
"channelAdminLogEventActionChangeEmojiStickerSet": channelAdminLogEventActionChangeEmojiStickerSet;
|
|
13271
|
+
"channelAdminLogEventActionToggleSignatureProfiles": channelAdminLogEventActionToggleSignatureProfiles;
|
|
13232
13272
|
"channelAdminLogEvent": channelAdminLogEvent;
|
|
13233
13273
|
"channels.adminLogResults": channels_adminLogResults;
|
|
13234
13274
|
"channelAdminLogEventsFilter": channelAdminLogEventsFilter;
|
|
@@ -13506,6 +13546,7 @@ export interface Types {
|
|
|
13506
13546
|
"inputInvoiceSlug": inputInvoiceSlug;
|
|
13507
13547
|
"inputInvoicePremiumGiftCode": inputInvoicePremiumGiftCode;
|
|
13508
13548
|
"inputInvoiceStars": inputInvoiceStars;
|
|
13549
|
+
"inputInvoiceChatInviteSubscription": inputInvoiceChatInviteSubscription;
|
|
13509
13550
|
"payments.exportedInvoice": payments_exportedInvoice;
|
|
13510
13551
|
"messages.transcribedAudio": messages_transcribedAudio;
|
|
13511
13552
|
"help.premiumPromo": help_premiumPromo;
|
|
@@ -13525,6 +13566,7 @@ export interface Types {
|
|
|
13525
13566
|
"reactionEmpty": reactionEmpty;
|
|
13526
13567
|
"reactionEmoji": reactionEmoji;
|
|
13527
13568
|
"reactionCustomEmoji": reactionCustomEmoji;
|
|
13569
|
+
"reactionPaid": reactionPaid;
|
|
13528
13570
|
"chatReactionsNone": chatReactionsNone;
|
|
13529
13571
|
"chatReactionsAll": chatReactionsAll;
|
|
13530
13572
|
"chatReactionsSome": chatReactionsSome;
|
|
@@ -13734,6 +13776,9 @@ export interface Types {
|
|
|
13734
13776
|
"bots.popularAppBots": bots_popularAppBots;
|
|
13735
13777
|
"botPreviewMedia": botPreviewMedia;
|
|
13736
13778
|
"bots.previewInfo": bots_previewInfo;
|
|
13779
|
+
"starsSubscriptionPricing": starsSubscriptionPricing;
|
|
13780
|
+
"starsSubscription": starsSubscription;
|
|
13781
|
+
"messageReactor": messageReactor;
|
|
13737
13782
|
}
|
|
13738
13783
|
export interface Functions<T = Function> {
|
|
13739
13784
|
"req_pq_multi": req_pq_multi;
|
|
@@ -13745,9 +13790,6 @@ export interface Functions<T = Function> {
|
|
|
13745
13790
|
"ping_delay_disconnect": ping_delay_disconnect;
|
|
13746
13791
|
"destroy_session": destroy_session;
|
|
13747
13792
|
"destroy_auth_key": destroy_auth_key;
|
|
13748
|
-
"invokeWithBusinessConnectionPrefix": invokeWithBusinessConnectionPrefix;
|
|
13749
|
-
"invokeWithGooglePlayIntegrityPrefix": invokeWithGooglePlayIntegrityPrefix;
|
|
13750
|
-
"invokeWithApnsSecretPrefix": invokeWithApnsSecretPrefix;
|
|
13751
13793
|
"invokeAfterMsg": invokeAfterMsg<T>;
|
|
13752
13794
|
"invokeAfterMsgs": invokeAfterMsgs<T>;
|
|
13753
13795
|
"initConnection": initConnection<T>;
|
|
@@ -14137,6 +14179,8 @@ export interface Functions<T = Function> {
|
|
|
14137
14179
|
"messages.deleteFactCheck": messages_deleteFactCheck;
|
|
14138
14180
|
"messages.getFactCheck": messages_getFactCheck;
|
|
14139
14181
|
"messages.requestMainWebView": messages_requestMainWebView;
|
|
14182
|
+
"messages.sendPaidReaction": messages_sendPaidReaction;
|
|
14183
|
+
"messages.togglePaidReactionPrivacy": messages_togglePaidReactionPrivacy;
|
|
14140
14184
|
"updates.getState": updates_getState;
|
|
14141
14185
|
"updates.getDifference": updates_getDifference;
|
|
14142
14186
|
"updates.getChannelDifference": updates_getChannelDifference;
|
|
@@ -14292,6 +14336,9 @@ export interface Functions<T = Function> {
|
|
|
14292
14336
|
"payments.getStarsRevenueAdsAccountUrl": payments_getStarsRevenueAdsAccountUrl;
|
|
14293
14337
|
"payments.getStarsTransactionsByID": payments_getStarsTransactionsByID;
|
|
14294
14338
|
"payments.getStarsGiftOptions": payments_getStarsGiftOptions;
|
|
14339
|
+
"payments.getStarsSubscriptions": payments_getStarsSubscriptions;
|
|
14340
|
+
"payments.changeStarsSubscription": payments_changeStarsSubscription;
|
|
14341
|
+
"payments.fulfillStarsSubscription": payments_fulfillStarsSubscription;
|
|
14295
14342
|
"stickers.createStickerSet": stickers_createStickerSet;
|
|
14296
14343
|
"stickers.removeStickerFromSet": stickers_removeStickerFromSet;
|
|
14297
14344
|
"stickers.changeStickerPosition": stickers_changeStickerPosition;
|
|
@@ -14428,10 +14475,7 @@ export interface Enums {
|
|
|
14428
14475
|
"HttpWait": HttpWait;
|
|
14429
14476
|
"True": True;
|
|
14430
14477
|
"Error": Error;
|
|
14431
|
-
"
|
|
14432
|
-
"AccessPointRule": AccessPointRule;
|
|
14433
|
-
"help.ConfigSimple": help_ConfigSimple;
|
|
14434
|
-
"InputFileLocation": InputFileLocation;
|
|
14478
|
+
"Null": Null;
|
|
14435
14479
|
"InputPeer": InputPeer;
|
|
14436
14480
|
"InputUser": InputUser;
|
|
14437
14481
|
"InputContact": InputContact;
|
|
@@ -14440,6 +14484,7 @@ export interface Enums {
|
|
|
14440
14484
|
"InputChatPhoto": InputChatPhoto;
|
|
14441
14485
|
"InputGeoPoint": InputGeoPoint;
|
|
14442
14486
|
"InputPhoto": InputPhoto;
|
|
14487
|
+
"InputFileLocation": InputFileLocation;
|
|
14443
14488
|
"Peer": Peer;
|
|
14444
14489
|
"storage.FileType": storage_FileType;
|
|
14445
14490
|
"User": User;
|
|
@@ -14931,6 +14976,9 @@ export interface Enums {
|
|
|
14931
14976
|
"bots.PopularAppBots": bots_PopularAppBots;
|
|
14932
14977
|
"BotPreviewMedia": BotPreviewMedia;
|
|
14933
14978
|
"bots.PreviewInfo": bots_PreviewInfo;
|
|
14979
|
+
"StarsSubscriptionPricing": StarsSubscriptionPricing;
|
|
14980
|
+
"StarsSubscription": StarsSubscription;
|
|
14981
|
+
"MessageReactor": MessageReactor;
|
|
14934
14982
|
}
|
|
14935
14983
|
export type AnyType = Types[keyof Types];
|
|
14936
14984
|
export type AnyFunction<T = Function> = Functions<T>[keyof Functions<T>];
|
|
@@ -14962,10 +15010,7 @@ export type DestroyAuthKeyRes = destroy_auth_key_ok | destroy_auth_key_none | de
|
|
|
14962
15010
|
export type HttpWait = http_wait;
|
|
14963
15011
|
export type True = true_;
|
|
14964
15012
|
export type Error = error;
|
|
14965
|
-
export type
|
|
14966
|
-
export type AccessPointRule = accessPointRule;
|
|
14967
|
-
export type help_ConfigSimple = help_configSimple;
|
|
14968
|
-
export type InputFileLocation = inputPeerPhotoFileLocationLegacy | inputStickerSetThumbLegacy | inputFileLocation | inputEncryptedFileLocation | inputDocumentFileLocation | inputSecureFileLocation | inputTakeoutFileLocation | inputPhotoFileLocation | inputPhotoLegacyFileLocation | inputPeerPhotoFileLocation | inputStickerSetThumb | inputGroupCallStream;
|
|
15013
|
+
export type Null = null_;
|
|
14969
15014
|
export type InputPeer = inputPeerEmpty | inputPeerSelf | inputPeerChat | inputPeerUser | inputPeerChannel | inputPeerUserFromMessage | inputPeerChannelFromMessage;
|
|
14970
15015
|
export type InputUser = inputUserEmpty | inputUserSelf | inputUser | inputUserFromMessage;
|
|
14971
15016
|
export type InputContact = inputPhoneContact;
|
|
@@ -14974,6 +15019,7 @@ export type InputMedia = inputMediaEmpty | inputMediaUploadedPhoto | inputMediaP
|
|
|
14974
15019
|
export type InputChatPhoto = inputChatPhotoEmpty | inputChatUploadedPhoto | inputChatPhoto;
|
|
14975
15020
|
export type InputGeoPoint = inputGeoPointEmpty | inputGeoPoint;
|
|
14976
15021
|
export type InputPhoto = inputPhotoEmpty | inputPhoto;
|
|
15022
|
+
export type InputFileLocation = inputFileLocation | inputEncryptedFileLocation | inputDocumentFileLocation | inputSecureFileLocation | inputTakeoutFileLocation | inputPhotoFileLocation | inputPhotoLegacyFileLocation | inputPeerPhotoFileLocation | inputStickerSetThumb | inputGroupCallStream;
|
|
14977
15023
|
export type Peer = peerUser | peerChat | peerChannel;
|
|
14978
15024
|
export type storage_FileType = storage_fileUnknown | storage_filePartial | storage_fileJpeg | storage_fileGif | storage_filePng | storage_filePdf | storage_fileMp3 | storage_fileMov | storage_fileMp4 | storage_fileWebp;
|
|
14979
15025
|
export type User = userEmpty | user;
|
|
@@ -15143,7 +15189,7 @@ export type CdnConfig = cdnConfig;
|
|
|
15143
15189
|
export type LangPackString = langPackString | langPackStringPluralized | langPackStringDeleted;
|
|
15144
15190
|
export type LangPackDifference = langPackDifference;
|
|
15145
15191
|
export type LangPackLanguage = langPackLanguage;
|
|
15146
|
-
export type ChannelAdminLogEventAction = channelAdminLogEventActionChangeTitle | channelAdminLogEventActionChangeAbout | channelAdminLogEventActionChangeUsername | channelAdminLogEventActionChangePhoto | channelAdminLogEventActionToggleInvites | channelAdminLogEventActionToggleSignatures | channelAdminLogEventActionUpdatePinned | channelAdminLogEventActionEditMessage | channelAdminLogEventActionDeleteMessage | channelAdminLogEventActionParticipantJoin | channelAdminLogEventActionParticipantLeave | channelAdminLogEventActionParticipantInvite | channelAdminLogEventActionParticipantToggleBan | channelAdminLogEventActionParticipantToggleAdmin | channelAdminLogEventActionChangeStickerSet | channelAdminLogEventActionTogglePreHistoryHidden | channelAdminLogEventActionDefaultBannedRights | channelAdminLogEventActionStopPoll | channelAdminLogEventActionChangeLinkedChat | channelAdminLogEventActionChangeLocation | channelAdminLogEventActionToggleSlowMode | channelAdminLogEventActionStartGroupCall | channelAdminLogEventActionDiscardGroupCall | channelAdminLogEventActionParticipantMute | channelAdminLogEventActionParticipantUnmute | channelAdminLogEventActionToggleGroupCallSetting | channelAdminLogEventActionParticipantJoinByInvite | channelAdminLogEventActionExportedInviteDelete | channelAdminLogEventActionExportedInviteRevoke | channelAdminLogEventActionExportedInviteEdit | channelAdminLogEventActionParticipantVolume | channelAdminLogEventActionChangeHistoryTTL | channelAdminLogEventActionParticipantJoinByRequest | channelAdminLogEventActionToggleNoForwards | channelAdminLogEventActionSendMessage | channelAdminLogEventActionChangeAvailableReactions | channelAdminLogEventActionChangeUsernames | channelAdminLogEventActionToggleForum | channelAdminLogEventActionCreateTopic | channelAdminLogEventActionEditTopic | channelAdminLogEventActionDeleteTopic | channelAdminLogEventActionPinTopic | channelAdminLogEventActionToggleAntiSpam | channelAdminLogEventActionChangePeerColor | channelAdminLogEventActionChangeProfilePeerColor | channelAdminLogEventActionChangeWallpaper | channelAdminLogEventActionChangeEmojiStatus | channelAdminLogEventActionChangeEmojiStickerSet;
|
|
15192
|
+
export type ChannelAdminLogEventAction = channelAdminLogEventActionChangeTitle | channelAdminLogEventActionChangeAbout | channelAdminLogEventActionChangeUsername | channelAdminLogEventActionChangePhoto | channelAdminLogEventActionToggleInvites | channelAdminLogEventActionToggleSignatures | channelAdminLogEventActionUpdatePinned | channelAdminLogEventActionEditMessage | channelAdminLogEventActionDeleteMessage | channelAdminLogEventActionParticipantJoin | channelAdminLogEventActionParticipantLeave | channelAdminLogEventActionParticipantInvite | channelAdminLogEventActionParticipantToggleBan | channelAdminLogEventActionParticipantToggleAdmin | channelAdminLogEventActionChangeStickerSet | channelAdminLogEventActionTogglePreHistoryHidden | channelAdminLogEventActionDefaultBannedRights | channelAdminLogEventActionStopPoll | channelAdminLogEventActionChangeLinkedChat | channelAdminLogEventActionChangeLocation | channelAdminLogEventActionToggleSlowMode | channelAdminLogEventActionStartGroupCall | channelAdminLogEventActionDiscardGroupCall | channelAdminLogEventActionParticipantMute | channelAdminLogEventActionParticipantUnmute | channelAdminLogEventActionToggleGroupCallSetting | channelAdminLogEventActionParticipantJoinByInvite | channelAdminLogEventActionExportedInviteDelete | channelAdminLogEventActionExportedInviteRevoke | channelAdminLogEventActionExportedInviteEdit | channelAdminLogEventActionParticipantVolume | channelAdminLogEventActionChangeHistoryTTL | channelAdminLogEventActionParticipantJoinByRequest | channelAdminLogEventActionToggleNoForwards | channelAdminLogEventActionSendMessage | channelAdminLogEventActionChangeAvailableReactions | channelAdminLogEventActionChangeUsernames | channelAdminLogEventActionToggleForum | channelAdminLogEventActionCreateTopic | channelAdminLogEventActionEditTopic | channelAdminLogEventActionDeleteTopic | channelAdminLogEventActionPinTopic | channelAdminLogEventActionToggleAntiSpam | channelAdminLogEventActionChangePeerColor | channelAdminLogEventActionChangeProfilePeerColor | channelAdminLogEventActionChangeWallpaper | channelAdminLogEventActionChangeEmojiStatus | channelAdminLogEventActionChangeEmojiStickerSet | channelAdminLogEventActionToggleSignatureProfiles;
|
|
15147
15193
|
export type ChannelAdminLogEvent = channelAdminLogEvent;
|
|
15148
15194
|
export type channels_AdminLogResults = channels_adminLogResults;
|
|
15149
15195
|
export type ChannelAdminLogEventsFilter = channelAdminLogEventsFilter;
|
|
@@ -15311,7 +15357,7 @@ export type account_SavedRingtones = account_savedRingtonesNotModified | account
|
|
|
15311
15357
|
export type NotificationSound = notificationSoundDefault | notificationSoundNone | notificationSoundLocal | notificationSoundRingtone;
|
|
15312
15358
|
export type account_SavedRingtone = account_savedRingtone | account_savedRingtoneConverted;
|
|
15313
15359
|
export type AttachMenuPeerType = attachMenuPeerTypeSameBotPM | attachMenuPeerTypeBotPM | attachMenuPeerTypePM | attachMenuPeerTypeChat | attachMenuPeerTypeBroadcast;
|
|
15314
|
-
export type InputInvoice = inputInvoiceMessage | inputInvoiceSlug | inputInvoicePremiumGiftCode | inputInvoiceStars;
|
|
15360
|
+
export type InputInvoice = inputInvoiceMessage | inputInvoiceSlug | inputInvoicePremiumGiftCode | inputInvoiceStars | inputInvoiceChatInviteSubscription;
|
|
15315
15361
|
export type payments_ExportedInvoice = payments_exportedInvoice;
|
|
15316
15362
|
export type messages_TranscribedAudio = messages_transcribedAudio;
|
|
15317
15363
|
export type help_PremiumPromo = help_premiumPromo;
|
|
@@ -15320,7 +15366,7 @@ export type PremiumGiftOption = premiumGiftOption;
|
|
|
15320
15366
|
export type PaymentFormMethod = paymentFormMethod;
|
|
15321
15367
|
export type EmojiStatus = emojiStatusEmpty | emojiStatus | emojiStatusUntil;
|
|
15322
15368
|
export type account_EmojiStatuses = account_emojiStatusesNotModified | account_emojiStatuses;
|
|
15323
|
-
export type Reaction = reactionEmpty | reactionEmoji | reactionCustomEmoji;
|
|
15369
|
+
export type Reaction = reactionEmpty | reactionEmoji | reactionCustomEmoji | reactionPaid;
|
|
15324
15370
|
export type ChatReactions = chatReactionsNone | chatReactionsAll | chatReactionsSome;
|
|
15325
15371
|
export type messages_Reactions = messages_reactionsNotModified | messages_reactions;
|
|
15326
15372
|
export type EmailVerifyPurpose = emailVerifyPurposeLoginSetup | emailVerifyPurposeLoginChange | emailVerifyPurposePassport;
|
|
@@ -15465,6 +15511,9 @@ export type StarsGiftOption = starsGiftOption;
|
|
|
15465
15511
|
export type bots_PopularAppBots = bots_popularAppBots;
|
|
15466
15512
|
export type BotPreviewMedia = botPreviewMedia;
|
|
15467
15513
|
export type bots_PreviewInfo = bots_previewInfo;
|
|
15514
|
+
export type StarsSubscriptionPricing = starsSubscriptionPricing;
|
|
15515
|
+
export type StarsSubscription = starsSubscription;
|
|
15516
|
+
export type MessageReactor = messageReactor;
|
|
15468
15517
|
export declare const getTypeName: (id: number) => string | undefined;
|
|
15469
15518
|
export declare const flags: symbol;
|
|
15470
15519
|
export type Parameters = [number, [string, unknown, string][]];
|