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,
|
||||
|
14
def.go
14
def.go
@ -239,13 +239,13 @@ type JobPayloadMsgClient struct {
|
||||
const (
|
||||
userID64ChtWrsBot = 408101137
|
||||
|
||||
commandForwardMsg = 1
|
||||
commandReplyMsg = 2
|
||||
commandSendMsg = 3
|
||||
commandDeleteMsg = 4
|
||||
commandRefreshMsg = 5
|
||||
commandSendDoc = 6
|
||||
commandReplyDoc = 7
|
||||
commandForwardMsg = 1
|
||||
commandReplyMsg = 2
|
||||
commandSendMsg = 3
|
||||
commandDeleteMsg = 4
|
||||
commandRefreshMsg = 5
|
||||
commandSendDocument = 6
|
||||
commandReplyDocument = 7
|
||||
|
||||
objTypeUser = 1
|
||||
objTypeGuild = 2
|
||||
|
Loading…
Reference in New Issue
Block a user