nexushub-commands 2.5.5 → 2.5.6
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/lib/commands/deposit/Deposit.command.js +2 -2
- package/lib/commands/deposit/GetDepositOrder.command.js +1 -1
- package/package.json +1 -1
- package/src/commands/deposit/Deposit.command.ts +2 -2
- package/src/commands/deposit/GetDepositOrder.command.ts +1 -1
- package/src/commands/withdrawal/AdminWithdrawal.command.ts +1 -1
|
@@ -33,13 +33,13 @@ let DepositCommand = DepositCommand_1 = class DepositCommand extends evogram_1.C
|
|
|
33
33
|
if (['card'].includes(method)) {
|
|
34
34
|
const message = yield context.sendFormatted({
|
|
35
35
|
photo: config.images.deposit,
|
|
36
|
-
header: '<blockquote><b>📤 Пополнение баланса</b></blockquote>\n\n<i
|
|
36
|
+
header: '<blockquote><b>📤 Пополнение баланса</b></blockquote>\n\n<i>Создаём заявку на пополнение...</i>',
|
|
37
37
|
});
|
|
38
38
|
const startTime = Date.now();
|
|
39
39
|
interval = setInterval(() => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
yield message.edit({
|
|
41
41
|
text: (0, formatMessage_1.formatMessage)({
|
|
42
|
-
header: '<blockquote><b>📤 Пополнение баланса</b></blockquote>\n\n<i
|
|
42
|
+
header: '<blockquote><b>📤 Пополнение баланса</b></blockquote>\n\n<i>Создаём заявку на пополнение...</i>',
|
|
43
43
|
footer: `<i>⏳ Прошло {{ ${Math.floor((Date.now() - startTime) / 1000)} }} сек.</i>`,
|
|
44
44
|
}),
|
|
45
45
|
parse_mode: 'HTML',
|
|
@@ -45,7 +45,7 @@ let GetDepositOrderCommand = class GetDepositOrderCommand extends evogram_1.Comm
|
|
|
45
45
|
message = yield context.sendFormatted({
|
|
46
46
|
designImages: ['deposit-card', 'deposit'],
|
|
47
47
|
photo: config.images.deposit,
|
|
48
|
-
header: repeat ? '<b>❗️У вас уже есть заявка на пополнение, сначала оплатите
|
|
48
|
+
header: repeat ? '<b>❗️У вас уже есть заявка на пополнение, сначала оплатите её</b>' : '<b>Создана заявка на оплату</b>',
|
|
49
49
|
body: [
|
|
50
50
|
{
|
|
51
51
|
title: 'ℹ️ Информация о реквизитах',
|
package/package.json
CHANGED
|
@@ -185,14 +185,14 @@ export class DepositCommand extends Command {
|
|
|
185
185
|
if (['card'].includes(method)) {
|
|
186
186
|
const message = await context.sendFormatted({
|
|
187
187
|
photo: config.images.deposit,
|
|
188
|
-
header: '<blockquote><b>📤 Пополнение баланса</b></blockquote>\n\n<i
|
|
188
|
+
header: '<blockquote><b>📤 Пополнение баланса</b></blockquote>\n\n<i>Создаём заявку на пополнение...</i>',
|
|
189
189
|
})
|
|
190
190
|
|
|
191
191
|
const startTime = Date.now()
|
|
192
192
|
interval = setInterval(async () => {
|
|
193
193
|
await message.edit({
|
|
194
194
|
text: formatMessage({
|
|
195
|
-
header: '<blockquote><b>📤 Пополнение баланса</b></blockquote>\n\n<i
|
|
195
|
+
header: '<blockquote><b>📤 Пополнение баланса</b></blockquote>\n\n<i>Создаём заявку на пополнение...</i>',
|
|
196
196
|
footer: `<i>⏳ Прошло {{ ${Math.floor((Date.now() - startTime) / 1000)} }} сек.</i>`,
|
|
197
197
|
}),
|
|
198
198
|
parse_mode: 'HTML',
|
|
@@ -49,7 +49,7 @@ export class GetDepositOrderCommand extends Command {
|
|
|
49
49
|
{
|
|
50
50
|
designImages: ['deposit-card', 'deposit'],
|
|
51
51
|
photo: config.images.deposit,
|
|
52
|
-
header: repeat ? '<b>❗️У вас уже есть заявка на пополнение, сначала оплатите
|
|
52
|
+
header: repeat ? '<b>❗️У вас уже есть заявка на пополнение, сначала оплатите её</b>' : '<b>Создана заявка на оплату</b>',
|
|
53
53
|
body: [
|
|
54
54
|
{
|
|
55
55
|
title: 'ℹ️ Информация о реквизитах',
|
|
@@ -40,7 +40,7 @@ export class AdminWithdrawalCommand extends Command {
|
|
|
40
40
|
|
|
41
41
|
@CommandArgument('id') id: string,
|
|
42
42
|
@CommandArgument('decision', ({ value }) => value === '1') decision: boolean,
|
|
43
|
-
@CommandArgument({ name: 'template?' }, async ({ context, value }) => (value === 'custom' ? context.sendFormattedQuestion({ noPhoto: true, header: '<blockquote><b>✍️ Причина отклонения</b></blockquote>', footer: '<i>Отправьте текст сообщения, который будет отображен пользователю при отмене вывода</i>' }).then((x) => entitiesToString(x.text, x.entities || [], 'HTML')) : value))
|
|
43
|
+
@CommandArgument({ name: 'template?' }, async ({ context, value }) => (value === 'custom' ? context.sendFormattedQuestion({ noPhoto: true, header: '<blockquote><b>✍️ Причина отклонения</b></blockquote>', footer: '<i>Отправьте текст сообщения, который будет отображен пользователю при отмене вывода</i>' }).then((x: any) => entitiesToString(x.text, x.entities || [], 'HTML')) : value))
|
|
44
44
|
template: number,
|
|
45
45
|
|
|
46
46
|
@CommandArgument('confirm?') confirm: boolean,
|