summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/SevereCloud/vksdk/v2/object
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/object')
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/market.go2
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/marusia.go52
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/messages.go13
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/stories.go35
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/object/video.go1
5 files changed, 90 insertions, 13 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/market.go b/vendor/github.com/SevereCloud/vksdk/v2/object/market.go
index a74f8b83..a1d75213 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/market.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/market.go
@@ -28,6 +28,8 @@ type MarketMarketAlbum struct {
Photo PhotosPhoto `json:"photo"`
Title string `json:"title"` // Market album title
UpdatedTime int `json:"updated_time"` // Date when album has been updated last time in Unixtime
+ IsMain BaseBoolInt `json:"is_main"`
+ IsHidden BaseBoolInt `json:"is_hidden"`
}
// ToAttachment return attachment format.
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/marusia.go b/vendor/github.com/SevereCloud/vksdk/v2/object/marusia.go
new file mode 100644
index 00000000..a6671d4d
--- /dev/null
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/marusia.go
@@ -0,0 +1,52 @@
+package object // import "github.com/SevereCloud/vksdk/v2/object"
+
+import (
+ "encoding/json"
+)
+
+// MarusiaPicture struct.
+type MarusiaPicture struct {
+ ID int `json:"id"`
+ OwnerID int `json:"owner_id"`
+}
+
+// MarusiaPictureUploadResponse struct.
+type MarusiaPictureUploadResponse struct {
+ Hash string `json:"hash"` // Uploading hash
+ Photo json.RawMessage `json:"photo"` // Uploaded photo data
+ Server int `json:"server"` // Upload server number
+ AID int `json:"aid"`
+ MessageCode int `json:"message_code"`
+}
+
+// MarusiaAudio struct.
+type MarusiaAudio struct {
+ ID int `json:"id"`
+ Title string `json:"title"`
+ OwnerID int `json:"owner_id"`
+}
+
+// MarusiaAudioUploadResponse struct.
+type MarusiaAudioUploadResponse struct {
+ Sha string `json:"sha"`
+ Secret string `json:"secret"`
+ Meta MarusiaAudioMeta `json:"meta"`
+ Hash string `json:"hash"`
+ Server string `json:"server"`
+ UserID int `json:"user_id"`
+ RequestID string `json:"request_id"`
+}
+
+// MarusiaAudioMeta struct.
+type MarusiaAudioMeta struct {
+ Album string `json:"album"`
+ Artist string `json:"artist"`
+ Bitrate string `json:"bitrate"`
+ Duration string `json:"duration"`
+ Genre string `json:"genre"`
+ Kad string `json:"kad"`
+ Md5 string `json:"md5"`
+ Md5DataSize string `json:"md5_data_size"`
+ Samplerate string `json:"samplerate"`
+ Title string `json:"title"`
+}
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/messages.go b/vendor/github.com/SevereCloud/vksdk/v2/object/messages.go
index c6fcf5d8..4c553486 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/messages.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/messages.go
@@ -375,17 +375,17 @@ type MessagesTemplateElement struct {
// MessagesTemplateElementCarousel struct.
type MessagesTemplateElementCarousel struct {
- Title string `json:"title"`
- Action MessagesTemplateElementCarouselAction `json:"action"`
- Description string `json:"description"`
- Photo PhotosPhoto `json:"photo"`
- Buttons []MessagesKeyboardButton `json:"buttons"`
+ Title string `json:"title,omitempty"`
+ Action MessagesTemplateElementCarouselAction `json:"action,omitempty"`
+ Description string `json:"description,omitempty"`
+ Photo *PhotosPhoto `json:"photo,omitempty"`
+ Buttons []MessagesKeyboardButton `json:"buttons,omitempty"`
}
// MessagesTemplateElementCarouselAction struct.
type MessagesTemplateElementCarouselAction struct {
Type string `json:"type"`
- Link string `json:"link"`
+ Link string `json:"link,omitempty"`
}
// MessageContentSourceMessage ...
@@ -443,6 +443,7 @@ type MessagesChat struct {
AdminID int `json:"admin_id"` // Chat creator ID
ID int `json:"id"` // Chat ID
IsDefaultPhoto BaseBoolInt `json:"is_default_photo"`
+ IsGroupChannel BaseBoolInt `json:"is_group_channel"`
Photo100 string `json:"photo_100"` // URL of the preview image with 100 px in width
Photo200 string `json:"photo_200"` // URL of the preview image with 200 px in width
Photo50 string `json:"photo_50"` // URL of the preview image with 50 px in width
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/stories.go b/vendor/github.com/SevereCloud/vksdk/v2/object/stories.go
index 248fd8c0..c04ab653 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/stories.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/stories.go
@@ -251,8 +251,10 @@ type StoriesClickableSticker struct { // nolint: maligned
StickerID int `json:"sticker_id,omitempty"`
StickerPackID int `json:"sticker_pack_id,omitempty"`
- // type=place
+ // type=place or geo
PlaceID int `json:"place_id,omitempty"`
+ // Title
+ CategoryID int `json:"category_id,omitempty"`
// type=question
Question string `json:"question,omitempty"`
@@ -267,8 +269,14 @@ type StoriesClickableSticker struct { // nolint: maligned
Hashtag string `json:"hashtag,omitempty"`
// type=link
- LinkObject BaseLink `json:"link_object,omitempty"`
- TooltipText string `json:"tooltip_text,omitempty"`
+ LinkObject BaseLink `json:"link_object,omitempty"`
+ TooltipText string `json:"tooltip_text,omitempty"`
+ TooltipTextKey string `json:"tooltip_text_key,omitempty"`
+
+ // type=time
+ TimestampMs int64 `json:"timestamp_ms,omitempty"`
+ Date string `json:"date,omitempty"`
+ Title string `json:"title,omitempty"`
// type=market_item
Subtype string `json:"subtype,omitempty"`
@@ -290,10 +298,19 @@ type StoriesClickableSticker struct { // nolint: maligned
AudioStartTime int `json:"audio_start_time,omitempty"`
// type=app
- App AppsApp `json:"app"`
- AppContext string `json:"app_context"`
- HasNewInteractions BaseBoolInt `json:"has_new_interactions"`
- IsBroadcastNotifyAllowed BaseBoolInt `json:"is_broadcast_notify_allowed"`
+ App AppsApp `json:"app,omitempty"`
+ AppContext string `json:"app_context,omitempty"`
+ HasNewInteractions BaseBoolInt `json:"has_new_interactions,omitempty"`
+ IsBroadcastNotifyAllowed BaseBoolInt `json:"is_broadcast_notify_allowed,omitempty"`
+
+ // type=emoji
+ Emoji string `json:"emoji,omitempty"`
+
+ // type=text
+ Text string `json:"text,omitempty"`
+ BackgroundStyle string `json:"background_style,omitempty"`
+ Alignment string `json:"alignment,omitempty"`
+ SelectionColor string `json:"selection_color,omitempty"`
}
// TODO: сделать несколько структур для кликабельного стикера
@@ -313,6 +330,10 @@ const (
ClickableStickerPoll = "poll"
ClickableStickerMusic = "music"
ClickableStickerApp = "app"
+ ClickableStickerTime = "time"
+ ClickableStickerEmoji = "emoji"
+ ClickableStickerGeo = "geo"
+ ClickableStickerText = "text"
)
// Subtype of clickable sticker.
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/video.go b/vendor/github.com/SevereCloud/vksdk/v2/object/video.go
index 0816af24..5a7e9e8d 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/object/video.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/object/video.go
@@ -213,6 +213,7 @@ type VideoVideoFull struct {
Description string `json:"description"` // Video description
Duration int `json:"duration"` // Video duration in seconds
Files VideoVideoFiles `json:"files"`
+ Trailer VideoVideoFiles `json:"trailer"`
ID int `json:"id"` // Video ID
Likes BaseLikes `json:"likes"`
Live int `json:"live"` // Returns if the video is live translation