fix delay

This commit is contained in:
shoopea 2019-08-24 14:10:21 +08:00
parent 2114ec7be5
commit f2b759ad47

2
td.go
View File

@ -220,7 +220,7 @@ func OwnUserID(c *tdlib.Client) int32 {
func clientMsg(c *tdlib.Client, m TGCommand) { func clientMsg(c *tdlib.Client, m TGCommand) {
if m.Delay != time.Duration(0) { if m.Delay != time.Duration(0) {
log.Printf("clientMsg : Delaying message by %d seconds.\n", int64(m.Delay)) log.Printf("clientMsg : Delaying message by %.3f seconds.\n", m.Delay.Seconds())
time.Sleep(m.Delay) time.Sleep(m.Delay)
} }
for { for {