From 8701e81a7dcba160559a4b63693e9f339cfa2cb1 Mon Sep 17 00:00:00 2001 From: Andrew Privalov Date: Mon, 16 Oct 2023 15:35:48 +0300 Subject: [PATCH] Has spoiler input media (#43) * add missed field HasSpoiler to InputMedia types * changelog --- CHANGELOG.md | 4 ++++ models/input_media.go | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 474bd46..19af790 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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* diff --git a/models/input_media.go b/models/input_media.go index 0a4d604..391dcdf 100644 --- a/models/input_media.go +++ b/models/input_media.go @@ -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:"-"` } @@ -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:"-"` } @@ -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:"-"` }