@mtcute/core 0.27.1 → 0.27.3
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/client.cjs +92 -68
- package/client.js +93 -69
- package/highlevel/base.cjs +4 -0
- package/highlevel/base.d.cts +1 -0
- package/highlevel/base.d.ts +1 -0
- package/highlevel/base.js +4 -0
- package/highlevel/client.d.cts +497 -412
- package/highlevel/client.d.ts +497 -412
- package/highlevel/client.test.d.cts +1 -0
- package/highlevel/client.test.d.ts +1 -0
- package/highlevel/methods/contacts/set-contact-note.cjs +21 -0
- package/highlevel/methods/contacts/set-contact-note.js +16 -0
- package/highlevel/methods/files/download-chunk.cjs +63 -0
- package/highlevel/methods/files/download-chunk.d.cts +29 -0
- package/highlevel/methods/files/download-chunk.d.ts +29 -0
- package/highlevel/methods/files/download-chunk.js +58 -0
- package/highlevel/methods/files/download-chunk.test.d.cts +1 -0
- package/highlevel/methods/files/download-chunk.test.d.ts +1 -0
- package/highlevel/methods/files/download-iterable.cjs +39 -23
- package/highlevel/methods/files/download-iterable.d.cts +6 -0
- package/highlevel/methods/files/download-iterable.d.ts +6 -0
- package/highlevel/methods/files/download-iterable.js +33 -17
- package/highlevel/methods/forums/reorder-pinned-forum-topics.cjs +2 -2
- package/highlevel/methods/forums/reorder-pinned-forum-topics.js +3 -3
- package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum-topic-closed.js +3 -3
- package/highlevel/methods/forums/toggle-forum-topic-pinned.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum-topic-pinned.js +3 -3
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.cjs +30 -0
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.d.cts +12 -0
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.d.ts +12 -0
- package/highlevel/methods/gifts/get-star-gift-upgrade-options.js +25 -0
- package/highlevel/methods/gifts/resolve-star-gift-offer.cjs +17 -0
- package/highlevel/methods/gifts/resolve-star-gift-offer.d.cts +18 -0
- package/highlevel/methods/gifts/resolve-star-gift-offer.d.ts +18 -0
- package/highlevel/methods/gifts/resolve-star-gift-offer.js +12 -0
- package/highlevel/methods/gifts/send-star-gift-offer.cjs +26 -0
- package/highlevel/methods/gifts/send-star-gift-offer.d.cts +26 -0
- package/highlevel/methods/gifts/send-star-gift-offer.d.ts +26 -0
- package/highlevel/methods/gifts/send-star-gift-offer.js +21 -0
- package/highlevel/methods/{premium → gifts}/set-gift-resale-price.cjs +2 -5
- package/highlevel/methods/{premium → gifts}/set-gift-resale-price.d.cts +2 -2
- package/highlevel/methods/{premium → gifts}/set-gift-resale-price.d.ts +2 -2
- package/highlevel/methods/{premium → gifts}/set-gift-resale-price.js +2 -5
- package/highlevel/methods/premium/_normalize-stars-amount.cjs +18 -0
- package/highlevel/methods/premium/_normalize-stars-amount.d.cts +12 -0
- package/highlevel/methods/premium/_normalize-stars-amount.d.ts +12 -0
- package/highlevel/methods/premium/_normalize-stars-amount.js +13 -0
- package/highlevel/methods.d.cts +26 -18
- package/highlevel/methods.d.ts +26 -18
- package/highlevel/types/messages/message-action.cjs +27 -4
- package/highlevel/types/messages/message-action.d.cts +28 -1
- package/highlevel/types/messages/message-action.d.ts +28 -1
- package/highlevel/types/messages/message-action.js +27 -4
- package/highlevel/types/premium/saved-star-gift.cjs +4 -0
- package/highlevel/types/premium/saved-star-gift.d.cts +2 -0
- package/highlevel/types/premium/saved-star-gift.d.ts +2 -0
- package/highlevel/types/premium/saved-star-gift.js +4 -0
- package/highlevel/types/premium/star-gift-unique.cjs +8 -0
- package/highlevel/types/premium/star-gift-unique.d.cts +4 -0
- package/highlevel/types/premium/star-gift-unique.d.ts +4 -0
- package/highlevel/types/premium/star-gift-unique.js +8 -0
- package/highlevel/types/premium/star-gift.cjs +17 -4
- package/highlevel/types/premium/star-gift.d.cts +8 -1
- package/highlevel/types/premium/star-gift.d.ts +8 -1
- package/highlevel/types/premium/star-gift.js +17 -4
- package/highlevel/types/premium/stars-transaction.cjs +6 -0
- package/highlevel/types/premium/stars-transaction.d.cts +6 -0
- package/highlevel/types/premium/stars-transaction.d.ts +6 -0
- package/highlevel/types/premium/stars-transaction.js +6 -0
- package/highlevel/updates/manager.cjs +7 -0
- package/highlevel/updates/manager.js +7 -0
- package/methods.cjs +45 -34
- package/methods.js +29 -18
- package/network/middlewares/internal-errors.cjs +5 -0
- package/network/middlewares/internal-errors.js +5 -0
- package/network/network-manager.cjs +1 -1
- package/network/network-manager.js +1 -1
- package/package.json +2 -2
- package/utils/binary/compat.cjs +12 -0
- package/utils/binary/compat.js +12 -0
- /package/highlevel/methods/{premium → gifts}/_normalize-input-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/_normalize-input-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/_normalize-input-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/_normalize-input-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/accept-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/accept-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/accept-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/accept-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/buy-resale-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/buy-resale-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/buy-resale-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/buy-resale-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-resale-star-gifts.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-resale-star-gifts.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-resale-star-gifts.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-resale-star-gifts.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts-by-id.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts-by-id.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts-by-id.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts-by-id.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-saved-star-gifts.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-options.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-options.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-options.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-options.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-value.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-value.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-value.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-value.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-withdrawal-url.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-withdrawal-url.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-withdrawal-url.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-star-gift-withdrawal-url.js +0 -0
- /package/highlevel/methods/{premium → gifts}/get-unique-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/get-unique-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-unique-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/get-unique-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/iter-saved-star-gifts.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/iter-saved-star-gifts.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/iter-saved-star-gifts.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/iter-saved-star-gifts.js +0 -0
- /package/highlevel/methods/{premium → gifts}/pin-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/pin-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/pin-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/pin-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/prepay-star-gift-upgrade.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/prepay-star-gift-upgrade.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/prepay-star-gift-upgrade.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/prepay-star-gift-upgrade.js +0 -0
- /package/highlevel/methods/{premium → gifts}/send-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/send-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/send-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/send-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/transfer-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/transfer-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/transfer-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/transfer-star-gift.js +0 -0
- /package/highlevel/methods/{premium → gifts}/upgrade-star-gift.cjs +0 -0
- /package/highlevel/methods/{premium → gifts}/upgrade-star-gift.d.cts +0 -0
- /package/highlevel/methods/{premium → gifts}/upgrade-star-gift.d.ts +0 -0
- /package/highlevel/methods/{premium → gifts}/upgrade-star-gift.js +0 -0
|
@@ -437,6 +437,8 @@ export interface ActionStarGiftSent {
|
|
|
437
437
|
upgradeMsgId: number | null;
|
|
438
438
|
/** Whether this gift was purchased on an auction */
|
|
439
439
|
fromAuction: boolean;
|
|
440
|
+
/** For limited-offer gifts, the sequential number of the gift */
|
|
441
|
+
giftNum?: number;
|
|
440
442
|
/** Recipient of the gift */
|
|
441
443
|
toId: Peer | null;
|
|
442
444
|
/** ID of the related saved profile gift */
|
|
@@ -482,6 +484,31 @@ export interface ActionStarGiftBoughtResale extends StarGiftUniqueCommon {
|
|
|
482
484
|
/** Number of stars/TON that were paid for the gift */
|
|
483
485
|
amount: tl.TypeStarsAmount;
|
|
484
486
|
}
|
|
487
|
+
/** A star gift was bought from a purchase offer */
|
|
488
|
+
export interface ActionStarGiftBoughtOffer extends StarGiftUniqueCommon {
|
|
489
|
+
readonly type: 'star_gift_bought_offer';
|
|
490
|
+
}
|
|
491
|
+
/** A purchase offer was created for one of the user's star gifts */
|
|
492
|
+
export interface ActionStarGiftPurchaseOffer {
|
|
493
|
+
readonly type: 'star_gift_purchase_offer';
|
|
494
|
+
/** Current status of the offer */
|
|
495
|
+
status: 'pending' | 'accepted' | 'declined';
|
|
496
|
+
/** Star gift */
|
|
497
|
+
gift: StarGiftUnique;
|
|
498
|
+
/** The amount of money that was offered for the gift */
|
|
499
|
+
price: tl.TypeStarsAmount;
|
|
500
|
+
/** Date when the offer will expire */
|
|
501
|
+
expiresAt: Date;
|
|
502
|
+
}
|
|
503
|
+
/** A purchase offer was declined or expired */
|
|
504
|
+
export interface ActionStarGiftPurchaseOfferDeclined {
|
|
505
|
+
readonly type: 'star_gift_purchase_offer_declined';
|
|
506
|
+
/** Whether the offer was auto-declined due to expiration */
|
|
507
|
+
expired: boolean;
|
|
508
|
+
gift: StarGiftUnique;
|
|
509
|
+
/** The amount of money refunded to the user who created the offer */
|
|
510
|
+
price: tl.TypeStarsAmount;
|
|
511
|
+
}
|
|
485
512
|
/** A star gift previously exported to the blockchain was assigned to your profile */
|
|
486
513
|
export interface ActionStarGiftAssigned extends StarGiftUniqueCommon {
|
|
487
514
|
readonly type: 'star_gift_assigned';
|
|
@@ -539,7 +566,7 @@ export interface ActionSuggestBirthday {
|
|
|
539
566
|
/** Birthday */
|
|
540
567
|
birthday: tl.RawBirthday;
|
|
541
568
|
}
|
|
542
|
-
export type MessageAction = ActionChatCreated | ActionChannelCreated | ActionChatMigrateTo | ActionChannelMigrateFrom | ActionMessagePinned | ActionHistoryCleared | ActionGameScore | ActionContactJoined | ActionTitleChanged | ActionPhotoChanged | ActionPhotoDeleted | ActionUsersAdded | ActionUserLeft | ActionUserRemoved | ActionUserJoinedLink | ActionPaymentReceived | ActionPaymentSent | ActionCall | ActionScreenshotTaken | ActionBotAllowed | ActionGeoProximity | ActionGroupCallStarted | ActionGroupCallEnded | ActionGroupCallScheduled | ActionGroupInvite | ActionTtlChanged | ActionTopicCreated | ActionTopicEdited | ActionCustom | ActionThemeChanged | ActionThemeChangedUnique | ActionUserJoinedApproved | ActionWebviewDataSent | ActionWebviewDataReceived | ActionPremiumGifted | ActionPhotoSuggested | ActionPeerSent | ActionPeerChosen | ActionWallpaperChanged | ActionGiftCode | ActionGiveawayStarted | ActionGiveawayEnded | ActionBoostApply | ActionPaymentRefunded | ActionStarGifted | ActionStarsPrize | ActionStarGiftSent | ActionStarGiftUpgradePaid | ActionStarGiftUpgraded | ActionStarGiftBoughtResale | ActionStarGiftTransferred | ActionStarGiftAssigned | ActionPaidMessagesPaid | ActionPaidMessagesRefunded | ActionTodoCompletions | ActionTodoAppendTasks | ActionTonGift | ActionSuggestBirthday | null;
|
|
569
|
+
export type MessageAction = ActionChatCreated | ActionChannelCreated | ActionChatMigrateTo | ActionChannelMigrateFrom | ActionMessagePinned | ActionHistoryCleared | ActionGameScore | ActionContactJoined | ActionTitleChanged | ActionPhotoChanged | ActionPhotoDeleted | ActionUsersAdded | ActionUserLeft | ActionUserRemoved | ActionUserJoinedLink | ActionPaymentReceived | ActionPaymentSent | ActionCall | ActionScreenshotTaken | ActionBotAllowed | ActionGeoProximity | ActionGroupCallStarted | ActionGroupCallEnded | ActionGroupCallScheduled | ActionGroupInvite | ActionTtlChanged | ActionTopicCreated | ActionTopicEdited | ActionCustom | ActionThemeChanged | ActionThemeChangedUnique | ActionUserJoinedApproved | ActionWebviewDataSent | ActionWebviewDataReceived | ActionPremiumGifted | ActionPhotoSuggested | ActionPeerSent | ActionPeerChosen | ActionWallpaperChanged | ActionGiftCode | ActionGiveawayStarted | ActionGiveawayEnded | ActionBoostApply | ActionPaymentRefunded | ActionStarGifted | ActionStarsPrize | ActionStarGiftSent | ActionStarGiftUpgradePaid | ActionStarGiftUpgraded | ActionStarGiftBoughtResale | ActionStarGiftTransferred | ActionStarGiftAssigned | ActionPaidMessagesPaid | ActionPaidMessagesRefunded | ActionTodoCompletions | ActionTodoAppendTasks | ActionTonGift | ActionSuggestBirthday | ActionStarGiftPurchaseOffer | ActionStarGiftPurchaseOfferDeclined | ActionStarGiftBoughtOffer | null;
|
|
543
570
|
/** @internal */
|
|
544
571
|
export declare function _messageActionFromTl(this: Message, act: tl.TypeMessageAction): MessageAction;
|
|
545
572
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { assert } from "@fuman/utils";
|
|
2
1
|
import Long from "long";
|
|
3
2
|
import { getMarkedPeerId } from "../../../utils/peer-utils.js";
|
|
4
3
|
import { Photo as Photo$2 } from "../media/photo.js";
|
|
@@ -178,7 +177,7 @@ function _messageActionFromTl(act) {
|
|
|
178
177
|
};
|
|
179
178
|
case "messageActionSetChatTheme":
|
|
180
179
|
if (act.theme._ === "chatThemeUniqueGift") {
|
|
181
|
-
|
|
180
|
+
if (act.theme.gift._ !== "starGiftUnique") return null;
|
|
182
181
|
return {
|
|
183
182
|
type: "theme_changed_unique",
|
|
184
183
|
gift: new StarGiftUnique$2(act.theme.gift, this._peers),
|
|
@@ -289,7 +288,7 @@ function _messageActionFromTl(act) {
|
|
|
289
288
|
giveawayMessageId: act.giveawayMsgId
|
|
290
289
|
};
|
|
291
290
|
case "messageActionStarGift":
|
|
292
|
-
|
|
291
|
+
if (act.gift._ !== "starGift") return null;
|
|
293
292
|
if (act.prepaidUpgrade) {
|
|
294
293
|
return {
|
|
295
294
|
type: "star_gift_upgrade_paid",
|
|
@@ -312,12 +311,13 @@ function _messageActionFromTl(act) {
|
|
|
312
311
|
upgradeStars: act.upgradeStars ?? Long.ZERO,
|
|
313
312
|
upgradeMsgId: act.upgradeMsgId ?? null,
|
|
314
313
|
fromAuction: act.auctionAcquired,
|
|
314
|
+
giftNum: act.giftNum,
|
|
315
315
|
toId: act.toId ? parsePeer(act.toId, this._peers) : null,
|
|
316
316
|
savedId: act.savedId,
|
|
317
317
|
prepaidUpgradeHash: act.prepaidUpgradeHash ?? void 0
|
|
318
318
|
};
|
|
319
319
|
case "messageActionStarGiftUnique": {
|
|
320
|
-
|
|
320
|
+
if (act.gift._ !== "starGiftUnique") return null;
|
|
321
321
|
const common = {
|
|
322
322
|
saved: act.saved,
|
|
323
323
|
refunded: act.refunded,
|
|
@@ -334,6 +334,12 @@ function _messageActionFromTl(act) {
|
|
|
334
334
|
...common
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
+
if (act.fromOffer) {
|
|
338
|
+
return {
|
|
339
|
+
type: "star_gift_bought_offer",
|
|
340
|
+
...common
|
|
341
|
+
};
|
|
342
|
+
}
|
|
337
343
|
if (act.resaleAmount) {
|
|
338
344
|
return {
|
|
339
345
|
type: "star_gift_bought_resale",
|
|
@@ -388,6 +394,23 @@ function _messageActionFromTl(act) {
|
|
|
388
394
|
type: "suggest_birthday",
|
|
389
395
|
birthday: act.birthday
|
|
390
396
|
};
|
|
397
|
+
case "messageActionStarGiftPurchaseOffer":
|
|
398
|
+
if (act.gift._ !== "starGiftUnique") return null;
|
|
399
|
+
return {
|
|
400
|
+
type: "star_gift_purchase_offer",
|
|
401
|
+
status: act.accepted ? "accepted" : act.declined ? "declined" : "pending",
|
|
402
|
+
gift: new StarGiftUnique$2(act.gift, this._peers),
|
|
403
|
+
price: act.price,
|
|
404
|
+
expiresAt: new Date(act.expiresAt * 1e3)
|
|
405
|
+
};
|
|
406
|
+
case "messageActionStarGiftPurchaseOfferDeclined":
|
|
407
|
+
if (act.gift._ !== "starGiftUnique") return null;
|
|
408
|
+
return {
|
|
409
|
+
type: "star_gift_purchase_offer_declined",
|
|
410
|
+
expired: act.expired,
|
|
411
|
+
gift: new StarGiftUnique$2(act.gift, this._peers),
|
|
412
|
+
price: act.price
|
|
413
|
+
};
|
|
391
414
|
default:
|
|
392
415
|
return null;
|
|
393
416
|
}
|
|
@@ -100,6 +100,10 @@ class SavedStarGift {
|
|
|
100
100
|
get prepaidUpgradeHash() {
|
|
101
101
|
return this.raw.prepaidUpgradeHash ?? null;
|
|
102
102
|
}
|
|
103
|
+
/** Number of the gift for limited-offer gifts */
|
|
104
|
+
get giftNum() {
|
|
105
|
+
return this.raw.giftNum ?? null;
|
|
106
|
+
}
|
|
103
107
|
}
|
|
104
108
|
const SavedStarGift$1 = /* @__PURE__ */ inspectable.makeInspectable(SavedStarGift);
|
|
105
109
|
const SavedStarGift$2 = /* @__PURE__ */ memoize.memoizeGetters(SavedStarGift$1, ["sender", "gift"]);
|
|
@@ -50,4 +50,6 @@ export declare class SavedStarGift {
|
|
|
50
50
|
* If available, you can pay for this gift's upgrade by passing this hash to `prepayStarGiftUpgrade`
|
|
51
51
|
*/
|
|
52
52
|
get prepaidUpgradeHash(): string | null;
|
|
53
|
+
/** Number of the gift for limited-offer gifts */
|
|
54
|
+
get giftNum(): number | null;
|
|
53
55
|
}
|
|
@@ -50,4 +50,6 @@ export declare class SavedStarGift {
|
|
|
50
50
|
* If available, you can pay for this gift's upgrade by passing this hash to `prepayStarGiftUpgrade`
|
|
51
51
|
*/
|
|
52
52
|
get prepaidUpgradeHash(): string | null;
|
|
53
|
+
/** Number of the gift for limited-offer gifts */
|
|
54
|
+
get giftNum(): number | null;
|
|
53
55
|
}
|
|
@@ -93,6 +93,10 @@ class SavedStarGift {
|
|
|
93
93
|
get prepaidUpgradeHash() {
|
|
94
94
|
return this.raw.prepaidUpgradeHash ?? null;
|
|
95
95
|
}
|
|
96
|
+
/** Number of the gift for limited-offer gifts */
|
|
97
|
+
get giftNum() {
|
|
98
|
+
return this.raw.giftNum ?? null;
|
|
99
|
+
}
|
|
96
100
|
}
|
|
97
101
|
const SavedStarGift$1 = /* @__PURE__ */ makeInspectable(SavedStarGift);
|
|
98
102
|
const SavedStarGift$2 = /* @__PURE__ */ memoizeGetters(SavedStarGift$1, ["sender", "gift"]);
|
|
@@ -238,6 +238,14 @@ class StarGiftUnique {
|
|
|
238
238
|
if (!this.raw.releasedBy) return null;
|
|
239
239
|
return peer.parsePeer(this.raw.releasedBy, this._peers);
|
|
240
240
|
}
|
|
241
|
+
/** Value of the gift in USD */
|
|
242
|
+
get valueUsd() {
|
|
243
|
+
return this.raw.valueUsdAmount ?? null;
|
|
244
|
+
}
|
|
245
|
+
/** Minimum number of stars required to create a purchase offer for the gift */
|
|
246
|
+
get offerMinStars() {
|
|
247
|
+
return this.raw.offerMinStars ?? null;
|
|
248
|
+
}
|
|
241
249
|
}
|
|
242
250
|
const StarGiftUnique$1 = /* @__PURE__ */ inspectable.makeInspectable(StarGiftUnique);
|
|
243
251
|
const StarGiftUnique$2 = /* @__PURE__ */ memoize.memoizeGetters(StarGiftUnique$1, [
|
|
@@ -121,4 +121,8 @@ export declare class StarGiftUnique {
|
|
|
121
121
|
* User/channel who released this collection
|
|
122
122
|
*/
|
|
123
123
|
get releasedBy(): Peer | null;
|
|
124
|
+
/** Value of the gift in USD */
|
|
125
|
+
get valueUsd(): tl.Long | null;
|
|
126
|
+
/** Minimum number of stars required to create a purchase offer for the gift */
|
|
127
|
+
get offerMinStars(): number | null;
|
|
124
128
|
}
|
|
@@ -121,4 +121,8 @@ export declare class StarGiftUnique {
|
|
|
121
121
|
* User/channel who released this collection
|
|
122
122
|
*/
|
|
123
123
|
get releasedBy(): Peer | null;
|
|
124
|
+
/** Value of the gift in USD */
|
|
125
|
+
get valueUsd(): tl.Long | null;
|
|
126
|
+
/** Minimum number of stars required to create a purchase offer for the gift */
|
|
127
|
+
get offerMinStars(): number | null;
|
|
124
128
|
}
|
|
@@ -231,6 +231,14 @@ class StarGiftUnique {
|
|
|
231
231
|
if (!this.raw.releasedBy) return null;
|
|
232
232
|
return parsePeer(this.raw.releasedBy, this._peers);
|
|
233
233
|
}
|
|
234
|
+
/** Value of the gift in USD */
|
|
235
|
+
get valueUsd() {
|
|
236
|
+
return this.raw.valueUsdAmount ?? null;
|
|
237
|
+
}
|
|
238
|
+
/** Minimum number of stars required to create a purchase offer for the gift */
|
|
239
|
+
get offerMinStars() {
|
|
240
|
+
return this.raw.offerMinStars ?? null;
|
|
241
|
+
}
|
|
234
242
|
}
|
|
235
243
|
const StarGiftUnique$1 = /* @__PURE__ */ makeInspectable(StarGiftUnique);
|
|
236
244
|
const StarGiftUnique$2 = /* @__PURE__ */ memoizeGetters(StarGiftUnique$1, [
|
|
@@ -34,13 +34,18 @@ class StarGift {
|
|
|
34
34
|
return this.raw.requirePremium;
|
|
35
35
|
}
|
|
36
36
|
/** If this gift is currently sold through an auction, info about that auction. `null` otherwise */
|
|
37
|
-
get
|
|
38
|
-
if (!this.raw.auctionSlug || this.raw.giftsPerRound == null) return null;
|
|
37
|
+
get auction() {
|
|
38
|
+
if (!this.raw.auctionSlug || this.raw.giftsPerRound == null || !this.raw.auctionStartDate) return null;
|
|
39
39
|
return {
|
|
40
40
|
slug: this.raw.auctionSlug,
|
|
41
|
-
giftsPerRound: this.raw.giftsPerRound
|
|
41
|
+
giftsPerRound: this.raw.giftsPerRound,
|
|
42
|
+
startDate: new Date(this.raw.auctionStartDate * 1e3)
|
|
42
43
|
};
|
|
43
44
|
}
|
|
45
|
+
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
46
|
+
get action() {
|
|
47
|
+
return this.auction;
|
|
48
|
+
}
|
|
44
49
|
/** Whether this gift includes a peer color that can be applied to user's profile */
|
|
45
50
|
get hasPeerColor() {
|
|
46
51
|
return this.raw.peerColorAvailable;
|
|
@@ -123,7 +128,15 @@ class StarGift {
|
|
|
123
128
|
if (!this.raw.releasedBy) return null;
|
|
124
129
|
return peer.parsePeer(this.raw.releasedBy, this._peers);
|
|
125
130
|
}
|
|
131
|
+
/** Number of unique upgrade variants that will be available for the gift */
|
|
132
|
+
get upgradeVariants() {
|
|
133
|
+
return this.raw.upgradeVariants ?? 0;
|
|
134
|
+
}
|
|
135
|
+
/** Background color of the gift */
|
|
136
|
+
get background() {
|
|
137
|
+
return this.raw.background ?? null;
|
|
138
|
+
}
|
|
126
139
|
}
|
|
127
140
|
const StarGift$1 = /* @__PURE__ */ inspectable.makeInspectable(StarGift);
|
|
128
|
-
const StarGift$2 = /* @__PURE__ */ memoize.memoizeGetters(StarGift$1, ["sticker"]);
|
|
141
|
+
const StarGift$2 = /* @__PURE__ */ memoize.memoizeGetters(StarGift$1, ["sticker", "auction"]);
|
|
129
142
|
exports.StarGift = StarGift$2;
|
|
@@ -29,10 +29,13 @@ export declare class StarGift {
|
|
|
29
29
|
/** Whether this gift is available only to premium users */
|
|
30
30
|
get isPremiumOnly(): boolean;
|
|
31
31
|
/** If this gift is currently sold through an auction, info about that auction. `null` otherwise */
|
|
32
|
-
get
|
|
32
|
+
get auction(): {
|
|
33
33
|
slug: string;
|
|
34
34
|
giftsPerRound: number;
|
|
35
|
+
startDate: Date;
|
|
35
36
|
} | null;
|
|
37
|
+
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
38
|
+
get action(): this['auction'];
|
|
36
39
|
/** Whether this gift includes a peer color that can be applied to user's profile */
|
|
37
40
|
get hasPeerColor(): boolean;
|
|
38
41
|
/** Whether this gift is a unique gift */
|
|
@@ -82,4 +85,8 @@ export declare class StarGift {
|
|
|
82
85
|
* User/channel who released this collection
|
|
83
86
|
*/
|
|
84
87
|
get releasedBy(): Peer | null;
|
|
88
|
+
/** Number of unique upgrade variants that will be available for the gift */
|
|
89
|
+
get upgradeVariants(): number;
|
|
90
|
+
/** Background color of the gift */
|
|
91
|
+
get background(): tl.TypeStarGiftBackground | null;
|
|
85
92
|
}
|
|
@@ -29,10 +29,13 @@ export declare class StarGift {
|
|
|
29
29
|
/** Whether this gift is available only to premium users */
|
|
30
30
|
get isPremiumOnly(): boolean;
|
|
31
31
|
/** If this gift is currently sold through an auction, info about that auction. `null` otherwise */
|
|
32
|
-
get
|
|
32
|
+
get auction(): {
|
|
33
33
|
slug: string;
|
|
34
34
|
giftsPerRound: number;
|
|
35
|
+
startDate: Date;
|
|
35
36
|
} | null;
|
|
37
|
+
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
38
|
+
get action(): this['auction'];
|
|
36
39
|
/** Whether this gift includes a peer color that can be applied to user's profile */
|
|
37
40
|
get hasPeerColor(): boolean;
|
|
38
41
|
/** Whether this gift is a unique gift */
|
|
@@ -82,4 +85,8 @@ export declare class StarGift {
|
|
|
82
85
|
* User/channel who released this collection
|
|
83
86
|
*/
|
|
84
87
|
get releasedBy(): Peer | null;
|
|
88
|
+
/** Number of unique upgrade variants that will be available for the gift */
|
|
89
|
+
get upgradeVariants(): number;
|
|
90
|
+
/** Background color of the gift */
|
|
91
|
+
get background(): tl.TypeStarGiftBackground | null;
|
|
85
92
|
}
|
|
@@ -27,13 +27,18 @@ class StarGift {
|
|
|
27
27
|
return this.raw.requirePremium;
|
|
28
28
|
}
|
|
29
29
|
/** If this gift is currently sold through an auction, info about that auction. `null` otherwise */
|
|
30
|
-
get
|
|
31
|
-
if (!this.raw.auctionSlug || this.raw.giftsPerRound == null) return null;
|
|
30
|
+
get auction() {
|
|
31
|
+
if (!this.raw.auctionSlug || this.raw.giftsPerRound == null || !this.raw.auctionStartDate) return null;
|
|
32
32
|
return {
|
|
33
33
|
slug: this.raw.auctionSlug,
|
|
34
|
-
giftsPerRound: this.raw.giftsPerRound
|
|
34
|
+
giftsPerRound: this.raw.giftsPerRound,
|
|
35
|
+
startDate: new Date(this.raw.auctionStartDate * 1e3)
|
|
35
36
|
};
|
|
36
37
|
}
|
|
38
|
+
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
39
|
+
get action() {
|
|
40
|
+
return this.auction;
|
|
41
|
+
}
|
|
37
42
|
/** Whether this gift includes a peer color that can be applied to user's profile */
|
|
38
43
|
get hasPeerColor() {
|
|
39
44
|
return this.raw.peerColorAvailable;
|
|
@@ -116,9 +121,17 @@ class StarGift {
|
|
|
116
121
|
if (!this.raw.releasedBy) return null;
|
|
117
122
|
return parsePeer(this.raw.releasedBy, this._peers);
|
|
118
123
|
}
|
|
124
|
+
/** Number of unique upgrade variants that will be available for the gift */
|
|
125
|
+
get upgradeVariants() {
|
|
126
|
+
return this.raw.upgradeVariants ?? 0;
|
|
127
|
+
}
|
|
128
|
+
/** Background color of the gift */
|
|
129
|
+
get background() {
|
|
130
|
+
return this.raw.background ?? null;
|
|
131
|
+
}
|
|
119
132
|
}
|
|
120
133
|
const StarGift$1 = /* @__PURE__ */ makeInspectable(StarGift);
|
|
121
|
-
const StarGift$2 = /* @__PURE__ */ memoizeGetters(StarGift$1, ["sticker"]);
|
|
134
|
+
const StarGift$2 = /* @__PURE__ */ memoizeGetters(StarGift$1, ["sticker", "auction"]);
|
|
122
135
|
export {
|
|
123
136
|
StarGift$2 as StarGift
|
|
124
137
|
};
|
|
@@ -147,6 +147,12 @@ class StarsTransaction {
|
|
|
147
147
|
peer: peer$1,
|
|
148
148
|
gift: new starGiftUnique.StarGiftUnique(this.raw.stargift, this.peers)
|
|
149
149
|
};
|
|
150
|
+
} else if (this.raw.offer) {
|
|
151
|
+
return {
|
|
152
|
+
type: "star_gift_offer",
|
|
153
|
+
peer: peer$1,
|
|
154
|
+
gift: new starGiftUnique.StarGiftUnique(this.raw.stargift, this.peers)
|
|
155
|
+
};
|
|
150
156
|
} else {
|
|
151
157
|
return {
|
|
152
158
|
type: "star_gift_transfer",
|
|
@@ -137,6 +137,12 @@ export type StarsTransactionType = {
|
|
|
137
137
|
recipient: Peer;
|
|
138
138
|
/** The upgraded gift */
|
|
139
139
|
gift: StarGiftUnique;
|
|
140
|
+
} | {
|
|
141
|
+
type: 'star_gift_offer';
|
|
142
|
+
/** Related peer */
|
|
143
|
+
peer: Peer;
|
|
144
|
+
/** The gift that was offered for sale */
|
|
145
|
+
gift: StarGiftUnique;
|
|
140
146
|
} | {
|
|
141
147
|
type: 'paid_message';
|
|
142
148
|
/** Related peer */
|
|
@@ -137,6 +137,12 @@ export type StarsTransactionType = {
|
|
|
137
137
|
recipient: Peer;
|
|
138
138
|
/** The upgraded gift */
|
|
139
139
|
gift: StarGiftUnique;
|
|
140
|
+
} | {
|
|
141
|
+
type: 'star_gift_offer';
|
|
142
|
+
/** Related peer */
|
|
143
|
+
peer: Peer;
|
|
144
|
+
/** The gift that was offered for sale */
|
|
145
|
+
gift: StarGiftUnique;
|
|
140
146
|
} | {
|
|
141
147
|
type: 'paid_message';
|
|
142
148
|
/** Related peer */
|
|
@@ -140,6 +140,12 @@ class StarsTransaction {
|
|
|
140
140
|
peer,
|
|
141
141
|
gift: new StarGiftUnique$2(this.raw.stargift, this.peers)
|
|
142
142
|
};
|
|
143
|
+
} else if (this.raw.offer) {
|
|
144
|
+
return {
|
|
145
|
+
type: "star_gift_offer",
|
|
146
|
+
peer,
|
|
147
|
+
gift: new StarGiftUnique$2(this.raw.stargift, this.peers)
|
|
148
|
+
};
|
|
143
149
|
} else {
|
|
144
150
|
return {
|
|
145
151
|
type: "star_gift_transfer",
|
|
@@ -720,6 +720,11 @@ class UpdatesManager {
|
|
|
720
720
|
channelId,
|
|
721
721
|
this._fetchChannelDifference(channelId, fallbackPts).catch((err) => {
|
|
722
722
|
this.log.warn("error fetching difference for %d: %e", channelId, err);
|
|
723
|
+
if (tl.tl.RpcError.is("PERSISTENT_TIMESTAMP_INVALID")) {
|
|
724
|
+
this.log.warn("received PERSISTENT_TIMESTAMP_INVALID, resetting channel pts value");
|
|
725
|
+
this.cpts.delete(channelId);
|
|
726
|
+
this.cptsMod.delete(channelId);
|
|
727
|
+
}
|
|
723
728
|
}).then((ok) => {
|
|
724
729
|
requestedDiff.delete(channelId);
|
|
725
730
|
if (!ok) {
|
|
@@ -821,6 +826,7 @@ class UpdatesManager {
|
|
|
821
826
|
}
|
|
822
827
|
this.log.warn("error fetching common difference: %e", err);
|
|
823
828
|
if (tl.tl.RpcError.is(err, "PERSISTENT_TIMESTAMP_INVALID")) {
|
|
829
|
+
this.log.warn("received PERSISTENT_TIMESTAMP_INVALID, re-fetching updates state");
|
|
824
830
|
return this._fetchUpdatesState();
|
|
825
831
|
}
|
|
826
832
|
}).then(() => {
|
|
@@ -1464,6 +1470,7 @@ class UpdatesManager {
|
|
|
1464
1470
|
}
|
|
1465
1471
|
log.debug("updates loop stopped");
|
|
1466
1472
|
} catch (e) {
|
|
1473
|
+
if (this.client.destroyed) return;
|
|
1467
1474
|
log.error("updates loop encountered error, restarting: %s", e);
|
|
1468
1475
|
return this._loop();
|
|
1469
1476
|
}
|
|
@@ -713,6 +713,11 @@ class UpdatesManager {
|
|
|
713
713
|
channelId,
|
|
714
714
|
this._fetchChannelDifference(channelId, fallbackPts).catch((err) => {
|
|
715
715
|
this.log.warn("error fetching difference for %d: %e", channelId, err);
|
|
716
|
+
if (tl.RpcError.is("PERSISTENT_TIMESTAMP_INVALID")) {
|
|
717
|
+
this.log.warn("received PERSISTENT_TIMESTAMP_INVALID, resetting channel pts value");
|
|
718
|
+
this.cpts.delete(channelId);
|
|
719
|
+
this.cptsMod.delete(channelId);
|
|
720
|
+
}
|
|
716
721
|
}).then((ok) => {
|
|
717
722
|
requestedDiff.delete(channelId);
|
|
718
723
|
if (!ok) {
|
|
@@ -814,6 +819,7 @@ class UpdatesManager {
|
|
|
814
819
|
}
|
|
815
820
|
this.log.warn("error fetching common difference: %e", err);
|
|
816
821
|
if (tl.RpcError.is(err, "PERSISTENT_TIMESTAMP_INVALID")) {
|
|
822
|
+
this.log.warn("received PERSISTENT_TIMESTAMP_INVALID, re-fetching updates state");
|
|
817
823
|
return this._fetchUpdatesState();
|
|
818
824
|
}
|
|
819
825
|
}).then(() => {
|
|
@@ -1457,6 +1463,7 @@ class UpdatesManager {
|
|
|
1457
1463
|
}
|
|
1458
1464
|
log.debug("updates loop stopped");
|
|
1459
1465
|
} catch (e) {
|
|
1466
|
+
if (this.client.destroyed) return;
|
|
1460
1467
|
log.error("updates loop encountered error, restarting: %s", e);
|
|
1461
1468
|
return this._loop();
|
|
1462
1469
|
}
|
package/methods.cjs
CHANGED
|
@@ -87,6 +87,7 @@ const addContact = require("./highlevel/methods/contacts/add-contact.cjs");
|
|
|
87
87
|
const deleteContacts = require("./highlevel/methods/contacts/delete-contacts.cjs");
|
|
88
88
|
const getContacts = require("./highlevel/methods/contacts/get-contacts.cjs");
|
|
89
89
|
const importContacts = require("./highlevel/methods/contacts/import-contacts.cjs");
|
|
90
|
+
const setContactNote = require("./highlevel/methods/contacts/set-contact-note.cjs");
|
|
90
91
|
const createFolder = require("./highlevel/methods/dialogs/create-folder.cjs");
|
|
91
92
|
const deleteFolder = require("./highlevel/methods/dialogs/delete-folder.cjs");
|
|
92
93
|
const editFolder = require("./highlevel/methods/dialogs/edit-folder.cjs");
|
|
@@ -99,6 +100,7 @@ const iterDialogs = require("./highlevel/methods/dialogs/iter-dialogs.cjs");
|
|
|
99
100
|
const joinChatlist = require("./highlevel/methods/dialogs/join-chatlist.cjs");
|
|
100
101
|
const setFoldersOrder = require("./highlevel/methods/dialogs/set-folders-order.cjs");
|
|
101
102
|
const downloadBuffer = require("./highlevel/methods/files/download-buffer.cjs");
|
|
103
|
+
const downloadChunk = require("./highlevel/methods/files/download-chunk.cjs");
|
|
102
104
|
const downloadIterable = require("./highlevel/methods/files/download-iterable.cjs");
|
|
103
105
|
const downloadStream = require("./highlevel/methods/files/download-stream.cjs");
|
|
104
106
|
const normalizeInputFile = require("./highlevel/methods/files/normalize-input-file.cjs");
|
|
@@ -116,6 +118,26 @@ const toggleForumTopicClosed = require("./highlevel/methods/forums/toggle-forum-
|
|
|
116
118
|
const toggleForumTopicPinned = require("./highlevel/methods/forums/toggle-forum-topic-pinned.cjs");
|
|
117
119
|
const toggleForum = require("./highlevel/methods/forums/toggle-forum.cjs");
|
|
118
120
|
const toggleGeneralTopicHidden = require("./highlevel/methods/forums/toggle-general-topic-hidden.cjs");
|
|
121
|
+
const _normalizeInputStarGift = require("./highlevel/methods/gifts/_normalize-input-star-gift.cjs");
|
|
122
|
+
const acceptStarGift = require("./highlevel/methods/gifts/accept-star-gift.cjs");
|
|
123
|
+
const buyResaleGift = require("./highlevel/methods/gifts/buy-resale-gift.cjs");
|
|
124
|
+
const getResaleStarGifts = require("./highlevel/methods/gifts/get-resale-star-gifts.cjs");
|
|
125
|
+
const getSavedStarGiftsById = require("./highlevel/methods/gifts/get-saved-star-gifts-by-id.cjs");
|
|
126
|
+
const getSavedStarGifts = require("./highlevel/methods/gifts/get-saved-star-gifts.cjs");
|
|
127
|
+
const getStarGiftOptions = require("./highlevel/methods/gifts/get-star-gift-options.cjs");
|
|
128
|
+
const getStarGiftUpgradeOptions = require("./highlevel/methods/gifts/get-star-gift-upgrade-options.cjs");
|
|
129
|
+
const getStarGiftValue = require("./highlevel/methods/gifts/get-star-gift-value.cjs");
|
|
130
|
+
const getStarGiftWithdrawalUrl = require("./highlevel/methods/gifts/get-star-gift-withdrawal-url.cjs");
|
|
131
|
+
const getUniqueStarGift = require("./highlevel/methods/gifts/get-unique-star-gift.cjs");
|
|
132
|
+
const iterSavedStarGifts = require("./highlevel/methods/gifts/iter-saved-star-gifts.cjs");
|
|
133
|
+
const pinStarGift = require("./highlevel/methods/gifts/pin-star-gift.cjs");
|
|
134
|
+
const prepayStarGiftUpgrade = require("./highlevel/methods/gifts/prepay-star-gift-upgrade.cjs");
|
|
135
|
+
const resolveStarGiftOffer = require("./highlevel/methods/gifts/resolve-star-gift-offer.cjs");
|
|
136
|
+
const sendStarGiftOffer = require("./highlevel/methods/gifts/send-star-gift-offer.cjs");
|
|
137
|
+
const sendStarGift = require("./highlevel/methods/gifts/send-star-gift.cjs");
|
|
138
|
+
const setGiftResalePrice = require("./highlevel/methods/gifts/set-gift-resale-price.cjs");
|
|
139
|
+
const transferStarGift = require("./highlevel/methods/gifts/transfer-star-gift.cjs");
|
|
140
|
+
const upgradeStarGift = require("./highlevel/methods/gifts/upgrade-star-gift.cjs");
|
|
119
141
|
const createInviteLink = require("./highlevel/methods/invite-links/create-invite-link.cjs");
|
|
120
142
|
const editInviteLink = require("./highlevel/methods/invite-links/edit-invite-link.cjs");
|
|
121
143
|
const exportInviteLink = require("./highlevel/methods/invite-links/export-invite-link.cjs");
|
|
@@ -188,10 +210,7 @@ const changeCloudPassword = require("./highlevel/methods/password/change-cloud-p
|
|
|
188
210
|
const enableCloudPassword = require("./highlevel/methods/password/enable-cloud-password.cjs");
|
|
189
211
|
const passwordEmail = require("./highlevel/methods/password/password-email.cjs");
|
|
190
212
|
const removeCloudPassword = require("./highlevel/methods/password/remove-cloud-password.cjs");
|
|
191
|
-
const _normalizeInputStarGift = require("./highlevel/methods/premium/_normalize-input-star-gift.cjs");
|
|
192
|
-
const acceptStarGift = require("./highlevel/methods/premium/accept-star-gift.cjs");
|
|
193
213
|
const applyBoost = require("./highlevel/methods/premium/apply-boost.cjs");
|
|
194
|
-
const buyResaleGift = require("./highlevel/methods/premium/buy-resale-gift.cjs");
|
|
195
214
|
const canApplyBoost = require("./highlevel/methods/premium/can-apply-boost.cjs");
|
|
196
215
|
const createBusinessChatLink = require("./highlevel/methods/premium/create-business-chat-link.cjs");
|
|
197
216
|
const editBusinessChatLink = require("./highlevel/methods/premium/edit-business-chat-link.cjs");
|
|
@@ -200,25 +219,11 @@ const getBoosts = require("./highlevel/methods/premium/get-boosts.cjs");
|
|
|
200
219
|
const getBusinessChatLinks = require("./highlevel/methods/premium/get-business-chat-links.cjs");
|
|
201
220
|
const getBusinessConnection = require("./highlevel/methods/premium/get-business-connection.cjs");
|
|
202
221
|
const getMyBoostSlots = require("./highlevel/methods/premium/get-my-boost-slots.cjs");
|
|
203
|
-
const getResaleStarGifts = require("./highlevel/methods/premium/get-resale-star-gifts.cjs");
|
|
204
|
-
const getSavedStarGiftsById = require("./highlevel/methods/premium/get-saved-star-gifts-by-id.cjs");
|
|
205
|
-
const getSavedStarGifts = require("./highlevel/methods/premium/get-saved-star-gifts.cjs");
|
|
206
|
-
const getStarGiftOptions = require("./highlevel/methods/premium/get-star-gift-options.cjs");
|
|
207
|
-
const getStarGiftValue = require("./highlevel/methods/premium/get-star-gift-value.cjs");
|
|
208
|
-
const getStarGiftWithdrawalUrl = require("./highlevel/methods/premium/get-star-gift-withdrawal-url.cjs");
|
|
209
222
|
const getStarsTransactions = require("./highlevel/methods/premium/get-stars-transactions.cjs");
|
|
210
|
-
const getUniqueStarGift = require("./highlevel/methods/premium/get-unique-star-gift.cjs");
|
|
211
223
|
const iterBoosters = require("./highlevel/methods/premium/iter-boosters.cjs");
|
|
212
|
-
const iterSavedStarGifts = require("./highlevel/methods/premium/iter-saved-star-gifts.cjs");
|
|
213
224
|
const iterStarsTransactions = require("./highlevel/methods/premium/iter-stars-transactions.cjs");
|
|
214
|
-
const pinStarGift = require("./highlevel/methods/premium/pin-star-gift.cjs");
|
|
215
|
-
const prepayStarGiftUpgrade = require("./highlevel/methods/premium/prepay-star-gift-upgrade.cjs");
|
|
216
|
-
const sendStarGift = require("./highlevel/methods/premium/send-star-gift.cjs");
|
|
217
225
|
const setBusinessIntro = require("./highlevel/methods/premium/set-business-intro.cjs");
|
|
218
226
|
const setBusinessWorkHours = require("./highlevel/methods/premium/set-business-work-hours.cjs");
|
|
219
|
-
const setGiftResalePrice = require("./highlevel/methods/premium/set-gift-resale-price.cjs");
|
|
220
|
-
const transferStarGift = require("./highlevel/methods/premium/transfer-star-gift.cjs");
|
|
221
|
-
const upgradeStarGift = require("./highlevel/methods/premium/upgrade-star-gift.cjs");
|
|
222
227
|
const addStickerToSet = require("./highlevel/methods/stickers/add-sticker-to-set.cjs");
|
|
223
228
|
const createStickerSet = require("./highlevel/methods/stickers/create-sticker-set.cjs");
|
|
224
229
|
const deleteStickerFromSet = require("./highlevel/methods/stickers/delete-sticker-from-set.cjs");
|
|
@@ -362,6 +367,7 @@ exports.addContact = addContact.addContact;
|
|
|
362
367
|
exports.deleteContacts = deleteContacts.deleteContacts;
|
|
363
368
|
exports.getContacts = getContacts.getContacts;
|
|
364
369
|
exports.importContacts = importContacts.importContacts;
|
|
370
|
+
exports.setContactNote = setContactNote.setContactNote;
|
|
365
371
|
exports.createFolder = createFolder.createFolder;
|
|
366
372
|
exports.deleteFolder = deleteFolder.deleteFolder;
|
|
367
373
|
exports.editFolder = editFolder.editFolder;
|
|
@@ -374,6 +380,8 @@ exports.iterDialogs = iterDialogs.iterDialogs;
|
|
|
374
380
|
exports.joinChatlist = joinChatlist.joinChatlist;
|
|
375
381
|
exports.setFoldersOrder = setFoldersOrder.setFoldersOrder;
|
|
376
382
|
exports.downloadAsBuffer = downloadBuffer.downloadAsBuffer;
|
|
383
|
+
exports.downloadChunk = downloadChunk.downloadChunk;
|
|
384
|
+
exports._normalizeFileDownloadLocation = downloadIterable._normalizeFileDownloadLocation;
|
|
377
385
|
exports.downloadAsIterable = downloadIterable.downloadAsIterable;
|
|
378
386
|
exports.downloadAsStream = downloadStream.downloadAsStream;
|
|
379
387
|
exports._normalizeInputFile = normalizeInputFile._normalizeInputFile;
|
|
@@ -391,6 +399,26 @@ exports.toggleForumTopicClosed = toggleForumTopicClosed.toggleForumTopicClosed;
|
|
|
391
399
|
exports.toggleForumTopicPinned = toggleForumTopicPinned.toggleForumTopicPinned;
|
|
392
400
|
exports.updateForumSettings = toggleForum.updateForumSettings;
|
|
393
401
|
exports.toggleGeneralTopicHidden = toggleGeneralTopicHidden.toggleGeneralTopicHidden;
|
|
402
|
+
exports._normalizeInputStarGift = _normalizeInputStarGift._normalizeInputStarGift;
|
|
403
|
+
exports.acceptStarGift = acceptStarGift.acceptStarGift;
|
|
404
|
+
exports.buyResaleGift = buyResaleGift.buyResaleGift;
|
|
405
|
+
exports.getStarGiftResaleOptions = getResaleStarGifts.getStarGiftResaleOptions;
|
|
406
|
+
exports.getSavedStarGiftsById = getSavedStarGiftsById.getSavedStarGiftsById;
|
|
407
|
+
exports.getSavedStarGifts = getSavedStarGifts.getSavedStarGifts;
|
|
408
|
+
exports.getStarGiftOptions = getStarGiftOptions.getStarGiftOptions;
|
|
409
|
+
exports.getStarGiftUpgradeOptions = getStarGiftUpgradeOptions.getStarGiftUpgradeOptions;
|
|
410
|
+
exports.getStarGiftValue = getStarGiftValue.getStarGiftValue;
|
|
411
|
+
exports.getStarGiftWithdrawalUrl = getStarGiftWithdrawalUrl.getStarGiftWithdrawalUrl;
|
|
412
|
+
exports.getUniqueStarGift = getUniqueStarGift.getUniqueStarGift;
|
|
413
|
+
exports.iterSavedStarGifts = iterSavedStarGifts.iterSavedStarGifts;
|
|
414
|
+
exports.togglePinnedStarGifts = pinStarGift.togglePinnedStarGifts;
|
|
415
|
+
exports.prepayStarGiftUpgrade = prepayStarGiftUpgrade.prepayStarGiftUpgrade;
|
|
416
|
+
exports.resolveStarGiftOffer = resolveStarGiftOffer.resolveStarGiftOffer;
|
|
417
|
+
exports.sendStarGiftOffer = sendStarGiftOffer.sendStarGiftOffer;
|
|
418
|
+
exports.sendStarGift = sendStarGift.sendStarGift;
|
|
419
|
+
exports.setResaleStarGiftPrice = setGiftResalePrice.setResaleStarGiftPrice;
|
|
420
|
+
exports.transferStarGift = transferStarGift.transferStarGift;
|
|
421
|
+
exports.upgradeStarGift = upgradeStarGift.upgradeStarGift;
|
|
394
422
|
exports.createInviteLink = createInviteLink.createInviteLink;
|
|
395
423
|
exports.editInviteLink = editInviteLink.editInviteLink;
|
|
396
424
|
exports.exportInviteLink = exportInviteLink.exportInviteLink;
|
|
@@ -477,10 +505,7 @@ exports.cancelPasswordEmail = passwordEmail.cancelPasswordEmail;
|
|
|
477
505
|
exports.resendPasswordEmail = passwordEmail.resendPasswordEmail;
|
|
478
506
|
exports.verifyPasswordEmail = passwordEmail.verifyPasswordEmail;
|
|
479
507
|
exports.removeCloudPassword = removeCloudPassword.removeCloudPassword;
|
|
480
|
-
exports._normalizeInputStarGift = _normalizeInputStarGift._normalizeInputStarGift;
|
|
481
|
-
exports.acceptStarGift = acceptStarGift.acceptStarGift;
|
|
482
508
|
exports.applyBoost = applyBoost.applyBoost;
|
|
483
|
-
exports.buyResaleGift = buyResaleGift.buyResaleGift;
|
|
484
509
|
exports.canApplyBoost = canApplyBoost.canApplyBoost;
|
|
485
510
|
exports.createBusinessChatLink = createBusinessChatLink.createBusinessChatLink;
|
|
486
511
|
exports.deleteBusinessChatLink = editBusinessChatLink.deleteBusinessChatLink;
|
|
@@ -490,25 +515,11 @@ exports.getBoosts = getBoosts.getBoosts;
|
|
|
490
515
|
exports.getBusinessChatLinks = getBusinessChatLinks.getBusinessChatLinks;
|
|
491
516
|
exports.getBusinessConnection = getBusinessConnection.getBusinessConnection;
|
|
492
517
|
exports.getMyBoostSlots = getMyBoostSlots.getMyBoostSlots;
|
|
493
|
-
exports.getStarGiftResaleOptions = getResaleStarGifts.getStarGiftResaleOptions;
|
|
494
|
-
exports.getSavedStarGiftsById = getSavedStarGiftsById.getSavedStarGiftsById;
|
|
495
|
-
exports.getSavedStarGifts = getSavedStarGifts.getSavedStarGifts;
|
|
496
|
-
exports.getStarGiftOptions = getStarGiftOptions.getStarGiftOptions;
|
|
497
|
-
exports.getStarGiftValue = getStarGiftValue.getStarGiftValue;
|
|
498
|
-
exports.getStarGiftWithdrawalUrl = getStarGiftWithdrawalUrl.getStarGiftWithdrawalUrl;
|
|
499
518
|
exports.getStarsTransactions = getStarsTransactions.getStarsTransactions;
|
|
500
|
-
exports.getUniqueStarGift = getUniqueStarGift.getUniqueStarGift;
|
|
501
519
|
exports.iterBoosters = iterBoosters.iterBoosters;
|
|
502
|
-
exports.iterSavedStarGifts = iterSavedStarGifts.iterSavedStarGifts;
|
|
503
520
|
exports.iterStarsTransactions = iterStarsTransactions.iterStarsTransactions;
|
|
504
|
-
exports.togglePinnedStarGifts = pinStarGift.togglePinnedStarGifts;
|
|
505
|
-
exports.prepayStarGiftUpgrade = prepayStarGiftUpgrade.prepayStarGiftUpgrade;
|
|
506
|
-
exports.sendStarGift = sendStarGift.sendStarGift;
|
|
507
521
|
exports.setBusinessIntro = setBusinessIntro.setBusinessIntro;
|
|
508
522
|
exports.setBusinessWorkHours = setBusinessWorkHours.setBusinessWorkHours;
|
|
509
|
-
exports.setResaleStarGiftPrice = setGiftResalePrice.setResaleStarGiftPrice;
|
|
510
|
-
exports.transferStarGift = transferStarGift.transferStarGift;
|
|
511
|
-
exports.upgradeStarGift = upgradeStarGift.upgradeStarGift;
|
|
512
523
|
exports.addStickerToSet = addStickerToSet.addStickerToSet;
|
|
513
524
|
exports.createStickerSet = createStickerSet.createStickerSet;
|
|
514
525
|
exports.deleteStickerFromSet = deleteStickerFromSet.deleteStickerFromSet;
|