/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>
18 lines
307 B
Go
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
|
|
}
|