This commit is contained in:
shoopea 2019-05-17 16:31:13 +08:00
parent 7eabf7a7d7
commit 584b25be54
2 changed files with 3 additions and 3 deletions

4
bot.go
View File

@ -121,8 +121,8 @@ func botMsgRescan(m *tb.Message) {
TGCmdQueue <- c
} else {
c := TGCommand{
Type: commandReplyMsg,
Text: fmt.Sprint("Rescaning msg #%s", m.Payload), "Rescaning all msg scheduled.",
Type: commandReplyMsg,
Text: fmt.Sprint("Rescaning msg #%s", m.Payload),
FromMsgID64: int64(m.ID),
FromChatID64: m.Chat.ID,
}

View File

@ -242,7 +242,7 @@ func MQTGCmdWorker(id int, cmds <-chan TGCommand) {
false, // immediate
amqp.Publishing{
ContentType: "application/json",
Body: []byte(b),
Body: []byte(j),
})
logOnError(err, "MQTGCmdWorker["+strconv.Itoa(id)+"] : Publishing message.")
}