Skip to content

Commit

Permalink
feat(Poll.LayoutType): add omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Jun 21, 2024
1 parent 2254a62 commit 4bcb601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2338,7 +2338,7 @@ type Poll struct {
Question PollMedia `json:"question"`
Answers []PollAnswer `json:"answers"`
AllowMultiselect bool `json:"allow_multiselect"`
LayoutType PollLayoutType `json:"layout_type"`
LayoutType PollLayoutType `json:"layout_type,omitempty"`

// NOTE: should be set only on creation, when fetching use Expiry.
Duration int `json:"duration,omitempty"`
Expand Down

0 comments on commit 4bcb601

Please sign in to comment.