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)
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user