Skip to content

Commit

Permalink
Merge pull request #285 from gotd/fix/client-set-short-date
Browse files Browse the repository at this point in the history
fix(client): set Date for short updates
  • Loading branch information
ernado authored Apr 9, 2021
2 parents 575f5a3 + 341bc85 commit 1417a66
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions telegram/handle_updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func convertUpdateShortMessage(u *tg.UpdateShortMessage) *tg.UpdateShort {
FromID: &tg.PeerUser{UserID: u.UserID},
PeerID: &tg.PeerUser{UserID: u.UserID},
Message: u.Message,
Date: u.Date,
}
convertOptional(msg, u)

Expand All @@ -79,6 +80,7 @@ func convertUpdateShortChatMessage(u *tg.UpdateShortChatMessage) *tg.UpdateShort
FromID: &tg.PeerUser{UserID: u.FromID},
PeerID: &tg.PeerChat{ChatID: u.ChatID},
Message: u.Message,
Date: u.Date,
}
convertOptional(msg, u)

Expand All @@ -94,8 +96,9 @@ func convertUpdateShortChatMessage(u *tg.UpdateShortChatMessage) *tg.UpdateShort

func convertUpdateShortSentMessage(u *tg.UpdateShortSentMessage) *tg.UpdateShort {
msg := &tg.Message{
Out: u.Out,
ID: u.ID,
Out: u.Out,
ID: u.ID,
Date: u.Date,
}
convertOptional(msg, u)

Expand Down

0 comments on commit 1417a66

Please sign in to comment.