balanceofsatoshis 11.29.2 → 11.30.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Versions
2
2
 
3
+ ## 11.30.0
4
+
5
+ - `telegram`: Add support for setting the description of a created trade-secret
6
+
3
7
  ## 11.29.2
4
8
 
5
9
  - `increase-outbound-liquidity`: Change seed node backing endpoint for API EOL
package/bos CHANGED
@@ -585,7 +585,7 @@ prog
585
585
  .option('--node <node_name>', 'Saved node (not peer to set fees on)')
586
586
  .option('--set-cltv-delta <count>', 'Set the number of blocks for CLTV', INT)
587
587
  .option('--set-fee-rate <rate>', 'Fee in parts per million or use a formula')
588
- .option('--to <peer>', 'Peer public key or alias to set fees', REPEATABLE)
588
+ .option('--to <peer>', 'Peer key/alias/tag to set fees', REPEATABLE)
589
589
  .action((args, options, logger) => {
590
590
  return new Promise(async (resolve, reject) => {
591
591
  try {
package/package.json CHANGED
@@ -37,9 +37,9 @@
37
37
  "ln-accounting": "5.0.5",
38
38
  "ln-service": "53.5.0",
39
39
  "ln-sync": "3.7.0",
40
- "ln-telegram": "3.7.0",
40
+ "ln-telegram": "3.8.0",
41
41
  "moment": "2.29.1",
42
- "paid-services": "3.9.1",
42
+ "paid-services": "3.10.0",
43
43
  "probing": "2.0.2",
44
44
  "psbt": "1.1.10",
45
45
  "qrcode-terminal": "0.12.0",
@@ -80,5 +80,5 @@
80
80
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
81
81
  "test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/network/*.js test/nodes/*.js test/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/wallets/*.js"
82
82
  },
83
- "version": "11.29.2"
83
+ "version": "11.30.0"
84
84
  }
@@ -1,6 +1,7 @@
1
1
  const {homedir} = require('os');
2
2
  const {join} = require('path');
3
3
 
4
+ const {actOnMessageReply} = require('ln-telegram');
4
5
  const asyncAuto = require('async/auto');
5
6
  const asyncEach = require('async/each');
6
7
  const asyncForever = require('async/forever');
@@ -25,7 +26,7 @@ const {handlePendingCommand} = require('ln-telegram');
25
26
  const {handleVersionCommand} = require('ln-telegram');
26
27
  const {InputFile} = require('grammy');
27
28
  const inquirer = require('inquirer');
28
- const {isMessageReplyToInvoice} = require('ln-telegram');
29
+ const {isMessageReplyAction} = require('ln-telegram');
29
30
  const {notifyOfForwards} = require('ln-telegram');
30
31
  const {postChainTransaction} = require('ln-telegram');
31
32
  const {postClosedMessage} = require('ln-telegram');
@@ -44,7 +45,6 @@ const {subscribeToChannels} = require('ln-service');
44
45
  const {subscribeToInvoices} = require('ln-service');
45
46
  const {subscribeToPastPayments} = require('ln-service');
46
47
  const {subscribeToTransactions} = require('ln-service');
47
- const {updateInvoiceFromReply} = require('ln-telegram');
48
48
 
49
49
  const interaction = require('./interaction');
50
50
  const markdown = {parse_mode: 'Markdown'};
@@ -457,10 +457,10 @@ module.exports = ({fs, id, limits, lnds, logger, payments, request}, cbk) => {
457
457
 
458
458
  // Listen for replies to created invoice messages
459
459
  bot.on('message').filter(
460
- ctx => isMessageReplyToInvoice({ctx, nodes: getNodes}),
460
+ ctx => isMessageReplyAction({ctx, nodes: getNodes}),
461
461
  async ctx => {
462
462
  try {
463
- return await updateInvoiceFromReply({
463
+ return await actOnMessageReply({
464
464
  ctx,
465
465
  api: bot.api,
466
466
  id: connectedId,