@mtkruto/node 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_params.d.ts +8 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_utilities.d.ts +2 -2
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/2_account_manager.d.ts +2 -1
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +52 -2
- package/esm/client/5_client.d.ts +11 -5
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +12 -4
- package/esm/tl/0_api.d.ts +143 -6
- package/esm/tl/0_api.d.ts.map +1 -1
- package/esm/tl/0_api.js +217 -17
- 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 +8 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_utilities.d.ts +2 -2
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/2_account_manager.d.ts +2 -1
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +51 -1
- package/script/client/5_client.d.ts +11 -5
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +12 -4
- package/script/tl/0_api.d.ts +143 -6
- package/script/tl/0_api.d.ts.map +1 -1
- package/script/tl/0_api.js +217 -17
package/script/tl/0_api.d.ts
CHANGED
|
@@ -1570,6 +1570,7 @@ export interface userFull {
|
|
|
1570
1570
|
personal_channel_id?: bigint;
|
|
1571
1571
|
personal_channel_message?: number;
|
|
1572
1572
|
stargifts_count?: number;
|
|
1573
|
+
starref_program?: StarRefProgram;
|
|
1573
1574
|
}
|
|
1574
1575
|
export interface contact {
|
|
1575
1576
|
_: "contact";
|
|
@@ -2501,7 +2502,7 @@ export interface updateBroadcastRevenueTransactions {
|
|
|
2501
2502
|
}
|
|
2502
2503
|
export interface updateStarsBalance {
|
|
2503
2504
|
_: "updateStarsBalance";
|
|
2504
|
-
balance:
|
|
2505
|
+
balance: StarsAmount;
|
|
2505
2506
|
}
|
|
2506
2507
|
export interface updateBusinessBotCallbackQuery {
|
|
2507
2508
|
_: "updateBusinessBotCallbackQuery";
|
|
@@ -8157,7 +8158,7 @@ export interface starsTransaction {
|
|
|
8157
8158
|
gift?: true;
|
|
8158
8159
|
reaction?: true;
|
|
8159
8160
|
id: string;
|
|
8160
|
-
stars:
|
|
8161
|
+
stars: StarsAmount;
|
|
8161
8162
|
date: number;
|
|
8162
8163
|
peer: StarsTransactionPeer;
|
|
8163
8164
|
title?: string;
|
|
@@ -8172,10 +8173,13 @@ export interface starsTransaction {
|
|
|
8172
8173
|
giveaway_post_id?: number;
|
|
8173
8174
|
stargift?: StarGift;
|
|
8174
8175
|
floodskip_number?: number;
|
|
8176
|
+
starref_commission_permille?: number;
|
|
8177
|
+
starref_peer?: Peer;
|
|
8178
|
+
starref_amount?: StarsAmount;
|
|
8175
8179
|
}
|
|
8176
8180
|
export interface payments_starsStatus {
|
|
8177
8181
|
_: "payments.starsStatus";
|
|
8178
|
-
balance:
|
|
8182
|
+
balance: StarsAmount;
|
|
8179
8183
|
subscriptions?: Array<StarsSubscription>;
|
|
8180
8184
|
subscriptions_next_offset?: string;
|
|
8181
8185
|
subscriptions_missing_balance?: bigint;
|
|
@@ -8207,9 +8211,9 @@ export interface geoPointAddress {
|
|
|
8207
8211
|
export interface starsRevenueStatus {
|
|
8208
8212
|
_: "starsRevenueStatus";
|
|
8209
8213
|
withdrawal_enabled?: true;
|
|
8210
|
-
current_balance:
|
|
8211
|
-
available_balance:
|
|
8212
|
-
overall_revenue:
|
|
8214
|
+
current_balance: StarsAmount;
|
|
8215
|
+
available_balance: StarsAmount;
|
|
8216
|
+
overall_revenue: StarsAmount;
|
|
8213
8217
|
next_withdrawal_at?: number;
|
|
8214
8218
|
}
|
|
8215
8219
|
export interface payments_starsRevenueStats {
|
|
@@ -8378,6 +8382,53 @@ export interface botAppSettings {
|
|
|
8378
8382
|
header_color?: number;
|
|
8379
8383
|
header_dark_color?: number;
|
|
8380
8384
|
}
|
|
8385
|
+
export interface starRefProgram {
|
|
8386
|
+
_: "starRefProgram";
|
|
8387
|
+
bot_id: bigint;
|
|
8388
|
+
commission_permille: number;
|
|
8389
|
+
duration_months?: number;
|
|
8390
|
+
end_date?: number;
|
|
8391
|
+
daily_revenue_per_user?: StarsAmount;
|
|
8392
|
+
}
|
|
8393
|
+
export interface connectedBotStarRef {
|
|
8394
|
+
_: "connectedBotStarRef";
|
|
8395
|
+
revoked?: true;
|
|
8396
|
+
url: string;
|
|
8397
|
+
date: number;
|
|
8398
|
+
bot_id: bigint;
|
|
8399
|
+
commission_permille: number;
|
|
8400
|
+
duration_months?: number;
|
|
8401
|
+
participants: bigint;
|
|
8402
|
+
revenue: bigint;
|
|
8403
|
+
}
|
|
8404
|
+
export interface payments_connectedStarRefBots {
|
|
8405
|
+
_: "payments.connectedStarRefBots";
|
|
8406
|
+
count: number;
|
|
8407
|
+
connected_bots: Array<ConnectedBotStarRef>;
|
|
8408
|
+
users: Array<User>;
|
|
8409
|
+
}
|
|
8410
|
+
export interface payments_suggestedStarRefBots {
|
|
8411
|
+
_: "payments.suggestedStarRefBots";
|
|
8412
|
+
count: number;
|
|
8413
|
+
suggested_bots: Array<StarRefProgram>;
|
|
8414
|
+
users: Array<User>;
|
|
8415
|
+
next_offset?: string;
|
|
8416
|
+
}
|
|
8417
|
+
export interface starsAmount {
|
|
8418
|
+
_: "starsAmount";
|
|
8419
|
+
amount: bigint;
|
|
8420
|
+
nanos: number;
|
|
8421
|
+
}
|
|
8422
|
+
export interface messages_foundStickersNotModified {
|
|
8423
|
+
_: "messages.foundStickersNotModified";
|
|
8424
|
+
next_offset?: number;
|
|
8425
|
+
}
|
|
8426
|
+
export interface messages_foundStickers {
|
|
8427
|
+
_: "messages.foundStickers";
|
|
8428
|
+
next_offset?: number;
|
|
8429
|
+
hash: bigint;
|
|
8430
|
+
stickers: Array<Document>;
|
|
8431
|
+
}
|
|
8381
8432
|
export interface req_pq_multi {
|
|
8382
8433
|
_: "req_pq_multi";
|
|
8383
8434
|
nonce: bigint;
|
|
@@ -9364,6 +9415,7 @@ export interface contacts_search {
|
|
|
9364
9415
|
export interface contacts_resolveUsername {
|
|
9365
9416
|
_: "contacts.resolveUsername";
|
|
9366
9417
|
username: string;
|
|
9418
|
+
referer?: string;
|
|
9367
9419
|
[R]?: contacts_ResolvedPeer;
|
|
9368
9420
|
}
|
|
9369
9421
|
export interface contacts_getTopPeers {
|
|
@@ -11046,6 +11098,17 @@ export interface messages_getPreparedInlineMessage {
|
|
|
11046
11098
|
id: string;
|
|
11047
11099
|
[R]?: messages_PreparedInlineMessage;
|
|
11048
11100
|
}
|
|
11101
|
+
export interface messages_searchStickers {
|
|
11102
|
+
_: "messages.searchStickers";
|
|
11103
|
+
emojis?: true;
|
|
11104
|
+
q: string;
|
|
11105
|
+
emoticon: string;
|
|
11106
|
+
lang_code: Array<string>;
|
|
11107
|
+
offset: number;
|
|
11108
|
+
limit: number;
|
|
11109
|
+
hash: bigint;
|
|
11110
|
+
[R]?: messages_FoundStickers;
|
|
11111
|
+
}
|
|
11049
11112
|
export interface updates_getState {
|
|
11050
11113
|
_: "updates.getState";
|
|
11051
11114
|
[R]?: updates_State;
|
|
@@ -11847,6 +11910,17 @@ export interface bots_checkDownloadFileParams {
|
|
|
11847
11910
|
url: string;
|
|
11848
11911
|
[R]?: boolean;
|
|
11849
11912
|
}
|
|
11913
|
+
export interface bots_getAdminedBots {
|
|
11914
|
+
_: "bots.getAdminedBots";
|
|
11915
|
+
[R]?: Array<User>;
|
|
11916
|
+
}
|
|
11917
|
+
export interface bots_updateStarRefProgram {
|
|
11918
|
+
_: "bots.updateStarRefProgram";
|
|
11919
|
+
bot: InputUser;
|
|
11920
|
+
commission_permille: number;
|
|
11921
|
+
duration_months?: number;
|
|
11922
|
+
[R]?: StarRefProgram;
|
|
11923
|
+
}
|
|
11850
11924
|
export interface payments_getPaymentForm {
|
|
11851
11925
|
_: "payments.getPaymentForm";
|
|
11852
11926
|
invoice: InputInvoice;
|
|
@@ -12058,6 +12132,42 @@ export interface payments_botCancelStarsSubscription {
|
|
|
12058
12132
|
charge_id: string;
|
|
12059
12133
|
[R]?: boolean;
|
|
12060
12134
|
}
|
|
12135
|
+
export interface payments_getConnectedStarRefBots {
|
|
12136
|
+
_: "payments.getConnectedStarRefBots";
|
|
12137
|
+
peer: InputPeer;
|
|
12138
|
+
offset_date?: number;
|
|
12139
|
+
offset_link?: string;
|
|
12140
|
+
limit: number;
|
|
12141
|
+
[R]?: payments_ConnectedStarRefBots;
|
|
12142
|
+
}
|
|
12143
|
+
export interface payments_getConnectedStarRefBot {
|
|
12144
|
+
_: "payments.getConnectedStarRefBot";
|
|
12145
|
+
peer: InputPeer;
|
|
12146
|
+
bot: InputUser;
|
|
12147
|
+
[R]?: payments_ConnectedStarRefBots;
|
|
12148
|
+
}
|
|
12149
|
+
export interface payments_getSuggestedStarRefBots {
|
|
12150
|
+
_: "payments.getSuggestedStarRefBots";
|
|
12151
|
+
order_by_revenue?: true;
|
|
12152
|
+
order_by_date?: true;
|
|
12153
|
+
peer: InputPeer;
|
|
12154
|
+
offset: string;
|
|
12155
|
+
limit: number;
|
|
12156
|
+
[R]?: payments_SuggestedStarRefBots;
|
|
12157
|
+
}
|
|
12158
|
+
export interface payments_connectStarRefBot {
|
|
12159
|
+
_: "payments.connectStarRefBot";
|
|
12160
|
+
peer: InputPeer;
|
|
12161
|
+
bot: InputUser;
|
|
12162
|
+
[R]?: payments_ConnectedStarRefBots;
|
|
12163
|
+
}
|
|
12164
|
+
export interface payments_editConnectedStarRefBot {
|
|
12165
|
+
_: "payments.editConnectedStarRefBot";
|
|
12166
|
+
revoked?: true;
|
|
12167
|
+
peer: InputPeer;
|
|
12168
|
+
link: string;
|
|
12169
|
+
[R]?: payments_ConnectedStarRefBots;
|
|
12170
|
+
}
|
|
12061
12171
|
export interface stickers_createStickerSet {
|
|
12062
12172
|
_: "stickers.createStickerSet";
|
|
12063
12173
|
masks?: true;
|
|
@@ -14167,6 +14277,13 @@ export interface Types {
|
|
|
14167
14277
|
"messages.botPreparedInlineMessage": messages_botPreparedInlineMessage;
|
|
14168
14278
|
"messages.preparedInlineMessage": messages_preparedInlineMessage;
|
|
14169
14279
|
"botAppSettings": botAppSettings;
|
|
14280
|
+
"starRefProgram": starRefProgram;
|
|
14281
|
+
"connectedBotStarRef": connectedBotStarRef;
|
|
14282
|
+
"payments.connectedStarRefBots": payments_connectedStarRefBots;
|
|
14283
|
+
"payments.suggestedStarRefBots": payments_suggestedStarRefBots;
|
|
14284
|
+
"starsAmount": starsAmount;
|
|
14285
|
+
"messages.foundStickersNotModified": messages_foundStickersNotModified;
|
|
14286
|
+
"messages.foundStickers": messages_foundStickers;
|
|
14170
14287
|
}
|
|
14171
14288
|
export interface Functions<T = Function> {
|
|
14172
14289
|
"req_pq_multi": req_pq_multi;
|
|
@@ -14579,6 +14696,7 @@ export interface Functions<T = Function> {
|
|
|
14579
14696
|
"messages.getSponsoredMessages": messages_getSponsoredMessages;
|
|
14580
14697
|
"messages.savePreparedInlineMessage": messages_savePreparedInlineMessage;
|
|
14581
14698
|
"messages.getPreparedInlineMessage": messages_getPreparedInlineMessage;
|
|
14699
|
+
"messages.searchStickers": messages_searchStickers;
|
|
14582
14700
|
"updates.getState": updates_getState;
|
|
14583
14701
|
"updates.getDifference": updates_getDifference;
|
|
14584
14702
|
"updates.getChannelDifference": updates_getChannelDifference;
|
|
@@ -14707,6 +14825,8 @@ export interface Functions<T = Function> {
|
|
|
14707
14825
|
"bots.updateUserEmojiStatus": bots_updateUserEmojiStatus;
|
|
14708
14826
|
"bots.toggleUserEmojiStatusPermission": bots_toggleUserEmojiStatusPermission;
|
|
14709
14827
|
"bots.checkDownloadFileParams": bots_checkDownloadFileParams;
|
|
14828
|
+
"bots.getAdminedBots": bots_getAdminedBots;
|
|
14829
|
+
"bots.updateStarRefProgram": bots_updateStarRefProgram;
|
|
14710
14830
|
"payments.getPaymentForm": payments_getPaymentForm;
|
|
14711
14831
|
"payments.getPaymentReceipt": payments_getPaymentReceipt;
|
|
14712
14832
|
"payments.validateRequestedInfo": payments_validateRequestedInfo;
|
|
@@ -14742,6 +14862,11 @@ export interface Functions<T = Function> {
|
|
|
14742
14862
|
"payments.saveStarGift": payments_saveStarGift;
|
|
14743
14863
|
"payments.convertStarGift": payments_convertStarGift;
|
|
14744
14864
|
"payments.botCancelStarsSubscription": payments_botCancelStarsSubscription;
|
|
14865
|
+
"payments.getConnectedStarRefBots": payments_getConnectedStarRefBots;
|
|
14866
|
+
"payments.getConnectedStarRefBot": payments_getConnectedStarRefBot;
|
|
14867
|
+
"payments.getSuggestedStarRefBots": payments_getSuggestedStarRefBots;
|
|
14868
|
+
"payments.connectStarRefBot": payments_connectStarRefBot;
|
|
14869
|
+
"payments.editConnectedStarRefBot": payments_editConnectedStarRefBot;
|
|
14745
14870
|
"stickers.createStickerSet": stickers_createStickerSet;
|
|
14746
14871
|
"stickers.removeStickerFromSet": stickers_removeStickerFromSet;
|
|
14747
14872
|
"stickers.changeStickerPosition": stickers_changeStickerPosition;
|
|
@@ -15395,6 +15520,12 @@ export interface Enums {
|
|
|
15395
15520
|
"messages.BotPreparedInlineMessage": messages_BotPreparedInlineMessage;
|
|
15396
15521
|
"messages.PreparedInlineMessage": messages_PreparedInlineMessage;
|
|
15397
15522
|
"BotAppSettings": BotAppSettings;
|
|
15523
|
+
"StarRefProgram": StarRefProgram;
|
|
15524
|
+
"ConnectedBotStarRef": ConnectedBotStarRef;
|
|
15525
|
+
"payments.ConnectedStarRefBots": payments_ConnectedStarRefBots;
|
|
15526
|
+
"payments.SuggestedStarRefBots": payments_SuggestedStarRefBots;
|
|
15527
|
+
"StarsAmount": StarsAmount;
|
|
15528
|
+
"messages.FoundStickers": messages_FoundStickers;
|
|
15398
15529
|
}
|
|
15399
15530
|
export type AnyType = Types[keyof Types];
|
|
15400
15531
|
export type AnyFunction<T = Function> = Functions<T>[keyof Functions<T>];
|
|
@@ -15943,6 +16074,12 @@ export type ReportResult = reportResultChooseOption | reportResultAddComment | r
|
|
|
15943
16074
|
export type messages_BotPreparedInlineMessage = messages_botPreparedInlineMessage;
|
|
15944
16075
|
export type messages_PreparedInlineMessage = messages_preparedInlineMessage;
|
|
15945
16076
|
export type BotAppSettings = botAppSettings;
|
|
16077
|
+
export type StarRefProgram = starRefProgram;
|
|
16078
|
+
export type ConnectedBotStarRef = connectedBotStarRef;
|
|
16079
|
+
export type payments_ConnectedStarRefBots = payments_connectedStarRefBots;
|
|
16080
|
+
export type payments_SuggestedStarRefBots = payments_suggestedStarRefBots;
|
|
16081
|
+
export type StarsAmount = starsAmount;
|
|
16082
|
+
export type messages_FoundStickers = messages_foundStickersNotModified | messages_foundStickers;
|
|
15946
16083
|
export declare const getTypeName: (id: number) => string | undefined;
|
|
15947
16084
|
export declare const flags: symbol;
|
|
15948
16085
|
export type Parameters = [number, [string, unknown, string][]];
|