diff --git a/main.go b/main.go index 438a231..a165578 100644 --- a/main.go +++ b/main.go @@ -134,7 +134,7 @@ func ListenCW(c *tdlib.Client) { mType := updateMsg.Message.Content.GetMessageContentEnum() if mType == "messageText" { user, err := c.GetUser(senderUserID) - if err != nil { + if err != nil { fmt.Println("ListenCW:", err.Error()) continue } @@ -146,7 +146,7 @@ func ListenCW(c *tdlib.Client) { } if senderUserID == ownUserID64 { m.Direction = Outgoing - } else + } else { m.Direction = Incoming }