upd
This commit is contained in:
parent
a97e0701c9
commit
ff880e3030
1
main.go
1
main.go
@ -112,6 +112,7 @@ func main() {
|
||||
ownUserID64 = int64(OwnUserID(client))
|
||||
|
||||
if *history {
|
||||
log.Println("Getting history ..")
|
||||
getHistory(client)
|
||||
}
|
||||
|
||||
|
1
td.go
1
td.go
@ -108,7 +108,6 @@ func ListenCW(c *tdlib.Client) {
|
||||
}
|
||||
|
||||
func getHistory(c *tdlib.Client) {
|
||||
log.Println("Getting history .. !")
|
||||
var lastMsgID64 int64 = int64(math.MaxInt64)
|
||||
|
||||
conn, err := amqp.Dial("amqp://" + cfg.Rabbit.User + ":" + cfg.Rabbit.Password + "@" + cfg.Rabbit.Host + "/" + cfg.Rabbit.Queue)
|
||||
|
Loading…
Reference in New Issue
Block a user