This commit is contained in:
shoopea 2019-05-03 17:26:24 +08:00
parent a97e0701c9
commit ff880e3030
2 changed files with 1 additions and 1 deletions

View File

@ -112,6 +112,7 @@ func main() {
ownUserID64 = int64(OwnUserID(client)) ownUserID64 = int64(OwnUserID(client))
if *history { if *history {
log.Println("Getting history ..")
getHistory(client) getHistory(client)
} }

1
td.go
View File

@ -108,7 +108,6 @@ func ListenCW(c *tdlib.Client) {
} }
func getHistory(c *tdlib.Client) { func getHistory(c *tdlib.Client) {
log.Println("Getting history .. !")
var lastMsgID64 int64 = int64(math.MaxInt64) var lastMsgID64 int64 = int64(math.MaxInt64)
conn, err := amqp.Dial("amqp://" + cfg.Rabbit.User + ":" + cfg.Rabbit.Password + "@" + cfg.Rabbit.Host + "/" + cfg.Rabbit.Queue) conn, err := amqp.Dial("amqp://" + cfg.Rabbit.User + ":" + cfg.Rabbit.Password + "@" + cfg.Rabbit.Host + "/" + cfg.Rabbit.Queue)