allow lnurlp comments only for 21 sats or more (#491)

This commit is contained in:
callebtc
2023-11-15 21:36:37 -03:00
committed by GitHub
parent 7ba59512de
commit 8b2fb73fe8
+5
View File
@@ -245,6 +245,11 @@ func (bot *TipBot) lnurlReceiveEvent(event Event) {
}
}
if tx.Amount < 21 {
log.Debugf("[lnurl-p] Filtered LNURL comment for %s of %d sat.", GetUserStr(invoiceEvent.User.Telegram), tx.Amount)
return
}
// notify user with LNURL comment and sender Information
if len(tx.Comment) > 0 {
if len(tx.From) == 0 {