Skip to content

Commit

Permalink
hotfix(chat): fix DraftRevision field
Browse files Browse the repository at this point in the history
  • Loading branch information
HexPande committed May 22, 2023
1 parent 90c2efe commit e91407d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ type Chat struct {
// Last message draft, if any
Draft string `json:"draft,omitempty"`

// Deprecated: use DraftRevision instead.
// Last message draft version, if any
// Deprecated: use DraftRevision instead
DraftGentime int64 `json:"draft_gentime,omitempty"`

// Last message draft version, if any, Unixtime(ms)
DraftRevision int64 `json:"revision,omitempty"`
// Last message draft version, if any. unixtime(ms)
DraftRevision int64 `json:"draft_revision,omitempty"`

// Hidden chat
Hidden bool `json:"hidden,omitempty"`
Expand Down Expand Up @@ -246,7 +246,7 @@ type Chat struct {
// Date of the last message sent even if it was deleted
LastActivity ISODateTimeString `json:"last_activity,omitempty"`

// Deprecated: use DraftRevision instead
// Deprecated: use DraftRevision instead.
DraftNum int64 `json:"draft_num,omitempty"`

// Start date of meeting chat
Expand Down

0 comments on commit e91407d

Please sign in to comment.