From e2017ecfe981bdab2dbdcfc171352ceb2467dde7 Mon Sep 17 00:00:00 2001 From: LightningTipBot <88730856+LightningTipBot@users.noreply.github.com> Date: Mon, 23 Aug 2021 13:09:39 +0200 Subject: [PATCH] Improve help (#14) * improve help --- help.go | 8 +++++--- invoice.go | 1 + start.go | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/help.go b/help.go index 3b122e3f..757d35f4 100644 --- a/help.go +++ b/help.go @@ -6,7 +6,7 @@ import ( ) const ( - helpMessage = "ℹ️ *Info*\n_This bot sends Bitcoin tips on the Lightning Network⚡️. The basic unit of tips are Satoshis (sat). 100,000,000 sat = 1 Bitcoin. There will only ever be 21 Million Bitcoin._\n\n" + + helpMessage = "ℹ️ *Info*\n_This bot is a Lightning Bitcoin wallet and can sends tips on Telegram. Simply add it to your group. The basic unit of tips are Satoshis (sat). 100,000,000 sat = 1 Bitcoin. There will only ever be 21 Million Bitcoin. Type /info for more._\n\n" + "❤️ *Donate*\n" + "_This bot charges no fees but generates costs. If you like to support this bot, please consider a donation. To donate, just tip @LightningTipBot or try_ `/send 1000 @LightningTipBot`\n\n" + "⚙️ *Commands*\n" + @@ -15,7 +15,7 @@ const ( "*/send* 💸 Send funds to a user: `/send <@username> []`\n" + "*/invoice* ⚡️ Receive over Lightning: `/invoice []`\n" + "*/pay* ⚡️ Pay over Lightning: `/pay `\n" + - "*/help* 📖 Read this help (more: */info*).\n" + "*/help* 📖 Read this help.\n" infoMessage = "🧡 *Bitcoin*\n" + "_Bitcoin is the currency of the internet. It is permissionless and decentralized and has no masters and no controling authority. Bitcoin is sound money that is faster, more secure, and more inclusive than the legacy financial system._\n\n" + @@ -24,9 +24,11 @@ const ( "⚡️ *The Lightning Network*\n" + "_The Lightning Network is a payment protocol that enables fast and cheap Bitcoin payments that require almost no energy. It is what scales Bitcoin to the billions of people around the world._\n\n" + "📲 *Lightning Wallets*\n" + - "_Your funds on this bot can be sent to any other Lightning wallet and vice versa. If you don't have a Lightning wallet yet, check out_ [Phoenix](https://phoenix.acinq.co/)_,_ [Breez](https://breez.technology/)_,_ [Muun](https://muun.com/)_ (non-custodial), or_ [Wallet of Satoshi](https://www.walletofsatoshi.com/) _(easy)_.\n\n" + + "_Your funds on this bot can be sent to any other Lightning wallet and vice versa. Recommended Lightning wallets for your phone are_ [Phoenix](https://phoenix.acinq.co/)_,_ [Breez](https://breez.technology/)_,_ [Muun](https://muun.com/)_ (non-custodial), or_ [Wallet of Satoshi](https://www.walletofsatoshi.com/) _(easy)_.\n\n" + "📄 *Open Source*\n" + "_This bot is free and_ [open source](https://github.com/LightningTipBot/LightningTipBot) _software. You can run it on your own computer and use it in your own community. You don't have to trust anyone to keep your funds safe._\n\n" + + "✈️ *Telegram*\n" + + "_Add this bot to your Telegram group chat to /tip posts. If you make the bot admin of the group it will also clean up commands to keep the chat tidy._\n\n" + // "🏛 *Terms*\n" + // "_We are not custodian of your funds. Any amount you load onto your wallet will be legally considered a donation that belongs to us. We will act in your best interest but we're also aware that the situation without KYC is tricky until we figure something out. Do not give us all your money. Be aware that this bot is in beta development. Use at your own risk._\n\n" + "❤️ *Donate*\n" + diff --git a/invoice.go b/invoice.go index 0b7e4de0..e0cf72e2 100644 --- a/invoice.go +++ b/invoice.go @@ -25,6 +25,7 @@ func helpInvoiceUsage(errormsg string) string { } func (bot TipBot) invoiceHandler(m *tb.Message) { + log.Infof("[%s:%d %s:%d] %s", m.Chat.Title, m.Chat.ID, GetUserStr(m.Sender), m.Sender.ID, m.Text) if m.Chat.Type != tb.ChatPrivate { // delete message NewMessage(m).Dispose(0, bot.telegram) diff --git a/start.go b/start.go index 871b6b97..02d1d769 100644 --- a/start.go +++ b/start.go @@ -55,6 +55,7 @@ func (bot TipBot) initWallet(tguser *tb.User) error { return err } } else if !user.Initialized { + // update all tip tooltips (with the "initialize me" message) that this user might have received before tipTooltipInitializedHandler(user.Telegram, bot) user.Initialized = true err = UpdateUserRecord(user, bot)