fix compilation

This commit is contained in:
shoopea 2019-08-23 13:55:16 +08:00
parent fdf3d4e0dd
commit ace2ff22e9

2
td.go
View File

@ -225,7 +225,7 @@ func OwnUserID(c *tdlib.Client) int32 {
func clientMsg(c *tdlib.Client, m TGCommand) {
if m.Delay != 0 {
time.Sleep(time.Duration(m.Delay * time.Second))
time.Sleep(time.Duration(m.Delay) * time.Second)
}
switch m.Type {
case commandSendMsg: