nexushub-commands 2.7.0 → 2.7.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.
|
@@ -343,7 +343,7 @@ tslib_1.__decorate([
|
|
|
343
343
|
const keyboard = [
|
|
344
344
|
buttons.slice(0, 3), // Первый ряд
|
|
345
345
|
buttons.slice(3, 6), // Второй ряд
|
|
346
|
-
[{ text: '
|
|
346
|
+
[{ text: 'Указать сумму', command: DepositCommand, payload: Object.assign(Object.assign({}, args), { suggestedDepositAmounts: false }) }],
|
|
347
347
|
].filter((row) => row.length > 0); // Убираем пустые ряды
|
|
348
348
|
return (yield context.sendFormattedQuestion({
|
|
349
349
|
//@ts-ignore
|
package/package.json
CHANGED
|
@@ -236,7 +236,7 @@ export class DepositCommand extends Command {
|
|
|
236
236
|
const keyboard = [
|
|
237
237
|
buttons.slice(0, 3), // Первый ряд
|
|
238
238
|
buttons.slice(3, 6), // Второй ряд
|
|
239
|
-
[{ text: '
|
|
239
|
+
[{ text: 'Указать сумму', command: DepositCommand, payload: { ...args, suggestedDepositAmounts: false } }],
|
|
240
240
|
].filter((row) => row.length > 0) // Убираем пустые ряды
|
|
241
241
|
|
|
242
242
|
return (
|
|
@@ -250,7 +250,7 @@ export class DepositCommand extends Command {
|
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
reply_markup: {
|
|
253
|
-
inline_keyboard: args.suggestedDepositAmounts === false ? undefined : keyboard,
|
|
253
|
+
inline_keyboard: args.suggestedDepositAmounts === false || !['qrcode', 'card'].includes(args.method) ? undefined : keyboard,
|
|
254
254
|
},
|
|
255
255
|
},
|
|
256
256
|
)
|