fix
This commit is contained in:
parent
393f829799
commit
9300ca721a
2
main.go
2
main.go
@ -65,6 +65,6 @@ func main() {
|
||||
ownUserID32 = OwnUserID(client)
|
||||
ownUserID64 = int64(OwnUserID(client))
|
||||
|
||||
getHistory(client, &chtwrsID64)
|
||||
getHistory(client, chtwrsID64)
|
||||
|
||||
}
|
||||
|
6
td.go
6
td.go
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user