fix
This commit is contained in:
parent
a49d2fe73d
commit
0d95954583
5
td.go
5
td.go
@ -71,11 +71,12 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
|
|||||||
var lastMsgID64 int64 = int64(math.MaxInt64)
|
var lastMsgID64 int64 = int64(math.MaxInt64)
|
||||||
var msgCount int32 = 0
|
var msgCount int32 = 0
|
||||||
var lastMsgTime time.Time = time.Now()
|
var lastMsgTime time.Time = time.Now()
|
||||||
|
var chat int64
|
||||||
|
|
||||||
if *chatID64 == 0 {
|
if *chatID64 == 0 {
|
||||||
chat := user_chtwrsbot
|
chat = user_chtwrsbot
|
||||||
} else {
|
} else {
|
||||||
chat = chatID64
|
chat = *chatID64
|
||||||
}
|
}
|
||||||
|
|
||||||
for lastMsgID64 >= 0 {
|
for lastMsgID64 >= 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user