From 1c42bc86e66eae9766b454d8b36f6f2505f574da Mon Sep 17 00:00:00 2001 From: Suvorov Daniil Date: Sun, 30 May 2021 09:38:34 +0300 Subject: [PATCH] feat: VideoRestriction add DisclaimerType field --- object/video.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/object/video.go b/object/video.go index 993b0c90..f58240f3 100644 --- a/object/video.go +++ b/object/video.go @@ -81,14 +81,15 @@ func (video VideoVideo) ToAttachment() string { // VideoRestriction struct. type VideoRestriction struct { - Title string `json:"title"` - Text string `json:"text"` - AlwaysShown BaseBoolInt `json:"always_shown"` - Blur BaseBoolInt `json:"blur"` - CanPlay BaseBoolInt `json:"can_play"` - CanPreview BaseBoolInt `json:"can_preview"` - CardIcon []BaseImage `json:"card_icon"` - ListIcon []BaseImage `json:"list_icon"` + Title string `json:"title"` + Text string `json:"text"` + AlwaysShown BaseBoolInt `json:"always_shown"` + Blur BaseBoolInt `json:"blur"` + CanPlay BaseBoolInt `json:"can_play"` + CanPreview BaseBoolInt `json:"can_preview"` + CardIcon []BaseImage `json:"card_icon"` + ListIcon []BaseImage `json:"list_icon"` + DisclaimerType int `json:"disclaimer_type"` } // VideoActionButton struct.