fix delay
This commit is contained in:
parent
2114ec7be5
commit
f2b759ad47
2
td.go
2
td.go
@ -220,7 +220,7 @@ func OwnUserID(c *tdlib.Client) int32 {
|
||||
|
||||
func clientMsg(c *tdlib.Client, m TGCommand) {
|
||||
if m.Delay != time.Duration(0) {
|
||||
log.Printf("clientMsg : Delaying message by %d seconds.\n", int64(m.Delay))
|
||||
log.Printf("clientMsg : Delaying message by %.3f seconds.\n", m.Delay.Seconds())
|
||||
time.Sleep(m.Delay)
|
||||
}
|
||||
for {
|
||||
|
Loading…
Reference in New Issue
Block a user