Add support for creating scheduled posts

pull/118/head
Ben Lubar 2019-06-13 22:21:55 -05:00 committed by mattn
parent 934e685e7a
commit 977e6c550e
1 changed files with 7 additions and 6 deletions

View File

@ -250,12 +250,13 @@ const (
// Toot is struct to post status.
type Toot struct {
Status string `json:"status"`
InReplyToID ID `json:"in_reply_to_id"`
MediaIDs []ID `json:"media_ids"`
Sensitive bool `json:"sensitive"`
SpoilerText string `json:"spoiler_text"`
Visibility string `json:"visibility"`
Status string `json:"status"`
InReplyToID ID `json:"in_reply_to_id"`
MediaIDs []ID `json:"media_ids"`
Sensitive bool `json:"sensitive"`
SpoilerText string `json:"spoiler_text"`
Visibility string `json:"visibility"`
ScheduledAt time.Time `json:"scheduled_at,omitempty"`
}
// Mention hold information for mention.