From 5deb5d940e30ae2a5537fd7afbb43fc5f5c764a6 Mon Sep 17 00:00:00 2001 From: LightningTipBot Date: Mon, 16 Aug 2021 18:58:23 +0200 Subject: [PATCH 1/2] fix language --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ecf70ff9..87ba3708 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ You can either use your own LNbits instance (recommended) or create an account a ### Live tooltips -The bot replies to a tipped message to indicate to all participants how much tips a post has received. This message will be updated as new tips are given to a post. +The bot replies to a tipped message to indicate to all participants how many and what amount of tips a post has received. This tooltip will be updated as new tips are given to a post.

How to set up a lnbits wallet and the User Manager extension. From da82835e63feae2e9f5d55377013e0c1b8336d01 Mon Sep 17 00:00:00 2001 From: LightningTipBot Date: Mon, 16 Aug 2021 18:58:53 +0200 Subject: [PATCH 2/2] username notice --- start.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start.go b/start.go index 14ca14fa..28dd2e37 100644 --- a/start.go +++ b/start.go @@ -15,6 +15,7 @@ import ( const ( startSettingWalletMessage = "🧮 Setting up your wallet..." startWalletReadyMessage = "✅ *Your wallet is ready.*" + startNoUsernameMessage = "☝️ It looks like you don't have a Telegram @username yet. You don't need one to use this bot. However, to make better use of your new wallet, please set up a username in the [Telegram settings](https://telegram.org/faq#q-what-are-usernames-how-do-i-get-one). Then, enter /balance so the bot can update its record of you." ) func (bot TipBot) startHandler(m *tb.Message) { @@ -32,6 +33,10 @@ func (bot TipBot) startHandler(m *tb.Message) { } bot.telegram.Edit(walletCreationMsg, startWalletReadyMessage) bot.balanceHandler(m) + + if len(m.Sender.Username) == 0 { + bot.telegram.Send(m.Sender, startNoUsernameMessage, tb.NoPreview) + } return }