From cf34fcd6e02b3dc6515421d940a58d04788d8856 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 9 Jun 2019 16:18:40 +0800 Subject: [PATCH] test --- bot.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 88ff3e0..536fb78 100644 --- a/bot.go +++ b/bot.go @@ -221,7 +221,8 @@ func botMsgExportAll(m *tb.Message) { d := tb.Document{} d.File = tb.FromReader(bytes.NewReader(b)) - d.FileName = `backup.zip` + d.FileName = fmt.Sprintf("%s_backup.zip", time.Now().Format("20060102150405")) + d.Caption = d.FileName c = TGCommand{ Type: commandSendDocument,