typo
This commit is contained in:
parent
23d3acbb37
commit
2a8fcacfb7
4
main.go
4
main.go
@ -134,7 +134,7 @@ func ListenCW(c *tdlib.Client) {
|
|||||||
mType := updateMsg.Message.Content.GetMessageContentEnum()
|
mType := updateMsg.Message.Content.GetMessageContentEnum()
|
||||||
if mType == "messageText" {
|
if mType == "messageText" {
|
||||||
user, err := c.GetUser(senderUserID)
|
user, err := c.GetUser(senderUserID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("ListenCW:", err.Error())
|
fmt.Println("ListenCW:", err.Error())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ func ListenCW(c *tdlib.Client) {
|
|||||||
}
|
}
|
||||||
if senderUserID == ownUserID64 {
|
if senderUserID == ownUserID64 {
|
||||||
m.Direction = Outgoing
|
m.Direction = Outgoing
|
||||||
} else
|
} else {
|
||||||
m.Direction = Incoming
|
m.Direction = Incoming
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user