nexushub-commands 1.6.0 → 1.6.2

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.
@@ -7,6 +7,7 @@ const migrated_1 = require("evogram/lib/migrated");
7
7
  const Client_1 = require("../../Client");
8
8
  const formatMessage_1 = require("../../utils/formatMessage");
9
9
  const CheckPaidOrder_command_1 = require("./CheckPaidOrder.command");
10
+ const DepositByPromocode_command_1 = require("./DepositByPromocode.command");
10
11
  const GetDepositOrder_command_1 = require("./GetDepositOrder.command");
11
12
  // Функция для маскировки реквизитов: оставляет только последние 4 не пробельных символа
12
13
  function maskExceptLast4(str) {
@@ -170,7 +171,7 @@ tslib_1.__decorate([
170
171
  inline_keyboard: [
171
172
  ...(allowedMethods.includes('card') ? [[{ text: '💳 Банковская карта', command: DepositCommand, payload: { method: 'card' } }]] : []),
172
173
  [{ text: '🪙 Криптовалюта', command: DepositCommand, payload: { method: 'cryptowallet' } }],
173
- [[{ text: '🎫 Промокод', command: DepositCommand, payload: { method: 'promocode' } }]],
174
+ [{ text: '🎫 Промокод', command: DepositByPromocode_command_1.DepositByPromocodeCommand }],
174
175
  ],
175
176
  },
176
177
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexushub-commands",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "main": "./lib/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -3,6 +3,7 @@ import { CommandContext } from 'evogram/lib/migrated';
3
3
  import { Client } from '../../Client';
4
4
  import { formatMessage } from '../../utils/formatMessage';
5
5
  import { CheckPaidOrderCommand } from './CheckPaidOrder.command';
6
+ import { DepositByPromocodeCommand } from './DepositByPromocode.command';
6
7
  import { GetDepositOrderCommand } from './GetDepositOrder.command';
7
8
 
8
9
  // Функция для маскировки реквизитов: оставляет только последние 4 не пробельных символа
@@ -49,7 +50,7 @@ export class DepositCommand extends Command {
49
50
  inline_keyboard: [
50
51
  ...(allowedMethods.includes('card') ? [[{ text: '💳 Банковская карта', command: DepositCommand, payload: { method: 'card' } }]] : []),
51
52
  [{ text: '🪙 Криптовалюта', command: DepositCommand, payload: { method: 'cryptowallet' } }],
52
- [[{ text: '🎫 Промокод', command: DepositCommand, payload: { method: 'promocode' } }]],
53
+ [{ text: '🎫 Промокод', command: DepositByPromocodeCommand }],
53
54
  ],
54
55
  },
55
56
  }
@@ -5,6 +5,7 @@ import { Client } from '../../Client';
5
5
  export class DepositByPromocodeCommand extends Command {
6
6
  public async execute(
7
7
  context: CommandContext,
8
+
8
9
  @CommandArgument(
9
10
  {
10
11
  name: 'promocode',