test
This commit is contained in:
parent
f446f52f28
commit
9ae3c17cbd
2
td.go
2
td.go
@ -35,7 +35,7 @@ func ListenMQ(c *tdlib.Client, msgs <-chan TGCommand) {
|
|||||||
time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second)))
|
time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second)))
|
||||||
now = time.Now()
|
now = time.Now()
|
||||||
}
|
}
|
||||||
b, err := json.Marshal(m)
|
b, _ := json.Marshal(m)
|
||||||
log.Printf("New MQ message :\n%s\n", string(b))
|
log.Printf("New MQ message :\n%s\n", string(b))
|
||||||
switch m.Type {
|
switch m.Type {
|
||||||
case commandSendMsg:
|
case commandSendMsg:
|
||||||
|
Loading…
Reference in New Issue
Block a user