test
This commit is contained in:
parent
e8edde5722
commit
cf34fcd6e0
3
bot.go
3
bot.go
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user