diff --git a/client.go b/client.go index 1c522ca..ff4d5ce 100644 --- a/client.go +++ b/client.go @@ -33,13 +33,13 @@ func clientSendCWMsg(userID64 int64, s string) { clientSendCWMsgDelay(userID64, s, 0) } -func clientSendCWMsgDelay(userID64 int64, s string, d int64) { +func clientSendCWMsgDelay(userID64 int64, s string, d time.Duration) { c := TGCommand{ Type: commandSendMsg, Text: s, FromUserID64: userID64, ToChatID64: userID64ChtWrsBot, - Delay: d, + Delay: int64(d), } MQTGCmdQueue <- c }