This commit is contained in:
shoopea 2019-05-03 17:24:50 +08:00
parent cdec83c28d
commit a97e0701c9

1
td.go
View File

@ -108,6 +108,7 @@ 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)