fix delay

This commit is contained in:
shoopea 2019-08-24 13:37:30 +08:00
parent 2471348dff
commit 901bb059d4

View File

@ -33,13 +33,13 @@ func clientSendCWMsg(userID64 int64, s string) {
clientSendCWMsgDelay(userID64, s, 0) clientSendCWMsgDelay(userID64, s, 0)
} }
func clientSendCWMsgDelay(userID64 int64, s string, d int64) { func clientSendCWMsgDelay(userID64 int64, s string, d time.Duration) {
c := TGCommand{ c := TGCommand{
Type: commandSendMsg, Type: commandSendMsg,
Text: s, Text: s,
FromUserID64: userID64, FromUserID64: userID64,
ToChatID64: userID64ChtWrsBot, ToChatID64: userID64ChtWrsBot,
Delay: d, Delay: int64(d),
} }
MQTGCmdQueue <- c MQTGCmdQueue <- c
} }