From f2b759ad47aacff57e087c7b015d2331f9bd1b6b Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 24 Aug 2019 14:10:21 +0800 Subject: [PATCH] fix delay --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index 5be6826..af5486d 100644 --- a/td.go +++ b/td.go @@ -220,7 +220,7 @@ func OwnUserID(c *tdlib.Client) int32 { func clientMsg(c *tdlib.Client, m TGCommand) { 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) } for {