Skip to content

Commit

Permalink
Message.drafted
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Nov 26, 2020
1 parent db5977a commit 48fb310
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 13 additions & 1 deletion inspect/markdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,9 @@ Chat message.

* **message_id** (string) — Message uid.

* **created** (string, readonly for clients) — Message creation datetime (set by server side).
* **created** (string, readonly for clients) — Message creation datetime (set by server side) or sending datetime in future for draft messages.

* **drafted** (string, readonly for clients, omitempty) — Creation datetime for draft messages.

* **gentime** (int64, readonly for clients) — Object version.

Expand Down Expand Up @@ -897,6 +899,16 @@ Task color rules color.
* **light** (string) — Light.


### <a name="TaskCounters"></a>TaskCounters
Tasks counters.

* **jid** (JID) — task jid.

* **num_unread** (uint) — unread counter.

* **num_unread_notice** (uint) — unread notice counter.


### <a name="TaskItem"></a>TaskItem
Task checklist item.

Expand Down
5 changes: 4 additions & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,12 @@ type Message struct {
// Message uid
MessageId string `json:"message_id"`

// Message creation datetime (set by server side)
// Message creation datetime (set by server side) or sending datetime in future for draft messages
Created string `json:"created" tdproto:"readonly"`

// Creation datetime for draft messages
Drafted string `json:"drafted,omitempty" tdproto:"readonly"`

// Object version
Gentime int64 `json:"gentime" tdproto:"readonly"`

Expand Down

0 comments on commit 48fb310

Please sign in to comment.