@mtcute/core 0.27.2 → 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 +80 -68
- package/client.js +80 -68
- 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 +322 -278
- package/highlevel/client.d.ts +322 -278
- 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 +23 -18
- package/highlevel/methods.d.ts +23 -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 +12 -3
- package/highlevel/types/premium/star-gift.d.cts +5 -0
- package/highlevel/types/premium/star-gift.d.ts +5 -0
- package/highlevel/types/premium/star-gift.js +12 -3
- 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 +40 -34
- package/methods.js +23 -17
- 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 {};
|
|
@@ -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, [
|
|
@@ -35,10 +35,11 @@ class StarGift {
|
|
|
35
35
|
}
|
|
36
36
|
/** If this gift is currently sold through an auction, info about that auction. `null` otherwise */
|
|
37
37
|
get auction() {
|
|
38
|
-
if (!this.raw.auctionSlug || this.raw.giftsPerRound == null) return null;
|
|
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
|
}
|
|
44
45
|
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
@@ -127,7 +128,15 @@ class StarGift {
|
|
|
127
128
|
if (!this.raw.releasedBy) return null;
|
|
128
129
|
return peer.parsePeer(this.raw.releasedBy, this._peers);
|
|
129
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
|
+
}
|
|
130
139
|
}
|
|
131
140
|
const StarGift$1 = /* @__PURE__ */ inspectable.makeInspectable(StarGift);
|
|
132
|
-
const StarGift$2 = /* @__PURE__ */ memoize.memoizeGetters(StarGift$1, ["sticker"]);
|
|
141
|
+
const StarGift$2 = /* @__PURE__ */ memoize.memoizeGetters(StarGift$1, ["sticker", "auction"]);
|
|
133
142
|
exports.StarGift = StarGift$2;
|
|
@@ -32,6 +32,7 @@ export declare class StarGift {
|
|
|
32
32
|
get auction(): {
|
|
33
33
|
slug: string;
|
|
34
34
|
giftsPerRound: number;
|
|
35
|
+
startDate: Date;
|
|
35
36
|
} | null;
|
|
36
37
|
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
37
38
|
get action(): this['auction'];
|
|
@@ -84,4 +85,8 @@ export declare class StarGift {
|
|
|
84
85
|
* User/channel who released this collection
|
|
85
86
|
*/
|
|
86
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;
|
|
87
92
|
}
|
|
@@ -32,6 +32,7 @@ export declare class StarGift {
|
|
|
32
32
|
get auction(): {
|
|
33
33
|
slug: string;
|
|
34
34
|
giftsPerRound: number;
|
|
35
|
+
startDate: Date;
|
|
35
36
|
} | null;
|
|
36
37
|
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
37
38
|
get action(): this['auction'];
|
|
@@ -84,4 +85,8 @@ export declare class StarGift {
|
|
|
84
85
|
* User/channel who released this collection
|
|
85
86
|
*/
|
|
86
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;
|
|
87
92
|
}
|
|
@@ -28,10 +28,11 @@ class StarGift {
|
|
|
28
28
|
}
|
|
29
29
|
/** If this gift is currently sold through an auction, info about that auction. `null` otherwise */
|
|
30
30
|
get auction() {
|
|
31
|
-
if (!this.raw.auctionSlug || this.raw.giftsPerRound == null) return null;
|
|
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
|
}
|
|
37
38
|
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
@@ -120,9 +121,17 @@ class StarGift {
|
|
|
120
121
|
if (!this.raw.releasedBy) return null;
|
|
121
122
|
return parsePeer(this.raw.releasedBy, this._peers);
|
|
122
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
|
+
}
|
|
123
132
|
}
|
|
124
133
|
const StarGift$1 = /* @__PURE__ */ makeInspectable(StarGift);
|
|
125
|
-
const StarGift$2 = /* @__PURE__ */ memoizeGetters(StarGift$1, ["sticker"]);
|
|
134
|
+
const StarGift$2 = /* @__PURE__ */ memoizeGetters(StarGift$1, ["sticker", "auction"]);
|
|
126
135
|
export {
|
|
127
136
|
StarGift$2 as StarGift
|
|
128
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
|
@@ -118,6 +118,26 @@ const toggleForumTopicClosed = require("./highlevel/methods/forums/toggle-forum-
|
|
|
118
118
|
const toggleForumTopicPinned = require("./highlevel/methods/forums/toggle-forum-topic-pinned.cjs");
|
|
119
119
|
const toggleForum = require("./highlevel/methods/forums/toggle-forum.cjs");
|
|
120
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");
|
|
121
141
|
const createInviteLink = require("./highlevel/methods/invite-links/create-invite-link.cjs");
|
|
122
142
|
const editInviteLink = require("./highlevel/methods/invite-links/edit-invite-link.cjs");
|
|
123
143
|
const exportInviteLink = require("./highlevel/methods/invite-links/export-invite-link.cjs");
|
|
@@ -190,10 +210,7 @@ const changeCloudPassword = require("./highlevel/methods/password/change-cloud-p
|
|
|
190
210
|
const enableCloudPassword = require("./highlevel/methods/password/enable-cloud-password.cjs");
|
|
191
211
|
const passwordEmail = require("./highlevel/methods/password/password-email.cjs");
|
|
192
212
|
const removeCloudPassword = require("./highlevel/methods/password/remove-cloud-password.cjs");
|
|
193
|
-
const _normalizeInputStarGift = require("./highlevel/methods/premium/_normalize-input-star-gift.cjs");
|
|
194
|
-
const acceptStarGift = require("./highlevel/methods/premium/accept-star-gift.cjs");
|
|
195
213
|
const applyBoost = require("./highlevel/methods/premium/apply-boost.cjs");
|
|
196
|
-
const buyResaleGift = require("./highlevel/methods/premium/buy-resale-gift.cjs");
|
|
197
214
|
const canApplyBoost = require("./highlevel/methods/premium/can-apply-boost.cjs");
|
|
198
215
|
const createBusinessChatLink = require("./highlevel/methods/premium/create-business-chat-link.cjs");
|
|
199
216
|
const editBusinessChatLink = require("./highlevel/methods/premium/edit-business-chat-link.cjs");
|
|
@@ -202,25 +219,11 @@ const getBoosts = require("./highlevel/methods/premium/get-boosts.cjs");
|
|
|
202
219
|
const getBusinessChatLinks = require("./highlevel/methods/premium/get-business-chat-links.cjs");
|
|
203
220
|
const getBusinessConnection = require("./highlevel/methods/premium/get-business-connection.cjs");
|
|
204
221
|
const getMyBoostSlots = require("./highlevel/methods/premium/get-my-boost-slots.cjs");
|
|
205
|
-
const getResaleStarGifts = require("./highlevel/methods/premium/get-resale-star-gifts.cjs");
|
|
206
|
-
const getSavedStarGiftsById = require("./highlevel/methods/premium/get-saved-star-gifts-by-id.cjs");
|
|
207
|
-
const getSavedStarGifts = require("./highlevel/methods/premium/get-saved-star-gifts.cjs");
|
|
208
|
-
const getStarGiftOptions = require("./highlevel/methods/premium/get-star-gift-options.cjs");
|
|
209
|
-
const getStarGiftValue = require("./highlevel/methods/premium/get-star-gift-value.cjs");
|
|
210
|
-
const getStarGiftWithdrawalUrl = require("./highlevel/methods/premium/get-star-gift-withdrawal-url.cjs");
|
|
211
222
|
const getStarsTransactions = require("./highlevel/methods/premium/get-stars-transactions.cjs");
|
|
212
|
-
const getUniqueStarGift = require("./highlevel/methods/premium/get-unique-star-gift.cjs");
|
|
213
223
|
const iterBoosters = require("./highlevel/methods/premium/iter-boosters.cjs");
|
|
214
|
-
const iterSavedStarGifts = require("./highlevel/methods/premium/iter-saved-star-gifts.cjs");
|
|
215
224
|
const iterStarsTransactions = require("./highlevel/methods/premium/iter-stars-transactions.cjs");
|
|
216
|
-
const pinStarGift = require("./highlevel/methods/premium/pin-star-gift.cjs");
|
|
217
|
-
const prepayStarGiftUpgrade = require("./highlevel/methods/premium/prepay-star-gift-upgrade.cjs");
|
|
218
|
-
const sendStarGift = require("./highlevel/methods/premium/send-star-gift.cjs");
|
|
219
225
|
const setBusinessIntro = require("./highlevel/methods/premium/set-business-intro.cjs");
|
|
220
226
|
const setBusinessWorkHours = require("./highlevel/methods/premium/set-business-work-hours.cjs");
|
|
221
|
-
const setGiftResalePrice = require("./highlevel/methods/premium/set-gift-resale-price.cjs");
|
|
222
|
-
const transferStarGift = require("./highlevel/methods/premium/transfer-star-gift.cjs");
|
|
223
|
-
const upgradeStarGift = require("./highlevel/methods/premium/upgrade-star-gift.cjs");
|
|
224
227
|
const addStickerToSet = require("./highlevel/methods/stickers/add-sticker-to-set.cjs");
|
|
225
228
|
const createStickerSet = require("./highlevel/methods/stickers/create-sticker-set.cjs");
|
|
226
229
|
const deleteStickerFromSet = require("./highlevel/methods/stickers/delete-sticker-from-set.cjs");
|
|
@@ -396,6 +399,26 @@ exports.toggleForumTopicClosed = toggleForumTopicClosed.toggleForumTopicClosed;
|
|
|
396
399
|
exports.toggleForumTopicPinned = toggleForumTopicPinned.toggleForumTopicPinned;
|
|
397
400
|
exports.updateForumSettings = toggleForum.updateForumSettings;
|
|
398
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;
|
|
399
422
|
exports.createInviteLink = createInviteLink.createInviteLink;
|
|
400
423
|
exports.editInviteLink = editInviteLink.editInviteLink;
|
|
401
424
|
exports.exportInviteLink = exportInviteLink.exportInviteLink;
|
|
@@ -482,10 +505,7 @@ exports.cancelPasswordEmail = passwordEmail.cancelPasswordEmail;
|
|
|
482
505
|
exports.resendPasswordEmail = passwordEmail.resendPasswordEmail;
|
|
483
506
|
exports.verifyPasswordEmail = passwordEmail.verifyPasswordEmail;
|
|
484
507
|
exports.removeCloudPassword = removeCloudPassword.removeCloudPassword;
|
|
485
|
-
exports._normalizeInputStarGift = _normalizeInputStarGift._normalizeInputStarGift;
|
|
486
|
-
exports.acceptStarGift = acceptStarGift.acceptStarGift;
|
|
487
508
|
exports.applyBoost = applyBoost.applyBoost;
|
|
488
|
-
exports.buyResaleGift = buyResaleGift.buyResaleGift;
|
|
489
509
|
exports.canApplyBoost = canApplyBoost.canApplyBoost;
|
|
490
510
|
exports.createBusinessChatLink = createBusinessChatLink.createBusinessChatLink;
|
|
491
511
|
exports.deleteBusinessChatLink = editBusinessChatLink.deleteBusinessChatLink;
|
|
@@ -495,25 +515,11 @@ exports.getBoosts = getBoosts.getBoosts;
|
|
|
495
515
|
exports.getBusinessChatLinks = getBusinessChatLinks.getBusinessChatLinks;
|
|
496
516
|
exports.getBusinessConnection = getBusinessConnection.getBusinessConnection;
|
|
497
517
|
exports.getMyBoostSlots = getMyBoostSlots.getMyBoostSlots;
|
|
498
|
-
exports.getStarGiftResaleOptions = getResaleStarGifts.getStarGiftResaleOptions;
|
|
499
|
-
exports.getSavedStarGiftsById = getSavedStarGiftsById.getSavedStarGiftsById;
|
|
500
|
-
exports.getSavedStarGifts = getSavedStarGifts.getSavedStarGifts;
|
|
501
|
-
exports.getStarGiftOptions = getStarGiftOptions.getStarGiftOptions;
|
|
502
|
-
exports.getStarGiftValue = getStarGiftValue.getStarGiftValue;
|
|
503
|
-
exports.getStarGiftWithdrawalUrl = getStarGiftWithdrawalUrl.getStarGiftWithdrawalUrl;
|
|
504
518
|
exports.getStarsTransactions = getStarsTransactions.getStarsTransactions;
|
|
505
|
-
exports.getUniqueStarGift = getUniqueStarGift.getUniqueStarGift;
|
|
506
519
|
exports.iterBoosters = iterBoosters.iterBoosters;
|
|
507
|
-
exports.iterSavedStarGifts = iterSavedStarGifts.iterSavedStarGifts;
|
|
508
520
|
exports.iterStarsTransactions = iterStarsTransactions.iterStarsTransactions;
|
|
509
|
-
exports.togglePinnedStarGifts = pinStarGift.togglePinnedStarGifts;
|
|
510
|
-
exports.prepayStarGiftUpgrade = prepayStarGiftUpgrade.prepayStarGiftUpgrade;
|
|
511
|
-
exports.sendStarGift = sendStarGift.sendStarGift;
|
|
512
521
|
exports.setBusinessIntro = setBusinessIntro.setBusinessIntro;
|
|
513
522
|
exports.setBusinessWorkHours = setBusinessWorkHours.setBusinessWorkHours;
|
|
514
|
-
exports.setResaleStarGiftPrice = setGiftResalePrice.setResaleStarGiftPrice;
|
|
515
|
-
exports.transferStarGift = transferStarGift.transferStarGift;
|
|
516
|
-
exports.upgradeStarGift = upgradeStarGift.upgradeStarGift;
|
|
517
523
|
exports.addStickerToSet = addStickerToSet.addStickerToSet;
|
|
518
524
|
exports.createStickerSet = createStickerSet.createStickerSet;
|
|
519
525
|
exports.deleteStickerFromSet = deleteStickerFromSet.deleteStickerFromSet;
|