Files
LightningTipBot/internal/telegram/lnurlcash_qr.go
T
MichilisandClaude Fable 5.1 3c2ccf8d83 Add the LNURLcash Telegram commands
/note, /notes (list and batch), /redeem and /lnurlmints with confirm
dialogs, group posting with private receipts, claim notifications,
batch export as PDF/JSON/CSV, and LNURLcash notes detected inside the
existing /lnurl, paste and QR-photo flows. Plain withdraw links behave
as before. Two /lnurl log lines no longer print k1.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 22:12:27 +00:00

18 lines
307 B
Go

package telegram
import (
"bytes"
"io"
"github.com/skip2/go-qrcode"
)
// qrcodeEncode renders a PNG QR code for Telegram.
func qrcodeEncode(data string) (io.Reader, error) {
png, err := qrcode.Encode(data, qrcode.Medium, 256)
if err != nil {
return nil, err
}
return bytes.NewReader(png), nil
}