From acee5bcfaed6f3ad61b162c1fa9c4234014777f7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 08:06:54 +0000 Subject: [PATCH 1/2] Initial plan From 440de1cb80cbe95d23fff18052b0748d0d13142e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 08:12:01 +0000 Subject: [PATCH 2/2] Use code blocks for /sendbatch help so examples can be copied all at once Co-authored-by: rayaanr <108685206+rayaanr@users.noreply.github.com> Agent-Logs-Url: https://github.com/CeyLabs/BitcoinDeepaBot/sessions/97784c4e-4632-491f-b357-8db628ba48ca --- internal/telegram/sendbatch.go | 6 +++--- translations/en.toml | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/internal/telegram/sendbatch.go b/internal/telegram/sendbatch.go index 3ce97387..f584ec50 100644 --- a/internal/telegram/sendbatch.go +++ b/internal/telegram/sendbatch.go @@ -159,9 +159,9 @@ func (bot *TipBot) sendbatchHandler(ctx intercept.Context) (intercept.Context, e parsed, sharedMemo, err := parseBatchEntries(ctx.Message().Text) if err != nil { helpMsg := fmt.Sprintf("❌ *Batch Send Error*\n\n%s\n\n", str.MarkdownEscape(err.Error())) - helpMsg += "*Usage:*\n`/sendbatch [shared memo]`\n` @user [memo]`\n` @user [memo]`\n\n" - helpMsg += "*Example 1 (Shared Memo):*\n`/sendbatch Salary 2026`\n`1000 @alice`\n`500 @bob`\n\n" - helpMsg += "*Example 2 (Individual Memos & LKR):*\n`/sendbatch`\n`1000 @alice Pizza`\n`500lkr @bob Coffee`" + helpMsg += "*Usage:*\n```\n/sendbatch [shared memo]\n @user [memo]\n @user [memo]\n```\n\n" + helpMsg += "*Example 1 (Shared Memo):*\n```\n/sendbatch Salary 2026\n1000 @alice\n500 @bob\n```\n\n" + helpMsg += "*Example 2 (Individual Memos & LKR):*\n```\n/sendbatch\n1000 @alice Pizza\n500lkr @bob Coffee\n```" bot.trySendMessage(ctx.Message().Sender, helpMsg) return ctx, errors.Create(errors.InvalidSyntaxError) diff --git a/translations/en.toml b/translations/en.toml index 8d03600f..ff8b61f1 100644 --- a/translations/en.toml +++ b/translations/en.toml @@ -73,9 +73,11 @@ _This bot is a Bitcoin Lightning wallet that can sends tips on Telegram. To tip, */balance* 👑 Check your balance: `/balance` */send* 💸 Send funds to a user: `/send @user or user@ln.tips []` */sendbatch* 💸 Send to multiple users: -`/sendbatch [memo]` -` @user1 [memo]` -`lkr @user2 [memo]` (converts LKR to sats) +``` +/sendbatch [memo] + @user1 [memo] +lkr @user2 [memo] +``` */invoice* ⚡️ Receive with Lightning: `/invoice []` */pay* ⚡️ Pay with Lightning: `/pay ` */transactions* 📊 List transactions