fix
This commit is contained in:
parent
9287915b39
commit
82f28ff298
4
td.go
4
td.go
@ -136,7 +136,7 @@ func getHistory(c *tdlib.Client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for lastMsgID64 >= 0 {
|
for lastMsgID64 >= 0 {
|
||||||
msgs, err := c.GetChatHistory(user_chtwrsbot, lastMsgID64, 0, 100, false)
|
msgs, err := c.GetChatHistory(user_chtwrsbot, lastMsgID64, 0, 50, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logOnError(err, "Cannot get history")
|
logOnError(err, "Cannot get history")
|
||||||
lastMsgID64 = -1
|
lastMsgID64 = -1
|
||||||
@ -172,7 +172,7 @@ func getHistory(c *tdlib.Client) {
|
|||||||
}
|
}
|
||||||
msgCount = msgCount + 1
|
msgCount = msgCount + 1
|
||||||
default:
|
default:
|
||||||
log.Printf("getHistory : no handler for %s\n", msg.Content)
|
log.Printf("getHistory : no handler for %s\n", msg.Content.GetMessageContentEnum())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user