diff --git a/td.go b/td.go index f2a33a2..c6eb438 100644 --- a/td.go +++ b/td.go @@ -34,6 +34,8 @@ func ListenMQ(c *tdlib.Client, msgs <-chan TGCommand) { time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second))) now = time.Now() } + b := json.Marshal(m) + log.Printf("New MQ message :\n%s\n", string(b)) switch m.Type { case commandSendMsg: msgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(m.Text, nil), true, true)