fix
This commit is contained in:
parent
bc218d176f
commit
b17c5fcab6
4
td.go
4
td.go
@ -88,10 +88,10 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
|
||||
if err != nil {
|
||||
if err.Error() == "timeout" {
|
||||
logOnError(err, "Waiting...")
|
||||
fmt.Printf("Waiting : %d messages retrieved from %s ...\n", msgCount, lastMsgTime.Format(time.RFC3339))
|
||||
fmt.Printf("Waiting : %d messages retrieved out of %d dating back %s ...\n", msgCount, msgParsed, lastParsedTime.Format(time.RFC3339))
|
||||
} else {
|
||||
logOnError(err, "Cannot get history")
|
||||
lastMsgID64 = -1
|
||||
lastParsedID64 = -1
|
||||
}
|
||||
} else if msgs.TotalCount > 0 {
|
||||
for _, msg := range msgs.Messages {
|
||||
|
Loading…
Reference in New Issue
Block a user