fix
This commit is contained in:
parent
b6aeca0d90
commit
7fd7daba13
7
main.go
7
main.go
@ -135,6 +135,9 @@ func ListenCW(c *tdlib.Client) {
|
|||||||
fmt.Println("ListenCW:", err.Error())
|
fmt.Println("ListenCW:", err.Error())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
txt := updateMsg.Message.Content.(*tdlib.MessageText).Text.Text
|
||||||
|
t := time.Now()
|
||||||
|
|
||||||
m := ChatWarsMessage{
|
m := ChatWarsMessage{
|
||||||
UserID64 : ownUserID64,
|
UserID64 : ownUserID64,
|
||||||
@ -170,8 +173,8 @@ func ListenCW(c *tdlib.Client) {
|
|||||||
Body: []byte(b),
|
Body: []byte(b),
|
||||||
})
|
})
|
||||||
|
|
||||||
t := time.Now()
|
|
||||||
txt := updateMsg.Message.Content.(*tdlib.MessageText).Text.Text
|
|
||||||
fmt.Printf("[%d-%02d-%02d %02d:%02d:%02d-00:00]", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second())
|
fmt.Printf("[%d-%02d-%02d %02d:%02d:%02d-00:00]", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second())
|
||||||
fmt.Println(" === CHATWARS (", user.Username, ") =====================================================================")
|
fmt.Println(" === CHATWARS (", user.Username, ") =====================================================================")
|
||||||
fmt.Println(txt, "\n")
|
fmt.Println(txt, "\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user