From 31a75d871f404b3d4a111502bb37d3aa73471c04 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 22 Feb 2025 20:04:57 +0200 Subject: [PATCH] login: add filename when sending QR image --- commands.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands.go b/commands.go index 060a4ab..88b737c 100644 --- a/commands.go +++ b/commands.go @@ -239,9 +239,10 @@ func sendQRCode(ce *WrappedCommandEvent, code string) id.EventID { } content := event.MessageEventContent{ - MsgType: event.MsgImage, - Body: code, - URL: url.CUString(), + MsgType: event.MsgImage, + Body: code, + FileName: "qr.png", + URL: url.CUString(), } resp, err := ce.Bot.SendMessageEvent(ce.RoomID, event.EventMessage, &content)