testtest
This commit is contained in:
parent
47691bc92b
commit
56f36d0503
4
main.go
4
main.go
@ -105,12 +105,12 @@ func main() {
|
|||||||
ownUserID64 = int64(OwnUserID(client))
|
ownUserID64 = int64(OwnUserID(client))
|
||||||
|
|
||||||
if *history {
|
if *history {
|
||||||
|
fmt.Printf("Retrieving chat.\n")
|
||||||
go getHistory(client)
|
go getHistory(client)
|
||||||
}
|
}
|
||||||
|
|
||||||
go ListenCW(client)
|
|
||||||
|
|
||||||
fmt.Println("Started !")
|
fmt.Println("Started !")
|
||||||
|
go ListenCW(client)
|
||||||
|
|
||||||
// Main loop
|
// Main loop
|
||||||
for {
|
for {
|
||||||
|
2
td.go
2
td.go
@ -108,8 +108,6 @@ func getHistory(c *tdlib.Client) {
|
|||||||
var msgCount int32 = 0
|
var msgCount int32 = 0
|
||||||
var lastMsgTime time.Time = time.Now()
|
var lastMsgTime time.Time = time.Now()
|
||||||
|
|
||||||
fmt.Printf("Retrieving chat.\n")
|
|
||||||
|
|
||||||
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)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user