fix delay
This commit is contained in:
parent
2471348dff
commit
901bb059d4
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user