diff --git a/td.go b/td.go index 2c61769..5be6826 100644 --- a/td.go +++ b/td.go @@ -219,9 +219,9 @@ func OwnUserID(c *tdlib.Client) int32 { } func clientMsg(c *tdlib.Client, m TGCommand) { - log.Printf("clientMsg : Delaying message by %d seconds.\n", int64(m.Delay)) if m.Delay != time.Duration(0) { - time.Sleep(time.Duration(m.Delay) * time.Second) + log.Printf("clientMsg : Delaying message by %d seconds.\n", int64(m.Delay)) + time.Sleep(m.Delay) } for { lastOwnTDMsgMux.Lock()