@mtkruto/node 0.63.10 → 0.63.12
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/client/0_storage_operations.d.ts +3 -0
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +7 -0
- package/esm/client/0_utilities.d.ts +2 -3
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/0_utilities.js +1 -2
- package/esm/client/1_types.d.ts +1 -0
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/2_file_manager.d.ts.map +1 -1
- package/esm/client/2_file_manager.js +10 -9
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +0 -6
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +16 -3
- package/esm/session/2_session_encrypted.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.js +3 -2
- package/esm/tl/1_telegram_api.d.ts +112 -89
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +136 -104
- package/esm/types/1_chat_p.js +4 -0
- package/esm/types/2_business_connection.js +1 -1
- package/package.json +1 -1
- package/script/client/0_storage_operations.d.ts +3 -0
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +7 -0
- package/script/client/0_utilities.d.ts +2 -3
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/0_utilities.js +2 -3
- package/script/client/1_types.d.ts +1 -0
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/2_file_manager.d.ts.map +1 -1
- package/script/client/2_file_manager.js +9 -8
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +0 -6
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +15 -2
- package/script/session/2_session_encrypted.d.ts.map +1 -1
- package/script/session/2_session_encrypted.js +3 -2
- package/script/tl/1_telegram_api.d.ts +112 -89
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +136 -104
- package/script/types/1_chat_p.js +4 -0
- package/script/types/2_business_connection.js +1 -1
|
@@ -31,41 +31,8 @@ export interface error {
|
|
|
31
31
|
code: number;
|
|
32
32
|
text: string;
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
35
|
-
_: "
|
|
36
|
-
ipv4: number;
|
|
37
|
-
port: number;
|
|
38
|
-
}
|
|
39
|
-
export interface ipPortSecret {
|
|
40
|
-
_: "ipPortSecret";
|
|
41
|
-
ipv4: number;
|
|
42
|
-
port: number;
|
|
43
|
-
secret: Uint8Array;
|
|
44
|
-
}
|
|
45
|
-
export interface accessPointRule {
|
|
46
|
-
_: "accessPointRule";
|
|
47
|
-
phone_prefix_rules: string;
|
|
48
|
-
dc_id: number;
|
|
49
|
-
ips: Array<IpPort>;
|
|
50
|
-
}
|
|
51
|
-
export interface help_configSimple {
|
|
52
|
-
_: "help.configSimple";
|
|
53
|
-
date: number;
|
|
54
|
-
expires: number;
|
|
55
|
-
rules: Array<AccessPointRule>;
|
|
56
|
-
}
|
|
57
|
-
export interface inputPeerPhotoFileLocationLegacy {
|
|
58
|
-
_: "inputPeerPhotoFileLocationLegacy";
|
|
59
|
-
big?: true;
|
|
60
|
-
peer: InputPeer;
|
|
61
|
-
volume_id: bigint;
|
|
62
|
-
local_id: number;
|
|
63
|
-
}
|
|
64
|
-
export interface inputStickerSetThumbLegacy {
|
|
65
|
-
_: "inputStickerSetThumbLegacy";
|
|
66
|
-
stickerset: InputStickerSet;
|
|
67
|
-
volume_id: bigint;
|
|
68
|
-
local_id: number;
|
|
34
|
+
export interface null_ {
|
|
35
|
+
_: "null";
|
|
69
36
|
}
|
|
70
37
|
export interface inputPeerEmpty {
|
|
71
38
|
_: "inputPeerEmpty";
|
|
@@ -1167,6 +1134,15 @@ export interface messageActionStarGiftUnique {
|
|
|
1167
1134
|
peer?: Peer;
|
|
1168
1135
|
saved_id?: bigint;
|
|
1169
1136
|
}
|
|
1137
|
+
export interface messageActionPaidMessagesRefunded {
|
|
1138
|
+
_: "messageActionPaidMessagesRefunded";
|
|
1139
|
+
count: number;
|
|
1140
|
+
stars: bigint;
|
|
1141
|
+
}
|
|
1142
|
+
export interface messageActionPaidMessagesPrice {
|
|
1143
|
+
_: "messageActionPaidMessagesPrice";
|
|
1144
|
+
stars: bigint;
|
|
1145
|
+
}
|
|
1170
1146
|
export interface dialog {
|
|
1171
1147
|
_: "dialog";
|
|
1172
1148
|
pinned?: true;
|
|
@@ -1267,6 +1243,11 @@ export interface auth_sentCodeSuccess {
|
|
|
1267
1243
|
_: "auth.sentCodeSuccess";
|
|
1268
1244
|
authorization: auth_Authorization;
|
|
1269
1245
|
}
|
|
1246
|
+
export interface auth_sentCodePaymentRequired {
|
|
1247
|
+
_: "auth.sentCodePaymentRequired";
|
|
1248
|
+
store_product: string;
|
|
1249
|
+
phone_code_hash: string;
|
|
1250
|
+
}
|
|
1270
1251
|
export interface auth_authorization {
|
|
1271
1252
|
_: "auth.authorization";
|
|
1272
1253
|
setup_password_required?: true;
|
|
@@ -1417,6 +1398,7 @@ export interface userFull {
|
|
|
1417
1398
|
sponsored_enabled?: true;
|
|
1418
1399
|
can_view_revenue?: true;
|
|
1419
1400
|
bot_can_manage_emoji_status?: true;
|
|
1401
|
+
display_gifts_button?: true;
|
|
1420
1402
|
id: bigint;
|
|
1421
1403
|
about?: string;
|
|
1422
1404
|
settings: PeerSettings;
|
|
@@ -1447,6 +1429,7 @@ export interface userFull {
|
|
|
1447
1429
|
starref_program?: StarRefProgram;
|
|
1448
1430
|
bot_verification?: BotVerification;
|
|
1449
1431
|
send_paid_messages_stars?: bigint;
|
|
1432
|
+
disallowed_gifts?: DisallowedGiftsSettings;
|
|
1450
1433
|
}
|
|
1451
1434
|
export interface contact {
|
|
1452
1435
|
_: "contact";
|
|
@@ -2405,6 +2388,10 @@ export interface updatePaidReactionPrivacy {
|
|
|
2405
2388
|
_: "updatePaidReactionPrivacy";
|
|
2406
2389
|
private: PaidReactionPrivacy;
|
|
2407
2390
|
}
|
|
2391
|
+
export interface updateSentPhoneCode {
|
|
2392
|
+
_: "updateSentPhoneCode";
|
|
2393
|
+
sent_code: auth_SentCode;
|
|
2394
|
+
}
|
|
2408
2395
|
export interface updates_state {
|
|
2409
2396
|
_: "updates.state";
|
|
2410
2397
|
pts: number;
|
|
@@ -6139,7 +6126,9 @@ export interface globalPrivacySettings {
|
|
|
6139
6126
|
keep_archived_folders?: true;
|
|
6140
6127
|
hide_read_marks?: true;
|
|
6141
6128
|
new_noncontact_peers_require_premium?: true;
|
|
6129
|
+
display_gifts_button?: true;
|
|
6142
6130
|
noncontact_peers_paid_stars?: bigint;
|
|
6131
|
+
disallowed_gifts?: DisallowedGiftsSettings;
|
|
6143
6132
|
}
|
|
6144
6133
|
export interface help_countryCode {
|
|
6145
6134
|
_: "help.countryCode";
|
|
@@ -6819,6 +6808,14 @@ export interface inputStorePaymentStarsGiveaway {
|
|
|
6819
6808
|
amount: bigint;
|
|
6820
6809
|
users: number;
|
|
6821
6810
|
}
|
|
6811
|
+
export interface inputStorePaymentAuthCode {
|
|
6812
|
+
_: "inputStorePaymentAuthCode";
|
|
6813
|
+
restore?: true;
|
|
6814
|
+
phone_number: string;
|
|
6815
|
+
phone_code_hash: string;
|
|
6816
|
+
currency: string;
|
|
6817
|
+
amount: bigint;
|
|
6818
|
+
}
|
|
6822
6819
|
export interface paymentFormMethod {
|
|
6823
6820
|
_: "paymentFormMethod";
|
|
6824
6821
|
url: string;
|
|
@@ -7796,9 +7793,9 @@ export interface messages_quickRepliesNotModified {
|
|
|
7796
7793
|
}
|
|
7797
7794
|
export interface connectedBot {
|
|
7798
7795
|
_: "connectedBot";
|
|
7799
|
-
can_reply?: true;
|
|
7800
7796
|
bot_id: bigint;
|
|
7801
7797
|
recipients: BusinessBotRecipients;
|
|
7798
|
+
rights: BusinessBotRights;
|
|
7802
7799
|
}
|
|
7803
7800
|
export interface account_connectedBots {
|
|
7804
7801
|
_: "account.connectedBots";
|
|
@@ -7818,12 +7815,12 @@ export interface birthday {
|
|
|
7818
7815
|
}
|
|
7819
7816
|
export interface botBusinessConnection {
|
|
7820
7817
|
_: "botBusinessConnection";
|
|
7821
|
-
can_reply?: true;
|
|
7822
7818
|
disabled?: true;
|
|
7823
7819
|
connection_id: string;
|
|
7824
7820
|
user_id: bigint;
|
|
7825
7821
|
dc_id: number;
|
|
7826
7822
|
date: number;
|
|
7823
|
+
rights?: BusinessBotRights;
|
|
7827
7824
|
}
|
|
7828
7825
|
export interface inputBusinessIntro {
|
|
7829
7826
|
_: "inputBusinessIntro";
|
|
@@ -8488,27 +8485,45 @@ export interface requirementToContactPaidMessages {
|
|
|
8488
8485
|
_: "requirementToContactPaidMessages";
|
|
8489
8486
|
stars_amount: bigint;
|
|
8490
8487
|
}
|
|
8491
|
-
export interface
|
|
8492
|
-
_: "
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8488
|
+
export interface businessBotRights {
|
|
8489
|
+
_: "businessBotRights";
|
|
8490
|
+
reply?: true;
|
|
8491
|
+
read_messages?: true;
|
|
8492
|
+
delete_sent_messages?: true;
|
|
8493
|
+
delete_received_messages?: true;
|
|
8494
|
+
edit_name?: true;
|
|
8495
|
+
edit_bio?: true;
|
|
8496
|
+
edit_profile_photo?: true;
|
|
8497
|
+
edit_username?: true;
|
|
8498
|
+
view_gifts?: true;
|
|
8499
|
+
sell_gifts?: true;
|
|
8500
|
+
change_gift_settings?: true;
|
|
8501
|
+
transfer_and_upgrade_gifts?: true;
|
|
8502
|
+
transfer_stars?: true;
|
|
8503
|
+
manage_stories?: true;
|
|
8504
|
+
}
|
|
8505
|
+
export interface disallowedGiftsSettings {
|
|
8506
|
+
_: "disallowedGiftsSettings";
|
|
8507
|
+
disallow_unlimited_stargifts?: true;
|
|
8508
|
+
disallow_limited_stargifts?: true;
|
|
8509
|
+
disallow_unique_stargifts?: true;
|
|
8510
|
+
disallow_premium_gifts?: true;
|
|
8511
|
+
}
|
|
8512
|
+
export interface sponsoredPeer {
|
|
8513
|
+
_: "sponsoredPeer";
|
|
8514
|
+
random_id: Uint8Array;
|
|
8515
|
+
peer: Peer;
|
|
8516
|
+
sponsor_info?: string;
|
|
8517
|
+
additional_info?: string;
|
|
8501
8518
|
}
|
|
8502
|
-
export interface
|
|
8503
|
-
_: "
|
|
8504
|
-
nonce: string;
|
|
8505
|
-
secret: string;
|
|
8506
|
-
[R]?: Error;
|
|
8519
|
+
export interface contacts_sponsoredPeersEmpty {
|
|
8520
|
+
_: "contacts.sponsoredPeersEmpty";
|
|
8507
8521
|
}
|
|
8508
|
-
export interface
|
|
8509
|
-
_: "
|
|
8510
|
-
|
|
8511
|
-
|
|
8522
|
+
export interface contacts_sponsoredPeers {
|
|
8523
|
+
_: "contacts.sponsoredPeers";
|
|
8524
|
+
peers: Array<SponsoredPeer>;
|
|
8525
|
+
chats: Array<Chat>;
|
|
8526
|
+
users: Array<User>;
|
|
8512
8527
|
}
|
|
8513
8528
|
export interface invokeAfterMsg<T> {
|
|
8514
8529
|
_: "invokeAfterMsg";
|
|
@@ -9275,8 +9290,8 @@ export interface account_updateBusinessAwayMessage {
|
|
|
9275
9290
|
}
|
|
9276
9291
|
export interface account_updateConnectedBot {
|
|
9277
9292
|
_: "account.updateConnectedBot";
|
|
9278
|
-
can_reply?: true;
|
|
9279
9293
|
deleted?: true;
|
|
9294
|
+
rights?: BusinessBotRights;
|
|
9280
9295
|
bot: InputUser;
|
|
9281
9296
|
recipients: InputBusinessBotRecipients;
|
|
9282
9297
|
[R]?: Updates;
|
|
@@ -9546,6 +9561,11 @@ export interface contacts_getBirthdays {
|
|
|
9546
9561
|
_: "contacts.getBirthdays";
|
|
9547
9562
|
[R]?: contacts_ContactBirthdays;
|
|
9548
9563
|
}
|
|
9564
|
+
export interface contacts_getSponsoredPeers {
|
|
9565
|
+
_: "contacts.getSponsoredPeers";
|
|
9566
|
+
q: string;
|
|
9567
|
+
[R]?: contacts_SponsoredPeers;
|
|
9568
|
+
}
|
|
9549
9569
|
export interface messages_getMessages {
|
|
9550
9570
|
_: "messages.getMessages";
|
|
9551
9571
|
id: Array<InputMessage>;
|
|
@@ -11103,7 +11123,6 @@ export interface messages_getPaidReactionPrivacy {
|
|
|
11103
11123
|
}
|
|
11104
11124
|
export interface messages_viewSponsoredMessage {
|
|
11105
11125
|
_: "messages.viewSponsoredMessage";
|
|
11106
|
-
peer: InputPeer;
|
|
11107
11126
|
random_id: Uint8Array;
|
|
11108
11127
|
[R]?: boolean;
|
|
11109
11128
|
}
|
|
@@ -11111,13 +11130,11 @@ export interface messages_clickSponsoredMessage {
|
|
|
11111
11130
|
_: "messages.clickSponsoredMessage";
|
|
11112
11131
|
media?: true;
|
|
11113
11132
|
fullscreen?: true;
|
|
11114
|
-
peer: InputPeer;
|
|
11115
11133
|
random_id: Uint8Array;
|
|
11116
11134
|
[R]?: boolean;
|
|
11117
11135
|
}
|
|
11118
11136
|
export interface messages_reportSponsoredMessage {
|
|
11119
11137
|
_: "messages.reportSponsoredMessage";
|
|
11120
|
-
peer: InputPeer;
|
|
11121
11138
|
random_id: Uint8Array;
|
|
11122
11139
|
option: Uint8Array;
|
|
11123
11140
|
[R]?: channels_SponsoredMessageReportResult;
|
|
@@ -12051,11 +12068,6 @@ export interface payments_assignPlayMarketTransaction {
|
|
|
12051
12068
|
purpose: InputStorePaymentPurpose;
|
|
12052
12069
|
[R]?: Updates;
|
|
12053
12070
|
}
|
|
12054
|
-
export interface payments_canPurchasePremium {
|
|
12055
|
-
_: "payments.canPurchasePremium";
|
|
12056
|
-
purpose: InputStorePaymentPurpose;
|
|
12057
|
-
[R]?: boolean;
|
|
12058
|
-
}
|
|
12059
12071
|
export interface payments_getPremiumGiftCodeOptions {
|
|
12060
12072
|
_: "payments.getPremiumGiftCodeOptions";
|
|
12061
12073
|
boost_peer?: InputPeer;
|
|
@@ -12286,6 +12298,11 @@ export interface payments_toggleStarGiftsPinnedToTop {
|
|
|
12286
12298
|
stargift: Array<InputSavedStarGift>;
|
|
12287
12299
|
[R]?: boolean;
|
|
12288
12300
|
}
|
|
12301
|
+
export interface payments_canPurchaseStore {
|
|
12302
|
+
_: "payments.canPurchaseStore";
|
|
12303
|
+
purpose: InputStorePaymentPurpose;
|
|
12304
|
+
[R]?: boolean;
|
|
12305
|
+
}
|
|
12289
12306
|
export interface stickers_createStickerSet {
|
|
12290
12307
|
_: "stickers.createStickerSet";
|
|
12291
12308
|
masks?: true;
|
|
@@ -12996,12 +13013,7 @@ export interface fragment_getCollectibleInfo {
|
|
|
12996
13013
|
export interface Types {
|
|
12997
13014
|
"true": true_;
|
|
12998
13015
|
"error": error;
|
|
12999
|
-
"
|
|
13000
|
-
"ipPortSecret": ipPortSecret;
|
|
13001
|
-
"accessPointRule": accessPointRule;
|
|
13002
|
-
"help.configSimple": help_configSimple;
|
|
13003
|
-
"inputPeerPhotoFileLocationLegacy": inputPeerPhotoFileLocationLegacy;
|
|
13004
|
-
"inputStickerSetThumbLegacy": inputStickerSetThumbLegacy;
|
|
13016
|
+
"null": null_;
|
|
13005
13017
|
"inputPeerEmpty": inputPeerEmpty;
|
|
13006
13018
|
"inputPeerSelf": inputPeerSelf;
|
|
13007
13019
|
"inputPeerChat": inputPeerChat;
|
|
@@ -13157,6 +13169,8 @@ export interface Types {
|
|
|
13157
13169
|
"messageActionPrizeStars": messageActionPrizeStars;
|
|
13158
13170
|
"messageActionStarGift": messageActionStarGift;
|
|
13159
13171
|
"messageActionStarGiftUnique": messageActionStarGiftUnique;
|
|
13172
|
+
"messageActionPaidMessagesRefunded": messageActionPaidMessagesRefunded;
|
|
13173
|
+
"messageActionPaidMessagesPrice": messageActionPaidMessagesPrice;
|
|
13160
13174
|
"dialog": dialog;
|
|
13161
13175
|
"dialogFolder": dialogFolder;
|
|
13162
13176
|
"photoEmpty": photoEmpty;
|
|
@@ -13171,6 +13185,7 @@ export interface Types {
|
|
|
13171
13185
|
"geoPoint": geoPoint;
|
|
13172
13186
|
"auth.sentCode": auth_sentCode;
|
|
13173
13187
|
"auth.sentCodeSuccess": auth_sentCodeSuccess;
|
|
13188
|
+
"auth.sentCodePaymentRequired": auth_sentCodePaymentRequired;
|
|
13174
13189
|
"auth.authorization": auth_authorization;
|
|
13175
13190
|
"auth.authorizationSignUpRequired": auth_authorizationSignUpRequired;
|
|
13176
13191
|
"auth.exportedAuthorization": auth_exportedAuthorization;
|
|
@@ -13372,6 +13387,7 @@ export interface Types {
|
|
|
13372
13387
|
"updateStarsRevenueStatus": updateStarsRevenueStatus;
|
|
13373
13388
|
"updateBotPurchasedPaidMedia": updateBotPurchasedPaidMedia;
|
|
13374
13389
|
"updatePaidReactionPrivacy": updatePaidReactionPrivacy;
|
|
13390
|
+
"updateSentPhoneCode": updateSentPhoneCode;
|
|
13375
13391
|
"updates.state": updates_state;
|
|
13376
13392
|
"updates.differenceEmpty": updates_differenceEmpty;
|
|
13377
13393
|
"updates.difference": updates_difference;
|
|
@@ -14138,6 +14154,7 @@ export interface Types {
|
|
|
14138
14154
|
"inputStorePaymentStarsTopup": inputStorePaymentStarsTopup;
|
|
14139
14155
|
"inputStorePaymentStarsGift": inputStorePaymentStarsGift;
|
|
14140
14156
|
"inputStorePaymentStarsGiveaway": inputStorePaymentStarsGiveaway;
|
|
14157
|
+
"inputStorePaymentAuthCode": inputStorePaymentAuthCode;
|
|
14141
14158
|
"paymentFormMethod": paymentFormMethod;
|
|
14142
14159
|
"emojiStatusEmpty": emojiStatusEmpty;
|
|
14143
14160
|
"emojiStatus": emojiStatus;
|
|
@@ -14407,12 +14424,13 @@ export interface Types {
|
|
|
14407
14424
|
"requirementToContactEmpty": requirementToContactEmpty;
|
|
14408
14425
|
"requirementToContactPremium": requirementToContactPremium;
|
|
14409
14426
|
"requirementToContactPaidMessages": requirementToContactPaidMessages;
|
|
14427
|
+
"businessBotRights": businessBotRights;
|
|
14428
|
+
"disallowedGiftsSettings": disallowedGiftsSettings;
|
|
14429
|
+
"sponsoredPeer": sponsoredPeer;
|
|
14430
|
+
"contacts.sponsoredPeersEmpty": contacts_sponsoredPeersEmpty;
|
|
14431
|
+
"contacts.sponsoredPeers": contacts_sponsoredPeers;
|
|
14410
14432
|
}
|
|
14411
14433
|
export interface Functions<T = Function> {
|
|
14412
|
-
"invokeWithBusinessConnectionPrefix": invokeWithBusinessConnectionPrefix;
|
|
14413
|
-
"invokeWithGooglePlayIntegrityPrefix": invokeWithGooglePlayIntegrityPrefix;
|
|
14414
|
-
"invokeWithApnsSecretPrefix": invokeWithApnsSecretPrefix;
|
|
14415
|
-
"invokeWithReCaptchaPrefix": invokeWithReCaptchaPrefix;
|
|
14416
14434
|
"invokeAfterMsg": invokeAfterMsg<T>;
|
|
14417
14435
|
"invokeAfterMsgs": invokeAfterMsgs<T>;
|
|
14418
14436
|
"initConnection": initConnection<T>;
|
|
@@ -14592,6 +14610,7 @@ export interface Functions<T = Function> {
|
|
|
14592
14610
|
"contacts.editCloseFriends": contacts_editCloseFriends;
|
|
14593
14611
|
"contacts.setBlocked": contacts_setBlocked;
|
|
14594
14612
|
"contacts.getBirthdays": contacts_getBirthdays;
|
|
14613
|
+
"contacts.getSponsoredPeers": contacts_getSponsoredPeers;
|
|
14595
14614
|
"messages.getMessages": messages_getMessages;
|
|
14596
14615
|
"messages.getDialogs": messages_getDialogs;
|
|
14597
14616
|
"messages.getHistory": messages_getHistory;
|
|
@@ -14960,7 +14979,6 @@ export interface Functions<T = Function> {
|
|
|
14960
14979
|
"payments.exportInvoice": payments_exportInvoice;
|
|
14961
14980
|
"payments.assignAppStoreTransaction": payments_assignAppStoreTransaction;
|
|
14962
14981
|
"payments.assignPlayMarketTransaction": payments_assignPlayMarketTransaction;
|
|
14963
|
-
"payments.canPurchasePremium": payments_canPurchasePremium;
|
|
14964
14982
|
"payments.getPremiumGiftCodeOptions": payments_getPremiumGiftCodeOptions;
|
|
14965
14983
|
"payments.checkGiftCode": payments_checkGiftCode;
|
|
14966
14984
|
"payments.applyGiftCode": payments_applyGiftCode;
|
|
@@ -14998,6 +15016,7 @@ export interface Functions<T = Function> {
|
|
|
14998
15016
|
"payments.getStarGiftWithdrawalUrl": payments_getStarGiftWithdrawalUrl;
|
|
14999
15017
|
"payments.toggleChatStarGiftNotifications": payments_toggleChatStarGiftNotifications;
|
|
15000
15018
|
"payments.toggleStarGiftsPinnedToTop": payments_toggleStarGiftsPinnedToTop;
|
|
15019
|
+
"payments.canPurchaseStore": payments_canPurchaseStore;
|
|
15001
15020
|
"stickers.createStickerSet": stickers_createStickerSet;
|
|
15002
15021
|
"stickers.removeStickerFromSet": stickers_removeStickerFromSet;
|
|
15003
15022
|
"stickers.changeStickerPosition": stickers_changeStickerPosition;
|
|
@@ -15111,10 +15130,7 @@ export interface Functions<T = Function> {
|
|
|
15111
15130
|
export interface Enums {
|
|
15112
15131
|
"True": True;
|
|
15113
15132
|
"Error": Error;
|
|
15114
|
-
"
|
|
15115
|
-
"AccessPointRule": AccessPointRule;
|
|
15116
|
-
"help.ConfigSimple": help_ConfigSimple;
|
|
15117
|
-
"InputFileLocation": InputFileLocation;
|
|
15133
|
+
"Null": Null;
|
|
15118
15134
|
"InputPeer": InputPeer;
|
|
15119
15135
|
"InputUser": InputUser;
|
|
15120
15136
|
"InputContact": InputContact;
|
|
@@ -15123,6 +15139,7 @@ export interface Enums {
|
|
|
15123
15139
|
"InputChatPhoto": InputChatPhoto;
|
|
15124
15140
|
"InputGeoPoint": InputGeoPoint;
|
|
15125
15141
|
"InputPhoto": InputPhoto;
|
|
15142
|
+
"InputFileLocation": InputFileLocation;
|
|
15126
15143
|
"Peer": Peer;
|
|
15127
15144
|
"storage.FileType": storage_FileType;
|
|
15128
15145
|
"User": User;
|
|
@@ -15645,6 +15662,10 @@ export interface Enums {
|
|
|
15645
15662
|
"PaidReactionPrivacy": PaidReactionPrivacy;
|
|
15646
15663
|
"account.PaidMessagesRevenue": account_PaidMessagesRevenue;
|
|
15647
15664
|
"RequirementToContact": RequirementToContact;
|
|
15665
|
+
"BusinessBotRights": BusinessBotRights;
|
|
15666
|
+
"DisallowedGiftsSettings": DisallowedGiftsSettings;
|
|
15667
|
+
"SponsoredPeer": SponsoredPeer;
|
|
15668
|
+
"contacts.SponsoredPeers": contacts_SponsoredPeers;
|
|
15648
15669
|
}
|
|
15649
15670
|
export type AnyType = Types[keyof Types];
|
|
15650
15671
|
export type AnyFunction<T = Function> = Functions<T>[keyof Functions<T>];
|
|
@@ -15652,10 +15673,7 @@ export type AnyGenericFunction<T> = invokeAfterMsg<T> | invokeAfterMsgs<T> | ini
|
|
|
15652
15673
|
export type AnyObject<T = Function> = AnyType | AnyFunction<T>;
|
|
15653
15674
|
export type True = true_;
|
|
15654
15675
|
export type Error = error;
|
|
15655
|
-
export type
|
|
15656
|
-
export type AccessPointRule = accessPointRule;
|
|
15657
|
-
export type help_ConfigSimple = help_configSimple;
|
|
15658
|
-
export type InputFileLocation = inputPeerPhotoFileLocationLegacy | inputStickerSetThumbLegacy | inputFileLocation | inputEncryptedFileLocation | inputDocumentFileLocation | inputSecureFileLocation | inputTakeoutFileLocation | inputPhotoFileLocation | inputPhotoLegacyFileLocation | inputPeerPhotoFileLocation | inputStickerSetThumb | inputGroupCallStream;
|
|
15676
|
+
export type Null = null_;
|
|
15659
15677
|
export type InputPeer = inputPeerEmpty | inputPeerSelf | inputPeerChat | inputPeerUser | inputPeerChannel | inputPeerUserFromMessage | inputPeerChannelFromMessage;
|
|
15660
15678
|
export type InputUser = inputUserEmpty | inputUserSelf | inputUser | inputUserFromMessage;
|
|
15661
15679
|
export type InputContact = inputPhoneContact;
|
|
@@ -15664,6 +15682,7 @@ export type InputMedia = inputMediaEmpty | inputMediaUploadedPhoto | inputMediaP
|
|
|
15664
15682
|
export type InputChatPhoto = inputChatPhotoEmpty | inputChatUploadedPhoto | inputChatPhoto;
|
|
15665
15683
|
export type InputGeoPoint = inputGeoPointEmpty | inputGeoPoint;
|
|
15666
15684
|
export type InputPhoto = inputPhotoEmpty | inputPhoto;
|
|
15685
|
+
export type InputFileLocation = inputFileLocation | inputEncryptedFileLocation | inputDocumentFileLocation | inputSecureFileLocation | inputTakeoutFileLocation | inputPhotoFileLocation | inputPhotoLegacyFileLocation | inputPeerPhotoFileLocation | inputStickerSetThumb | inputGroupCallStream;
|
|
15667
15686
|
export type Peer = peerUser | peerChat | peerChannel;
|
|
15668
15687
|
export type storage_FileType = storage_fileUnknown | storage_filePartial | storage_fileJpeg | storage_fileGif | storage_filePng | storage_filePdf | storage_fileMp3 | storage_fileMov | storage_fileMp4 | storage_fileWebp;
|
|
15669
15688
|
export type User = userEmpty | user;
|
|
@@ -15676,12 +15695,12 @@ export type ChatParticipants = chatParticipantsForbidden | chatParticipants;
|
|
|
15676
15695
|
export type ChatPhoto = chatPhotoEmpty | chatPhoto;
|
|
15677
15696
|
export type Message = messageEmpty | message | messageService;
|
|
15678
15697
|
export type MessageMedia = messageMediaEmpty | messageMediaPhoto | messageMediaGeo | messageMediaContact | messageMediaUnsupported | messageMediaDocument | messageMediaWebPage | messageMediaVenue | messageMediaGame | messageMediaInvoice | messageMediaGeoLive | messageMediaPoll | messageMediaDice | messageMediaStory | messageMediaGiveaway | messageMediaGiveawayResults | messageMediaPaidMedia;
|
|
15679
|
-
export type MessageAction = messageActionEmpty | messageActionChatCreate | messageActionChatEditTitle | messageActionChatEditPhoto | messageActionChatDeletePhoto | messageActionChatAddUser | messageActionChatDeleteUser | messageActionChatJoinedByLink | messageActionChannelCreate | messageActionChatMigrateTo | messageActionChannelMigrateFrom | messageActionPinMessage | messageActionHistoryClear | messageActionGameScore | messageActionPaymentSentMe | messageActionPaymentSent | messageActionPhoneCall | messageActionScreenshotTaken | messageActionCustomAction | messageActionBotAllowed | messageActionSecureValuesSentMe | messageActionSecureValuesSent | messageActionContactSignUp | messageActionGeoProximityReached | messageActionGroupCall | messageActionInviteToGroupCall | messageActionSetMessagesTTL | messageActionGroupCallScheduled | messageActionSetChatTheme | messageActionChatJoinedByRequest | messageActionWebViewDataSentMe | messageActionWebViewDataSent | messageActionGiftPremium | messageActionTopicCreate | messageActionTopicEdit | messageActionSuggestProfilePhoto | messageActionRequestedPeer | messageActionSetChatWallPaper | messageActionGiftCode | messageActionGiveawayLaunch | messageActionGiveawayResults | messageActionBoostApply | messageActionRequestedPeerSentMe | messageActionPaymentRefunded | messageActionGiftStars | messageActionPrizeStars | messageActionStarGift | messageActionStarGiftUnique;
|
|
15698
|
+
export type MessageAction = messageActionEmpty | messageActionChatCreate | messageActionChatEditTitle | messageActionChatEditPhoto | messageActionChatDeletePhoto | messageActionChatAddUser | messageActionChatDeleteUser | messageActionChatJoinedByLink | messageActionChannelCreate | messageActionChatMigrateTo | messageActionChannelMigrateFrom | messageActionPinMessage | messageActionHistoryClear | messageActionGameScore | messageActionPaymentSentMe | messageActionPaymentSent | messageActionPhoneCall | messageActionScreenshotTaken | messageActionCustomAction | messageActionBotAllowed | messageActionSecureValuesSentMe | messageActionSecureValuesSent | messageActionContactSignUp | messageActionGeoProximityReached | messageActionGroupCall | messageActionInviteToGroupCall | messageActionSetMessagesTTL | messageActionGroupCallScheduled | messageActionSetChatTheme | messageActionChatJoinedByRequest | messageActionWebViewDataSentMe | messageActionWebViewDataSent | messageActionGiftPremium | messageActionTopicCreate | messageActionTopicEdit | messageActionSuggestProfilePhoto | messageActionRequestedPeer | messageActionSetChatWallPaper | messageActionGiftCode | messageActionGiveawayLaunch | messageActionGiveawayResults | messageActionBoostApply | messageActionRequestedPeerSentMe | messageActionPaymentRefunded | messageActionGiftStars | messageActionPrizeStars | messageActionStarGift | messageActionStarGiftUnique | messageActionPaidMessagesRefunded | messageActionPaidMessagesPrice;
|
|
15680
15699
|
export type Dialog = dialog | dialogFolder;
|
|
15681
15700
|
export type Photo = photoEmpty | photo;
|
|
15682
15701
|
export type PhotoSize = photoSizeEmpty | photoSize | photoCachedSize | photoStrippedSize | photoSizeProgressive | photoPathSize;
|
|
15683
15702
|
export type GeoPoint = geoPointEmpty | geoPoint;
|
|
15684
|
-
export type auth_SentCode = auth_sentCode | auth_sentCodeSuccess;
|
|
15703
|
+
export type auth_SentCode = auth_sentCode | auth_sentCodeSuccess | auth_sentCodePaymentRequired;
|
|
15685
15704
|
export type auth_Authorization = auth_authorization | auth_authorizationSignUpRequired;
|
|
15686
15705
|
export type auth_ExportedAuthorization = auth_exportedAuthorization;
|
|
15687
15706
|
export type InputNotifyPeer = inputNotifyPeer | inputNotifyUsers | inputNotifyChats | inputNotifyBroadcasts | inputNotifyForumTopic;
|
|
@@ -15703,7 +15722,7 @@ export type messages_Chats = messages_chats | messages_chatsSlice;
|
|
|
15703
15722
|
export type messages_ChatFull = messages_chatFull;
|
|
15704
15723
|
export type messages_AffectedHistory = messages_affectedHistory;
|
|
15705
15724
|
export type MessagesFilter = inputMessagesFilterEmpty | inputMessagesFilterPhotos | inputMessagesFilterVideo | inputMessagesFilterPhotoVideo | inputMessagesFilterDocument | inputMessagesFilterUrl | inputMessagesFilterGif | inputMessagesFilterVoice | inputMessagesFilterMusic | inputMessagesFilterChatPhotos | inputMessagesFilterPhoneCalls | inputMessagesFilterRoundVoice | inputMessagesFilterRoundVideo | inputMessagesFilterMyMentions | inputMessagesFilterGeo | inputMessagesFilterContacts | inputMessagesFilterPinned;
|
|
15706
|
-
export type Update = updateNewMessage | updateMessageID | updateDeleteMessages | updateUserTyping | updateChatUserTyping | updateChatParticipants | updateUserStatus | updateUserName | updateNewAuthorization | updateNewEncryptedMessage | updateEncryptedChatTyping | updateEncryption | updateEncryptedMessagesRead | updateChatParticipantAdd | updateChatParticipantDelete | updateDcOptions | updateNotifySettings | updateServiceNotification | updatePrivacy | updateUserPhone | updateReadHistoryInbox | updateReadHistoryOutbox | updateWebPage | updateReadMessagesContents | updateChannelTooLong | updateChannel | updateNewChannelMessage | updateReadChannelInbox | updateDeleteChannelMessages | updateChannelMessageViews | updateChatParticipantAdmin | updateNewStickerSet | updateStickerSetsOrder | updateStickerSets | updateSavedGifs | updateBotInlineQuery | updateBotInlineSend | updateEditChannelMessage | updateBotCallbackQuery | updateEditMessage | updateInlineBotCallbackQuery | updateReadChannelOutbox | updateDraftMessage | updateReadFeaturedStickers | updateRecentStickers | updateConfig | updatePtsChanged | updateChannelWebPage | updateDialogPinned | updatePinnedDialogs | updateBotWebhookJSON | updateBotWebhookJSONQuery | updateBotShippingQuery | updateBotPrecheckoutQuery | updatePhoneCall | updateLangPackTooLong | updateLangPack | updateFavedStickers | updateChannelReadMessagesContents | updateContactsReset | updateChannelAvailableMessages | updateDialogUnreadMark | updateMessagePoll | updateChatDefaultBannedRights | updateFolderPeers | updatePeerSettings | updatePeerLocated | updateNewScheduledMessage | updateDeleteScheduledMessages | updateTheme | updateGeoLiveViewed | updateLoginToken | updateMessagePollVote | updateDialogFilter | updateDialogFilterOrder | updateDialogFilters | updatePhoneCallSignalingData | updateChannelMessageForwards | updateReadChannelDiscussionInbox | updateReadChannelDiscussionOutbox | updatePeerBlocked | updateChannelUserTyping | updatePinnedMessages | updatePinnedChannelMessages | updateChat | updateGroupCallParticipants | updateGroupCall | updatePeerHistoryTTL | updateChatParticipant | updateChannelParticipant | updateBotStopped | updateGroupCallConnection | updateBotCommands | updatePendingJoinRequests | updateBotChatInviteRequester | updateMessageReactions | updateAttachMenuBots | updateWebViewResultSent | updateBotMenuButton | updateSavedRingtones | updateTranscribedAudio | updateReadFeaturedEmojiStickers | updateUserEmojiStatus | updateRecentEmojiStatuses | updateRecentReactions | updateMoveStickerSetToTop | updateMessageExtendedMedia | updateChannelPinnedTopic | updateChannelPinnedTopics | updateUser | updateAutoSaveSettings | updateStory | updateReadStories | updateStoryID | updateStoriesStealthMode | updateSentStoryReaction | updateBotChatBoost | updateChannelViewForumAsMessages | updatePeerWallpaper | updateBotMessageReaction | updateBotMessageReactions | updateSavedDialogPinned | updatePinnedSavedDialogs | updateSavedReactionTags | updateSmsJob | updateQuickReplies | updateNewQuickReply | updateDeleteQuickReply | updateQuickReplyMessage | updateDeleteQuickReplyMessages | updateBotBusinessConnect | updateBotNewBusinessMessage | updateBotEditBusinessMessage | updateBotDeleteBusinessMessage | updateNewStoryReaction | updateBroadcastRevenueTransactions | updateStarsBalance | updateBusinessBotCallbackQuery | updateStarsRevenueStatus | updateBotPurchasedPaidMedia | updatePaidReactionPrivacy;
|
|
15725
|
+
export type Update = updateNewMessage | updateMessageID | updateDeleteMessages | updateUserTyping | updateChatUserTyping | updateChatParticipants | updateUserStatus | updateUserName | updateNewAuthorization | updateNewEncryptedMessage | updateEncryptedChatTyping | updateEncryption | updateEncryptedMessagesRead | updateChatParticipantAdd | updateChatParticipantDelete | updateDcOptions | updateNotifySettings | updateServiceNotification | updatePrivacy | updateUserPhone | updateReadHistoryInbox | updateReadHistoryOutbox | updateWebPage | updateReadMessagesContents | updateChannelTooLong | updateChannel | updateNewChannelMessage | updateReadChannelInbox | updateDeleteChannelMessages | updateChannelMessageViews | updateChatParticipantAdmin | updateNewStickerSet | updateStickerSetsOrder | updateStickerSets | updateSavedGifs | updateBotInlineQuery | updateBotInlineSend | updateEditChannelMessage | updateBotCallbackQuery | updateEditMessage | updateInlineBotCallbackQuery | updateReadChannelOutbox | updateDraftMessage | updateReadFeaturedStickers | updateRecentStickers | updateConfig | updatePtsChanged | updateChannelWebPage | updateDialogPinned | updatePinnedDialogs | updateBotWebhookJSON | updateBotWebhookJSONQuery | updateBotShippingQuery | updateBotPrecheckoutQuery | updatePhoneCall | updateLangPackTooLong | updateLangPack | updateFavedStickers | updateChannelReadMessagesContents | updateContactsReset | updateChannelAvailableMessages | updateDialogUnreadMark | updateMessagePoll | updateChatDefaultBannedRights | updateFolderPeers | updatePeerSettings | updatePeerLocated | updateNewScheduledMessage | updateDeleteScheduledMessages | updateTheme | updateGeoLiveViewed | updateLoginToken | updateMessagePollVote | updateDialogFilter | updateDialogFilterOrder | updateDialogFilters | updatePhoneCallSignalingData | updateChannelMessageForwards | updateReadChannelDiscussionInbox | updateReadChannelDiscussionOutbox | updatePeerBlocked | updateChannelUserTyping | updatePinnedMessages | updatePinnedChannelMessages | updateChat | updateGroupCallParticipants | updateGroupCall | updatePeerHistoryTTL | updateChatParticipant | updateChannelParticipant | updateBotStopped | updateGroupCallConnection | updateBotCommands | updatePendingJoinRequests | updateBotChatInviteRequester | updateMessageReactions | updateAttachMenuBots | updateWebViewResultSent | updateBotMenuButton | updateSavedRingtones | updateTranscribedAudio | updateReadFeaturedEmojiStickers | updateUserEmojiStatus | updateRecentEmojiStatuses | updateRecentReactions | updateMoveStickerSetToTop | updateMessageExtendedMedia | updateChannelPinnedTopic | updateChannelPinnedTopics | updateUser | updateAutoSaveSettings | updateStory | updateReadStories | updateStoryID | updateStoriesStealthMode | updateSentStoryReaction | updateBotChatBoost | updateChannelViewForumAsMessages | updatePeerWallpaper | updateBotMessageReaction | updateBotMessageReactions | updateSavedDialogPinned | updatePinnedSavedDialogs | updateSavedReactionTags | updateSmsJob | updateQuickReplies | updateNewQuickReply | updateDeleteQuickReply | updateQuickReplyMessage | updateDeleteQuickReplyMessages | updateBotBusinessConnect | updateBotNewBusinessMessage | updateBotEditBusinessMessage | updateBotDeleteBusinessMessage | updateNewStoryReaction | updateBroadcastRevenueTransactions | updateStarsBalance | updateBusinessBotCallbackQuery | updateStarsRevenueStatus | updateBotPurchasedPaidMedia | updatePaidReactionPrivacy | updateSentPhoneCode;
|
|
15707
15726
|
export type updates_State = updates_state;
|
|
15708
15727
|
export type updates_Difference = updates_differenceEmpty | updates_difference | updates_differenceSlice | updates_differenceTooLong;
|
|
15709
15728
|
export type Updates = updatesTooLong | updateShortMessage | updateShortChatMessage | updateShort | updatesCombined | updates | updateShortSentMessage;
|
|
@@ -16005,7 +16024,7 @@ export type InputInvoice = inputInvoiceMessage | inputInvoiceSlug | inputInvoice
|
|
|
16005
16024
|
export type payments_ExportedInvoice = payments_exportedInvoice;
|
|
16006
16025
|
export type messages_TranscribedAudio = messages_transcribedAudio;
|
|
16007
16026
|
export type help_PremiumPromo = help_premiumPromo;
|
|
16008
|
-
export type InputStorePaymentPurpose = inputStorePaymentPremiumSubscription | inputStorePaymentGiftPremium | inputStorePaymentPremiumGiftCode | inputStorePaymentPremiumGiveaway | inputStorePaymentStarsTopup | inputStorePaymentStarsGift | inputStorePaymentStarsGiveaway;
|
|
16027
|
+
export type InputStorePaymentPurpose = inputStorePaymentPremiumSubscription | inputStorePaymentGiftPremium | inputStorePaymentPremiumGiftCode | inputStorePaymentPremiumGiveaway | inputStorePaymentStarsTopup | inputStorePaymentStarsGift | inputStorePaymentStarsGiveaway | inputStorePaymentAuthCode;
|
|
16009
16028
|
export type PaymentFormMethod = paymentFormMethod;
|
|
16010
16029
|
export type EmojiStatus = emojiStatusEmpty | emojiStatus | emojiStatusCollectible | inputEmojiStatusCollectible;
|
|
16011
16030
|
export type account_EmojiStatuses = account_emojiStatusesNotModified | account_emojiStatuses;
|
|
@@ -16186,7 +16205,11 @@ export type payments_StarGiftWithdrawalUrl = payments_starGiftWithdrawalUrl;
|
|
|
16186
16205
|
export type PaidReactionPrivacy = paidReactionPrivacyDefault | paidReactionPrivacyAnonymous | paidReactionPrivacyPeer;
|
|
16187
16206
|
export type account_PaidMessagesRevenue = account_paidMessagesRevenue;
|
|
16188
16207
|
export type RequirementToContact = requirementToContactEmpty | requirementToContactPremium | requirementToContactPaidMessages;
|
|
16208
|
+
export type BusinessBotRights = businessBotRights;
|
|
16209
|
+
export type DisallowedGiftsSettings = disallowedGiftsSettings;
|
|
16210
|
+
export type SponsoredPeer = sponsoredPeer;
|
|
16211
|
+
export type contacts_SponsoredPeers = contacts_sponsoredPeersEmpty | contacts_sponsoredPeers;
|
|
16189
16212
|
export declare const schema: Schema;
|
|
16190
|
-
export declare const LAYER =
|
|
16213
|
+
export declare const LAYER = 201;
|
|
16191
16214
|
export {};
|
|
16192
16215
|
//# sourceMappingURL=1_telegram_api.d.ts.map
|