This commit is contained in:
shoopea 2019-05-15 10:38:23 +08:00
parent 1a9fe28549
commit 837cbae8eb

4
td.go
View File

@ -21,7 +21,7 @@ func ListenMe(c *tdlib.Client) {
}
receiver := c.AddEventReceiver(&tdlib.UpdateNewMessage{}, eventFilter, 100)
for newMsg := range receiver.Chan {
for _ := range receiver.Chan {
lastOwnTDMsg = time.Now()
}
}
@ -33,7 +33,7 @@ func ListenMQ(c *tdlib.Client, msgs <-chan ChatWarsCommand) {
time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second)))
now = time.Now()
}
log.Printf("ListenMQ : Consuming msg\n")
log.Printf("ListenMQ : Consuming msg %d\n", m.Type)
}
}