test vault deposit
This commit is contained in:
parent
dfab9bb46c
commit
6a017befdc
21
bot.go
21
bot.go
@ -711,7 +711,7 @@ func botVaultOther(m *tb.Message) {
|
||||
botVault(m, l)
|
||||
}
|
||||
|
||||
func botVault(m *tb.Message, l []int64) {
|
||||
func botVault(m *tb.Message, itemTypeList []int64) {
|
||||
/*
|
||||
b, _ := json.Marshal(m)
|
||||
log.Printf("botVault (msg) :\n%s\n", string(b))
|
||||
@ -725,14 +725,31 @@ func botVault(m *tb.Message, l []int64) {
|
||||
return
|
||||
}
|
||||
|
||||
p := JobPayloadVaultStatus{
|
||||
MsgID64: int64(m.ID),
|
||||
ChatID64: m.Chat.ID,
|
||||
UserListID64: nil,
|
||||
ItemTypeListID64: nil,
|
||||
DepositChatID64: cfg.Bot.Depositchat,
|
||||
}
|
||||
p.UserListID64 = append(p.UserListID64, int46(m.Sender.ID))
|
||||
p.ItemTypeListID64 = append(p.ItemTypeListID64, itemTypeList)
|
||||
|
||||
b, _ := json.Marshal(p)
|
||||
t := time.Now().UTC()
|
||||
_, err := createJob(objSubTypeJobVaultStatus, objJobPriority, int64(m.User.ID), 0, t, b)
|
||||
|
||||
if err != nil {
|
||||
c := TGCommand{
|
||||
Type: commandReplyMsg,
|
||||
Text: "Not coded yet.",
|
||||
Text: fmt.Sprintf("%s", err),
|
||||
FromMsgID64: int64(m.ID),
|
||||
FromChatID64: m.Chat.ID,
|
||||
}
|
||||
TGCmdQueue <- c
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func botGDepositAll(m *tb.Message) {
|
||||
if !m.Private() {
|
||||
|
Loading…
Reference in New Issue
Block a user