test
This commit is contained in:
parent
0ea4664d3f
commit
8facf6ec85
5
bot.go
5
bot.go
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
@ -200,10 +201,10 @@ func botMsgExportAll(m *tb.Message) {
|
||||
return
|
||||
}
|
||||
|
||||
d := &tb.Document{File: tb.FromReader(bytes.NewReader(b))}
|
||||
d := tb.Document{File: tb.FromReader(bytes.NewReader(b))}
|
||||
|
||||
c := TGCommand{
|
||||
Type: commandReplyFile,
|
||||
Type: commandReplyDocument,
|
||||
Document: d,
|
||||
FromMsgID64: int64(m.ID),
|
||||
FromChatID64: m.Chat.ID,
|
||||
|
4
def.go
4
def.go
@ -244,8 +244,8 @@ const (
|
||||
commandSendMsg = 3
|
||||
commandDeleteMsg = 4
|
||||
commandRefreshMsg = 5
|
||||
commandSendDoc = 6
|
||||
commandReplyDoc = 7
|
||||
commandSendDocument = 6
|
||||
commandReplyDocument = 7
|
||||
|
||||
objTypeUser = 1
|
||||
objTypeGuild = 2
|
||||
|
Loading…
Reference in New Issue
Block a user