Skip to content

Commit

Permalink
Time markup
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Oct 23, 2020
1 parent df2c7fd commit f66484c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion markup_entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tdproto

import (
"fmt"
"time"
)

const (
Expand All @@ -13,6 +14,7 @@ const (
CodeBlock = "codeblock"
Quote = "quote"
Link = "link"
Time = "time"
Unsafe = "unsafe"
)

Expand All @@ -33,9 +35,12 @@ type MarkupEntity struct {
// Marker type
Type string `json:"type"`

// Link, if any
// Url, for Link type
Url string `json:"url,omitempty"`

// Time, for Time type
Time *time.Time `json:"time,omitempty"`

// List of internal markup entities
Entities []MarkupEntity `json:"entities,omitempty"`
}
Expand Down

0 comments on commit f66484c

Please sign in to comment.