This commit is contained in:
shoopea 2019-12-29 11:06:34 +08:00
parent 393f829799
commit 9300ca721a
2 changed files with 3 additions and 5 deletions

View File

@ -65,6 +65,6 @@ func main() {
ownUserID32 = OwnUserID(client)
ownUserID64 = int64(OwnUserID(client))
getHistory(client, &chtwrsID64)
getHistory(client, chtwrsID64)
}

6
td.go
View File

@ -10,7 +10,7 @@ import (
"github.com/Arman92/go-tdlib"
)
func getHistory(c *tdlib.Client, chatID64 *int64) {
func getHistory(c *tdlib.Client, chatID64 int64) {
var msgCount int32 = 0
var msgParsed int32 = 0
var loopOverflow int32 = 0
@ -19,9 +19,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64) {
var chat int64
var m ChatWarsMessage
chat = *chatID64
chatDetails, err := c.GetChat(chat)
chatDetails, err := c.GetChat(chatID64)
failOnError(err, "getHistory : GetChat")
fmt.Printf("Exporting historic messages for chat %d (%s) ...\n", chat, chatDetails.Title)