balanceofsatoshis 11.36.2 → 11.36.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 11.36.2
3
+ ## 11.36.3
4
4
 
5
5
  - `telegram`: Add support for `--use-proxy` to specify a SOCKS proxy server
6
6
 
package/package.json CHANGED
@@ -35,9 +35,9 @@
35
35
  "inquirer": "8.2.0",
36
36
  "invoices": "2.0.3",
37
37
  "ln-accounting": "5.0.5",
38
- "ln-service": "53.5.2",
39
- "ln-sync": "3.7.0",
40
- "ln-telegram": "3.11.0",
38
+ "ln-service": "53.6.0",
39
+ "ln-sync": "3.7.1",
40
+ "ln-telegram": "3.12.0",
41
41
  "moment": "2.29.1",
42
42
  "paid-services": "3.11.0",
43
43
  "probing": "2.0.2",
@@ -52,7 +52,7 @@
52
52
  "description": "Lightning balance CLI",
53
53
  "devDependencies": {
54
54
  "@alexbosworth/tap": "15.0.10",
55
- "ln-docker-daemons": "2.2.0",
55
+ "ln-docker-daemons": "2.2.1",
56
56
  "mock-lnd": "1.4.1",
57
57
  "secp256k1": "4.0.3"
58
58
  },
@@ -81,5 +81,5 @@
81
81
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
82
82
  "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"
83
83
  },
84
- "version": "11.36.2"
84
+ "version": "11.36.3"
85
85
  }
@@ -4,10 +4,8 @@
4
4
  "name": "key",
5
5
  "type": "password"
6
6
  },
7
- "bot_is_connected": "🤖 *Bot is online.* /help for commands",
8
7
  "edit_message_warning": "⚠️ *Editing past messages not supported.*\n\n_Did you mean to send a new message?_",
9
8
  "pay_budget_depleted": "⚠️ No budget for payments",
10
- "start_message": "🤖 *Bot started, run /connect to authorize.*",
11
9
  "user_id_prompt": {
12
10
  "message": "Connection code? (Bot command: /connect)",
13
11
  "name": "code",
@@ -24,6 +24,7 @@ const {handleLiquidityCommand} = require('ln-telegram');
24
24
  const {handleMempoolCommand} = require('ln-telegram');
25
25
  const {handlePayCommand} = require('ln-telegram');
26
26
  const {handlePendingCommand} = require('ln-telegram');
27
+ const {handleStartCommand} = require('ln-telegram');
27
28
  const {handleVersionCommand} = require('ln-telegram');
28
29
  const {InputFile} = require('grammy');
29
30
  const inquirer = require('inquirer');
@@ -450,12 +451,10 @@ module.exports = (args, cbk) => {
450
451
  });
451
452
 
452
453
  bot.command('start', ctx => {
453
- // Exit early when the bot is already connected
454
- if (!!connectedId) {
455
- return ctx.reply(interaction.bot_is_connected, markdown);
456
- }
457
-
458
- return ctx.reply(interaction.start_message, markdown);
454
+ handleStartCommand({
455
+ id: connectedId,
456
+ reply: n => ctx.reply(n, markdown),
457
+ });
459
458
  });
460
459
 
461
460
  bot.command('version', async ctx => {