From ace2ff22e9928a9b1a650a2217203532e037bc0b Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 23 Aug 2019 13:55:16 +0800 Subject: [PATCH] fix compilation --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index 0146d48..c182afa 100644 --- a/td.go +++ b/td.go @@ -225,7 +225,7 @@ func OwnUserID(c *tdlib.Client) int32 { func clientMsg(c *tdlib.Client, m TGCommand) { if m.Delay != 0 { - time.Sleep(time.Duration(m.Delay * time.Second)) + time.Sleep(time.Duration(m.Delay) * time.Second) } switch m.Type { case commandSendMsg: