Add support for creating polls
This commit is contained in:
parent
58c3891813
commit
2ad586ea1d
2 changed files with 22 additions and 0 deletions
|
@ -219,6 +219,15 @@ type Toot struct {
|
|||
SpoilerText string `json:"spoiler_text"`
|
||||
Visibility string `json:"visibility"`
|
||||
ScheduledAt *time.Time `json:"scheduled_at,omitempty"`
|
||||
Poll *TootPoll `json:"poll"`
|
||||
}
|
||||
|
||||
// TootPoll holds information for creating a poll in Toot.
|
||||
type TootPoll struct {
|
||||
Options []string `json:"options"`
|
||||
ExpiresInSeconds int64 `json:"expires_in"`
|
||||
Multiple bool `json:"multiple"`
|
||||
HideTotals bool `json:"hide_totals"`
|
||||
}
|
||||
|
||||
// Mention hold information for mention.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue