diff --git a/td.go b/td.go index 0e3fcf9..5d19bb5 100644 --- a/td.go +++ b/td.go @@ -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) } }