allow lnurlp comments only for 21 sats or more

This commit is contained in:
callebtc
2023-11-15 21:36:09 -03:00
parent 7ba59512de
commit d03b17e3ec
+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 {