This commit is contained in:
shoopea 2019-05-04 18:10:52 +08:00
parent 6b028742a7
commit 73bce99ee4

1
td.go
View File

@ -93,6 +93,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
lastMsgID64 = -1 lastMsgID64 = -1
} }
} else if msgs.TotalCount > 0 { } else if msgs.TotalCount > 0 {
fmt.Printf("Exported %d messages so far.\n", msgCount)
for _, msg := range msgs.Messages { for _, msg := range msgs.Messages {
switch msg.Content.GetMessageContentEnum() { switch msg.Content.GetMessageContentEnum() {
case tdlib.MessageTextType: case tdlib.MessageTextType: