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,