This commit is contained in:
shoopea 2019-05-06 11:10:46 +08:00
parent 016ad1104b
commit 4d510021e5

2
td.go
View File

@ -84,7 +84,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
fmt.Printf("Exporting historic messages for chat %d from user %d ...\n", chat, *senderUserID64) fmt.Printf("Exporting historic messages for chat %d from user %d ...\n", chat, *senderUserID64)
for lastParsedID64 >= 0 { for lastParsedID64 >= 0 {
msgs, err := c.GetChatHistory(chat, lastParsedID64, 0, 50, false) msgs, err := c.GetChatHistory(chat, lastParsedID64, 0, 99, false)
if err != nil { if err != nil {
if err.Error() == "timeout" { if err.Error() == "timeout" {
logOnError(err, "Waiting...") logOnError(err, "Waiting...")