diff --git a/td.go b/td.go index 08dad97..17e4f04 100644 --- a/td.go +++ b/td.go @@ -148,7 +148,7 @@ func getHistory(c *tdlib.Client) { MsgText: msg.Content.(*tdlib.MessageText).Text.Text, MsgID64: msg.ID, } - if senderUserID == ownUserID32 { + if msg.SenderUserID == ownUserID32 { m.Direction = Outgoing } else { m.Direction = Incoming