Skip to content

Commit

Permalink
Has spoiler input media (#43)
Browse files Browse the repository at this point in the history
* add missed field HasSpoiler to InputMedia types

* changelog
  • Loading branch information
negasus authored Oct 16, 2023
1 parent 2429f9b commit 8701e81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.8.2 (2023-10-16)

- add missed field HasSpoiler to InputMedia types

## v0.8.1 (2023-10-09)

- json tag typo fix (#41) vvok12*
Expand Down
3 changes: 3 additions & 0 deletions models/input_media.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type InputMediaPhoto struct {
Caption string `json:"caption,omitempty"`
ParseMode ParseMode `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`

MediaAttachment io.Reader `json:"-"`
}
Expand Down Expand Up @@ -57,6 +58,7 @@ type InputMediaVideo struct {
Height int `json:"height,omitempty"`
Duration int `json:"duration,omitempty"`
SupportsStreaming bool `json:"supports_streaming,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`

MediaAttachment io.Reader `json:"-"`
}
Expand Down Expand Up @@ -91,6 +93,7 @@ type InputMediaAnimation struct {
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Duration int `json:"duration,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`

MediaAttachment io.Reader `json:"-"`
}
Expand Down

0 comments on commit 8701e81

Please sign in to comment.