This commit is contained in:
shoopea 2019-06-09 16:18:40 +08:00
parent e8edde5722
commit cf34fcd6e0

3
bot.go
View File

@ -221,7 +221,8 @@ func botMsgExportAll(m *tb.Message) {
d := tb.Document{} d := tb.Document{}
d.File = tb.FromReader(bytes.NewReader(b)) 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{ c = TGCommand{
Type: commandSendDocument, Type: commandSendDocument,