This commit is contained in:
shoopea 2019-06-10 21:33:04 +08:00
parent 6723395267
commit f446f52f28

2
td.go
View File

@ -35,7 +35,7 @@ func ListenMQ(c *tdlib.Client, msgs <-chan TGCommand) {
time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second)))
now = time.Now()
}
b := json.Marshal(m)
b, err := json.Marshal(m)
log.Printf("New MQ message :\n%s\n", string(b))
switch m.Type {
case commandSendMsg: