Add support for creating scheduled posts
parent
934e685e7a
commit
977e6c550e
13
mastodon.go
13
mastodon.go
|
@ -250,12 +250,13 @@ const (
|
||||||
|
|
||||||
// Toot is struct to post status.
|
// Toot is struct to post status.
|
||||||
type Toot struct {
|
type Toot struct {
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
InReplyToID ID `json:"in_reply_to_id"`
|
InReplyToID ID `json:"in_reply_to_id"`
|
||||||
MediaIDs []ID `json:"media_ids"`
|
MediaIDs []ID `json:"media_ids"`
|
||||||
Sensitive bool `json:"sensitive"`
|
Sensitive bool `json:"sensitive"`
|
||||||
SpoilerText string `json:"spoiler_text"`
|
SpoilerText string `json:"spoiler_text"`
|
||||||
Visibility string `json:"visibility"`
|
Visibility string `json:"visibility"`
|
||||||
|
ScheduledAt time.Time `json:"scheduled_at,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mention hold information for mention.
|
// Mention hold information for mention.
|
||||||
|
|
Loading…
Reference in New Issue