update

package
v1.0.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePayload

func DecodePayload(rawPayload rawPayload) (map[string]string, error)

Types

type Action

type Action struct {
	Type     string      `json:"type,omitempty"`
	MemberID int         `json:"member_id,omitempty"`
	Text     string      `json:"text,omitempty"`
	EMail    string      `json:"email,omitempty"`
	Photo    PhotoAction `json:"photo,omitempty"`
}

type AppNotification

type AppNotification struct {
	UserID  int    `json:"user_id,omitempty"`
	ID      int    `json:"app_id,omitempty"`
	Payload string `json:"payload,omitempty"`
	GroupID int    `json:"group_id,omitempty"`
}

type Attachment

type Attachment struct {
	Type     string             `json:"type,omitempty"`
	Photo    AttachmentPhoto    `json:"photo,omitempty"`
	Document AttachmentDocument `json:"doc,omitempty"`
	Video    AttachmentVideo    `json:"video,omitempty"`
	Audio    AttachmentAudio    `json:"audio,omitempty"`
	Market   AttachmentMarket   `json:"market,omitempty"`
}

type AttachmentAudio

type AttachmentAudio Audio

type AttachmentDocument

type AttachmentDocument struct {
	ID        int    `json:"id,omitempty"`
	OwnerID   int    `json:"owner_id,omitempty"`
	Title     string `json:"title,omitempty"`
	Size      int    `json:"size,omitempty"`
	Extension string `json:"ext,omitempty"`
	Date      int    `json:"date,omitempty"`
	Type      int    `json:"type,omitempty"`
	URL       string `json:"url,omitempty"`
	IsUnsafe  int    `json:"is_unsafe,omitempty"`
	AccessKey string `json:"access_key,omitempty"`
}

type AttachmentMarket

type AttachmentMarket struct {
	ID          int               `json:"id,omitempty"`
	OwnerID     int               `json:"owner_id,omitempty"`
	Title       string            `json:"title,omitempty"`
	Description string            `json:"description,omitempty"`
	Price       Price             `json:"price,omitempty"`
	Dimensions  Dimensions        `json:"dimensions,omitempty"`
	Weight      int               `json:"weight,omitempty"`
	Category    Category          `json:"category,omitempty"`
	Cover       string            `json:"thumb_photo,omitempty"`
	Date        int               `json:"date,omitempty"`
	Access      int               `json:"availability,omitempty"`
	IsFavorite  bool              `json:"is_favorite,omitempty"`
	Vendor      string            `json:"sku,omitempty"`
	Photos      []AttachmentPhoto `json:"photos,omitempty"`
	CanComment  int               `json:"can_comment,omitempty"`
	CanRepost   int               `json:"can_repost,omitempty"`
	Likes       []Likes           `json:"likes,omitempty"`
	URL         string            `json:"url,omitempty"`
	ButtonTitle string            `json:"button_title,omitempty"`
}

type AttachmentPhoto

type AttachmentPhoto Photo

type AttachmentVideo

type AttachmentVideo Video

type Audio

type Audio struct {
	ID       int    `json:"id,omitempty"`
	OwnerID  int    `json:"owner_id,omitempty"`
	Artist   string `json:"artist,omitempty"`
	Title    string `json:"title,omitempty"`
	Duration int    `json:"duration,omitempty"`
	URL      string `json:"url,omitempty"`
	LyricsID int    `json:"lyrics_id,omitempty"`
	AlbumID  int    `json:"album_id,omitempty"`
	GenreID  int    `json:"genre_id,omitempty"`
	Date     int    `json:"date,omitempty"`
	NoSearch int    `json:"no_search,omitempty"`
	IsHQ     int    `json:"is_hq,omitempty"`

	IsExplicit          bool          `json:"is_explicit,omitempty"`
	IsFocusTrack        bool          `json:"is_focus_track,omitempty"`
	TrackCode           string        `json:"track_code,omitempty"`
	Artists             []AudioArtist `json:"main_artists,omitempty"`
	ShortVideosAllowed  bool          `json:"short_videos_allowed,omitempty"`
	StoriesAllowed      bool          `json:"stories_allowed,omitempty"`
	StoriesCoverAllowed bool          `json:"stories_cover_allowed,omitempty"`
}

type AudioArtist

type AudioArtist struct {
	ID        string `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	Domain    string `json:"domain,omitempty"`
	Followed  bool   `json:"is_followed,omitempty"`
	CanFollow bool   `json:"can_follow,omitempty"`
}

type BlockUser

type BlockUser struct {
	AdminID     int    `json:"admin_id,omitempty"`
	UserID      int    `json:"user_id,omitempty"`
	UnblockDate int    `json:"unblock_date,omitempty"`
	Reason      int    `json:"reason,omitempty"`
	Comment     string `json:"comment,omitempty"`
}

type BoardComment

type BoardComment struct {
	ID          int          `json:"id,omitempty"`
	UserID      int          `json:"from_id,omitempty"`
	Date        int          `json:"date,omitempty"`
	Text        string       `json:"text,omitempty"`
	Attachments []Attachment `json:"attachments,omitempty"`
	Likes       Likes        `json:"likes,omitempty"`

	TopicID      int `json:"topic_id,omitempty"`
	TopicOwnerID int `json:"topic_owner_id,omitempty"`
}

type Callback

type Callback struct {
	ChatID        int        `json:"peer_id,omitempty"`
	UserID        int        `json:"user_id,omitempty"`
	EventID       string     `json:"event_id,omitempty"`
	RawPayload    rawPayload `json:"payload,omitempty"`
	Payload       map[string]string
	ChatMessageID int `json:"conversation_message_id,omitempty"`
}

type Category

type Category struct {
	ID      int     `json:"id,omitempty"`
	Name    string  `json:"name,omitempty"`
	Section Section `json:"section,omitempty"`
}

type ChangeDonatePrice

type ChangeDonatePrice struct {
	OldAmount            int     `json:"amount_old,omitempty"`
	NewAmount            int     `json:"amount_new,omitempty"`
	AmountDiff           float32 `json:"amount_diff,omitempty"`
	AmountDiffWithoutFee float32 `json:"amount_diff_without_fee,omitempty"`
	UserID               int     `json:"user_id,omitempty"`
}

type ChangeGroupPhoto

type ChangeGroupPhoto struct {
	UserID int             `json:"user_id,omitempty"`
	Photo  AttachmentPhoto `json:"photo,omitempty"`
}

type ClientInfo

type ClientInfo struct {
	ButtonActions  []string `json:"button_actions,omitempty"`
	Keyboard       bool     `json:"keyboard,omitempty"`
	InlineKeyboard bool     `json:"inline_keyboard,omitempty"`
	Carousel       bool     `json:"carousel,omitempty"`
	LanguageID     int      `json:"lang_id,omitempty"`
}

type Comments

type Comments struct {
	Count         int  `json:"count,omitempty"`
	CanPost       int  `json:"can_post,omitempty"`
	GroupsCanPost bool `json:"groups_can_post,omitempty"`
	CanClose      bool `json:"can_close,omitempty"`
	CanOpen       bool `json:"can_open,omitempty"`
}

type ControlGroup

type ControlGroup struct {
	UserID  int          `json:"user_id,omitempty"`
	Changes GroupChanges `json:"changes,omitempty"`
}

type Coordinates

type Coordinates struct {
	Latitude  float64 `json:"latitude,omitempty"`
	Longitude float64 `json:"longitude,omitempty"`
}
type Copyright struct {
	ID   int    `json:"id,omitempty"`
	Link string `json:"link,omitempty"`
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

type Currency

type Currency struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type DeleteBoardComment

type DeleteBoardComment struct {
	TopicOwnerID int `json:"topic_owner_id,omitempty"`
	TopicID      int `json:"topic_id,omitempty"`
	ID           int `json:"id,omitempty"`
}

type DeleteMarketComment

type DeleteMarketComment struct {
	OwnerID   int `json:"owner_id,omitempty"`
	ID        int `json:"id,omitempty"`
	UserID    int `json:"user_id,omitempty"`
	DeleterID int `json:"deleter_id,omitempty"`
	ItemID    int `json:"item_id,omitempty"`
}

type DeletePostComment

type DeletePostComment struct {
	OwnerID   int `json:"owner_id,omitempty"`
	ID        int `json:"id,omitempty"`
	DeleterID int `json:"deleter_id,omitempty"`
	PostID    int `json:"post_id,omitempty"`
}

type DeleteVideoComment

type DeleteVideoComment struct {
	OwnerID   int `json:"owner_id,omitempty"`
	ID        int `json:"id,omitempty"`
	UserID    int `json:"user_id,omitempty"`
	DeleterID int `json:"deleter_id,omitempty"`
	VideoID   int `json:"ideo_id,omitempty"`
}

type Dimensions

type Dimensions struct {
	Width  int `json:"width,omitempty"`
	Height int `json:"height,omitempty"`
	Length int `json:"length,omitempty"`
}

type DisableMessage

type DisableMessage struct {
	UserID int `json:"user_id,omitempty"`
}

type EditOwners

type EditOwners struct {
	AdminID  int `json:"admin_id,omitempty"`
	UserID   int `json:"user_id,omitempty"`
	OldLevel int `json:"level_old,omitempty"`
	NewLevel int `json:"level_new,omitempty"`
}

type EnableMessage

type EnableMessage struct {
	UserID int    `json:"user_id,omitempty"`
	Key    string `json:"key,omitempty"`
}

type ExpiredDonate

type ExpiredDonate struct {
	UserID int `json:"user_id,omitempty"`
}

type Geolocation

type Geolocation struct {
	Type        string      `json:"type,omitempty"`
	Coordinates Coordinates `json:"coordinates,omitempty"`
	Place       Place       `json:"place,omitempty"`
	ShowMap     string      `json:"showmap,omitempty"`
}

type GroupChange

type GroupChange struct {
	Title             string `json:"title,omitempty"`
	Description       string `json:"description,omitempty"`
	Access            any    `json:"access,omitempty"`
	ScreenName        string `json:"screen_name,omitempty"`
	PublicCategory    any    `json:"public_caterogy,omitempty"`
	PublicSubcategory any    `json:"public_subcategory,omitempty"`
	AgeLimits         int    `json:"age_limits,omitempty"`
	Website           string `json:"website,omitempty"`
	EnablePhoto       any    `json:"enable_photo,omitempty"`
	OldValue          int    `json:"old_value,omitempty"`
	NewValue          int    `json:"new_value,omitempty"`
}

type GroupChanges

type GroupChanges struct {
	Topics GroupChange `json:"topics,omitempty"`
	Photos GroupChange `json:"photos,omitempty"`
	Videos GroupChange `json:"video,omitempty"`
	Audios GroupChange `json:"audio,omitempty"`
	Links  GroupChange `json:"links,omitempty"`
	Market GroupChange `json:"market,omitempty"`
}

type JoinGroup

type JoinGroup struct {
	UserID   int    `json:"user_id,omitempty"`
	JoinType string `json:"join_type,omitempty"`
}

type LeaveGroup

type LeaveGroup struct {
	UserID int `json:"user_id,omitempty"`
	Self   int `json:"self,omitempty"`
}

type Like

type Like struct {
	LikerID       int    `json:"liker_id,omitempty"`
	ObjectType    string `json:"object_type,omitempty"`
	ObjectOwnerID int    `json:"object_owner_id,omitempty"`
	ThreadReplyID int    `json:"thread_reply_id,omitempty"`
	PostID        int    `json:"post_id,omitempty"`
	ObjectID      int    `json:"object_id,omitempty"`
}

type Likes

type Likes struct {
	Count      int `json:"count,omitempty"`
	Likes      int `json:"user_likes,omitempty"`
	CanLike    int `json:"can_like,omitempty"`
	CanPublish int `json:"can_publish,omitempty"`
}

type MarketComment

type MarketComment struct {
	PostComment

	OwnerID int `json:"market_owner_id,omitempty"`
	ItemID  int `json:"item_id,omitempty"`
}

type Message

type Message struct {
	ID             int          `json:"id,omitempty"`
	Date           int          `json:"date,omitempty"`
	ChatID         int          `json:"peer_id,omitempty"`
	UserID         int          `json:"from_id,omitempty"`
	Text           string       `json:"text,omitempty"`
	RandomID       int          `json:"random_id,omitempty"`
	Referral       string       `json:"ref,omitempty"`
	ReferralSource string       `json:"ref_source,omitempty"`
	Attachments    []Attachment `json:"attachments,omitempty"`
	Important      bool         `json:"important,omitempty"`
	Geolocation    Geolocation  `json:"geo,omitempty"`
	RawPayload     rawPayload   `json:"payload,omitempty"`
	Payload        map[string]string
	Keyboard       keyboard.Keyboard `json:"keyboard,omitempty"`
	Forwards       []*Message        `json:"fwd_messages,omitempty"`
	Reply          *Message          `json:"reply_message,omitempty"`
	Action         Action            `json:"action,omitempty"`
	AuthorID       int               `json:"admin_author_id,omitempty"`
	ChatMessageID  int               `json:"conversation_message_id,omitempty"`
	Cropped        bool              `json:"is_cropped,omitempty"`
	MembersCount   int               `json:"members_count,omitempty"`
	UpdateTime     int               `json:"update_time,omitempty"`
	Listened       bool              `json:"was_listened,omitempty"`
	PinnedAt       int               `json:"pinned_at,omitempty"`
	Tag            string            `json:"message_tag,omitempty"`
	Out            int               `json:"out,omitempty"`
	Hidden         bool              `json:"is_hidden,omitempty"`
	ExpireTime     int               `json:"expire_ttl"`
}

func (Message) ForEachForwards

func (message Message) ForEachForwards(execute forwardsMain)

type Object

type Object struct {
	Message    Message    `json:"message,omitempty"`
	ClientInfo ClientInfo `json:"client_info,omitempty"`
}

type OrderDelivery

type OrderDelivery struct {
	Address       string `json:"address,omitempty"`
	Type          string `json:"type,omitempty"`
	TrackNumber   string `json:"track_number,omitempty"`
	TrackLink     string `json:"track_link,omitempty"`
	DeliveryPoint any    `json:"delivery_point,omitempty"`
}

type OrderMarket

type OrderMarket struct {
	ID                 int                `json:"id,omitempty"`
	GroupID            int                `json:"group_id,omitempty"`
	UserID             int                `json:"user_id,omitempty"`
	Date               int                `json:"date,omitempty"`
	VariantsGroupingID int                `json:"variants_grouping_id,omitempty"`
	IsMainVariant      bool               `json:"is_main_variant,omitempty"`
	PropertyValues     []PropertyValues   `json:"property_values,omitempty"`
	CartQuantity       int                `json:"cart_quantity,omitempty"`
	Status             int                `json:"status,omitempty"`
	ItemsCount         int                `json:"items_count,omitempty"`
	TotalPrice         TotalPrice         `json:"total_price,omitempty"`
	DisplayOrderID     string             `json:"display_order_id,omitempty"`
	Comment            string             `json:"comment,omitempty"`
	PreviewOrderItems  []AttachmentMarket `json:"preview_order_items,omitempty"`
	Delivery           OrderDelivery      `json:"delivery,omitempty"`
	Recipient          Recipient          `json:"recipient,omitempty"`
}

type Photo

type Photo struct {
	ID         int         `json:"id,omitempty"`
	AlbumID    int         `json:"album_id,omitempty"`
	OwnerID    int         `json:"owner_id,omitempty"`
	UserID     int         `json:"user_id,omitempty"`
	Date       int         `json:"date,omitempty"`
	Text       string      `json:"text,omitempty"`
	Sizes      []PhotoSize `json:"sizes,omitempty"`
	Width      int         `json:"width,omitempty"`
	Height     int         `json:"height,omitempty"`
	SquareCrop string      `json:"square_crop,omitempty"`
	HasTags    bool        `json:"has_tags,omitempty"`
}

type PhotoAction

type PhotoAction struct {
	X50  string `json:"photo_50,omitempty"`
	X100 string `json:"photo_100,omitempty"`
	X200 string `json:"photo_200,omitempty"`
}

type PhotoComment

type PhotoComment struct {
	PostComment

	PhotoID      int `json:"photo_id,omitempty"`
	PhotoOwnerID int `json:"photo_owner_id,omitempty"`
}

type PhotoDocument

type PhotoDocument struct {
	Sizes []PhotoDocumentSize `json:"sizes,omitempty"`
}

type PhotoDocumentSize

type PhotoDocumentSize struct {
	Type   string `json:"type,omitempty"`
	Source string `json:"src,omitempty"`
	Width  int    `json:"width,omitempty"`
	Height int    `json:"height,omitempty"`
}

type PhotoSize

type PhotoSize struct {
	Type   string `json:"type,omitempty"`
	URL    string `json:"url,omitempty"`
	Width  int    `json:"width,omitempty"`
	Height int    `json:"height,omitempty"`
}

type Place

type Place struct {
	ID        int    `json:"id,omitempty"`
	Title     string `json:"title,omitempty"`
	Latitude  int    `json:"latitude,omitempty"`
	Longitude int    `json:"longitude,omitempty"`
	Created   int    `json:"created,omitempty"`
	Icon      string `json:"icon,omitempty"`
	Country   string `json:"country,omitempty"`
	City      string `json:"city,omitempty"`
}

type Post

type Post struct {
	ID           int          `json:"id,omitempty"`
	OwnerID      int          `json:"owner_id,omitempty"`
	UserID       int          `json:"from_id,omitempty"`
	CreatedBy    int          `json:"created_by,omitempty"`
	Date         int          `json:"date,omitempty"`
	Text         string       `json:"text,omitempty"`
	ReplyOwnerID int          `json:"reply_owner_id,omitempty"`
	ReplyPostID  int          `json:"reply_post_id,omitempty"`
	FriendsOnly  int          `json:"friends_only,omitempty"`
	Comments     Comments     `json:"comments,omitempty"`
	Copyright    Copyright    `json:"copyright,omitempty"`
	Likes        Likes        `json:"likes,omitempty"`
	Reposts      Reposts      `json:"reposts,omitempty"`
	Views        Views        `json:"views,omitempty"`
	Type         string       `json:"post_type,omitempty"`
	Source       string       `json:"post_source,omitempty"`
	Attachments  []Attachment `json:"attachments,omitempty"`
	Geolocation  Geolocation  `json:"geo,omitempty"`
	SignerID     int          `json:"signer_id,omitempty"`
	CopyHistory  []any        `json:"copy_history,omitempty"`
	CanPin       int          `json:"can_pin,omitempty"`
	CanDelete    int          `json:"can_delete,omitempty"`
	CanEdit      int          `json:"can_edit,omitempty"`
	Pinned       int          `json:"is_pinned,omitempty"`
	MarkedAsAds  int          `json:"marked_as_ads,omitempty"`
	IsFavorite   bool         `json:"is_favorite,omitempty"`
	Donut        struct {
		IsDonut            bool   `json:"is_donut,omitempty"`
		PaidDuration       int    `json:"paid_duration,omitempty"`
		Placeholder        any    `json:"placeholder,omitempty"`
		CanPublishFreeCopy bool   `json:"can_publish_free_copy,omitempty"`
		EditMode           string `json:"edit_mode,omitempty"`
	} `json:"donut,omitempty"`
	PostponedID int `json:"postponed_id,omitempty"`
}

type PostComment

type PostComment struct {
	ID     int    `json:"id,omitempty"`
	UserID int    `json:"from_id,omitempty"`
	Date   int    `json:"date,omitempty"`
	Text   string `json:"text,omitempty"`
	Donut  struct {
		IsDon       bool   `json:"is_don,omitempty"`
		Placeholder string `json:"placeholder,omitempty"`
	} `json:"donut,omitempty"`
	ReplyToUser    int          `json:"reply_to_user,omitempty"`
	ReplyToComment int          `json:"reply_to_comment,omitempty"`
	Attachments    []Attachment `json:"attachments,omitempty"`
	ParentsStack   []int        `json:"parents_stack,omitempty"`
	Thread         Thread       `json:"thread,omitempty"`

	PostID      int `json:"post_id,omitempty"`
	PostOwnerID int `json:"post_owner_id,omitempty"`
}

type PreviewDocument

type PreviewDocument struct {
	Photo PhotoDocument `json:"photo,omitempty"`
	Video VideoDocument `json:"video,omitempty"`
}

type Price

type Price struct {
	Amount       string   `json:"amount,omitempty"`
	Currency     Currency `json:"currency,omitempty"`
	UnDiscounted string   `json:"old_amount,omitempty"`
	Text         string   `json:"text,omitempty"`
}

type ProlongedDonate

type ProlongedDonate struct {
	Amount           int     `json:"amount,omitempty"`
	AmountWithoutFee float32 `json:"amount_without_fee,omitempty"`
	UserID           int     `json:"user_id,omitempty"`
}

type PropertyValues

type PropertyValues struct {
	VariantID    int    `json:"variant_id,omitempty"`
	VariantName  string `json:"variant_name,omitempty"`
	PropertyName string `json:"property_name,omitempty"`
}

type Recipient

type Recipient struct {
	Name        string `json:"name,omitempty"`
	Phone       string `json:"phone,omitempty"`
	DisplayText string `json:"display_text,omitempty"`
}

type Reposts

type Reposts struct {
	Count         int `json:"count,omitempty"`
	Posts         int `json:"wall_count,omitempty"`
	MessagesCount int `json:"mail_count,omitempty"`
	Reposted      int `json:"user_reposted,omitempty"`
}

type Section

type Section struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Thread

type Thread struct {
	Count           int   `json:"count,omitempty"`
	Items           []any `json:"items,omitempty"`
	CanPost         bool  `json:"can_post,omitempty"`
	ShowReplyButton bool  `json:"show_reply_button,omitempty"`
	GroupsCanPost   bool  `json:"groups_can_post,omitempty"`
}

type TotalPrice

type TotalPrice struct {
	Amount   string   `json:"amount,omitempty"`
	Currency Currency `json:"currency,omitempty"`
	Text     string   `json:"text,omitempty"`
}

type Typing

type Typing struct {
	State  string `json:"state,omitempty"`
	UserID int    `json:"from_id,omitempty"`
	ToID   int    `json:"to_id,omitempty"`
}

type UnblockUser

type UnblockUser struct {
	AdminID int `json:"admin_id,omitempty"`
	UserID  int `json:"user_id,omitempty"`
	EndDate int `json:"by_end_date,omitempty"`
}

type Unlike

type Unlike Like

type Update

type Update struct {
	GroupID int             `json:"group_id,omitempty"`
	Type    string          `json:"type,omitempty"`
	EventID string          `json:"event_id,omitempty"`
	Version string          `json:"v,omitempty"`
	Object  json.RawMessage `json:"object,omitempty"`
}

type Updates

type Updates struct {
	TS      any      `json:"ts,omitempty"`
	Updates []Update `json:"updates,omitempty"`
	Failed  int      `json:"failed,omitempty"`
}

type VKPayTransaction

type VKPayTransaction struct {
	UserID      int    `json:"from_id,omitempty"`
	Amount      int    `json:"amount,omitempty"`
	Description string `json:"description,omitempty"`
	Date        int    `json:"date,omitempty"`
}

type Video

type Video struct {
	ID            int          `json:"id,omitempty"`
	OwnerID       int          `json:"owner_id,omitempty"`
	Title         string       `json:"title,omitempty"`
	Description   string       `json:"description,omitempty"`
	Duration      int          `json:"duration,omitempty"`
	Photos        []VideoPhoto `json:"image,omitempty"`
	FirstFrame    []VideoPhoto `json:"first_frame,omitempty"`
	Date          int          `json:"date,omitempty"`
	AddingDate    int          `json:"adding_date,omitempty"`
	Views         int          `json:"views,omitempty"`
	LocalViews    int          `json:"local_views,omitempty"`
	Comments      int          `json:"comments,omitempty"`
	Player        string       `json:"player,omitempty"`
	Platform      string       `json:"platform,omitempty"`
	CanAdd        int          `json:"can_add,omitempty"`
	IsPrivate     int          `json:"is_private,omitempty"`
	AccessKey     string       `json:"access_key,omitempty"`
	Processing    int          `json:"processing,omitempty"`
	IsFavorite    bool         `json:"is_favorite,omitempty"`
	CanComment    int          `json:"can_comment,omitempty"`
	CanEdit       int          `json:"can_edit,omitempty"`
	CanLike       int          `json:"can_like,omitempty"`
	CanRepost     int          `json:"can_repost,omitempty"`
	CanSubscribe  int          `json:"can_subscribe,omitempty"`
	CanAddToFaves int          `json:"can_add_to_faves,omitempty"`
	CanAttachLink int          `json:"can_attach_link,omitempty"`
	Width         int          `json:"width,omitempty"`
	Height        int          `json:"height,omitempty"`
	UserID        int          `json:"user_id,omitempty"`
	Converting    int          `json:"converting,omitempty"`
	Added         int          `json:"added,omitempty"`
	Subscribed    int          `json:"is_subscribed,omitempty"`
	Repeat        int          `json:"repeat,omitempty"`
	Type          string       `json:"type,omitempty"`
	Balance       int          `json:"balance,omitempty"`
	LiveStatus    string       `json:"live_status,omitempty"`
	Live          int          `json:"live,omitempty"`
	Upcoming      int          `json:"upcoming,omitempty"`
	Spectators    int          `json:"spectators,omitempty"`
	Likes         Likes        `json:"likes,omitempty"`
	Reposts       Reposts      `json:"reposts,omitempty"`
}

type VideoComment

type VideoComment struct {
	PostComment

	VideoID      int `json:"video_id,omitempty"`
	VideoOwnerID int `json:"video_owner_id"`
}

type VideoDocument

type VideoDocument struct {
	Source   string `json:"src,omitempty"`
	FileSize string `json:"file_size,omitempty"`
	Width    int    `json:"width,omitempty"`
	Height   int    `json:"height,omitempty"`
}

type VideoPhoto

type VideoPhoto struct {
	URL         string `json:"url,omitempty"`
	Width       int    `json:"width,omitempty"`
	Height      int    `json:"height,omitempty"`
	WithPadding int    `json:"with_padding,omitempty"`
}

type Views

type Views struct {
	Count int `json:"count,omitempty"`
}

type Vote

type Vote struct {
	OwnerID  int `json:"owner_id,omitempty"`
	PollID   int `json:"poll_id,omitempty"`
	OptionID int `json:"option_id,omitempty"`
	UserID   int `json:"user_id,omitempty"`
}

type WithdrawMoney

type WithdrawMoney struct {
	Amount           float32 `json:"amount,omitempty"`
	AmountWithoutFee float32 `json:"amount_without_fee,omitempty"`
}

type WithdrawMoneyError

type WithdrawMoneyError struct {
	Reason string `json:"reason,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL