Documentation
¶
Index ¶
- func DecodePayload(rawPayload rawPayload) (map[string]string, error)
- type Action
- type AppNotification
- type Attachment
- type AttachmentAudio
- type AttachmentDocument
- type AttachmentMarket
- type AttachmentPhoto
- type AttachmentVideo
- type Audio
- type AudioArtist
- type BlockUser
- type BoardComment
- type Callback
- type Category
- type ChangeDonatePrice
- type ChangeGroupPhoto
- type ClientInfo
- type Comments
- type ControlGroup
- type Coordinates
- type Copyright
- type Currency
- type DeleteBoardComment
- type DeleteMarketComment
- type DeletePostComment
- type DeleteVideoComment
- type Dimensions
- type DisableMessage
- type EditOwners
- type EnableMessage
- type ExpiredDonate
- type Geolocation
- type GroupChange
- type GroupChanges
- type JoinGroup
- type LeaveGroup
- type Like
- type Likes
- type MarketComment
- type Message
- type Object
- type OrderDelivery
- type OrderMarket
- type Photo
- type PhotoAction
- type PhotoComment
- type PhotoDocument
- type PhotoDocumentSize
- type PhotoSize
- type Place
- type Post
- type PostComment
- type PreviewDocument
- type Price
- type ProlongedDonate
- type PropertyValues
- type Recipient
- type Reposts
- type Section
- type Thread
- type TotalPrice
- type Typing
- type UnblockUser
- type Unlike
- type Update
- type Updates
- type VKPayTransaction
- type Video
- type VideoComment
- type VideoDocument
- type VideoPhoto
- type Views
- type Vote
- type WithdrawMoney
- type WithdrawMoneyError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePayload ¶
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 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 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 ChangeDonatePrice ¶
type ChangeGroupPhoto ¶
type ChangeGroupPhoto struct {
UserID int `json:"user_id,omitempty"`
Photo AttachmentPhoto `json:"photo,omitempty"`
}
type ClientInfo ¶
type ControlGroup ¶
type ControlGroup struct {
UserID int `json:"user_id,omitempty"`
Changes GroupChanges `json:"changes,omitempty"`
}
type Coordinates ¶
type DeleteBoardComment ¶
type DeleteMarketComment ¶
type DeletePostComment ¶
type DeleteVideoComment ¶
type Dimensions ¶
type DisableMessage ¶
type DisableMessage struct {
UserID int `json:"user_id,omitempty"`
}
type EditOwners ¶
type EnableMessage ¶
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 LeaveGroup ¶
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"`
// without documentation
Version int `json:"version,omitempty"`
}
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 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"`
Text string `json:"text,omitempty"`
Date int `json:"date,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 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 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 ProlongedDonate ¶
type PropertyValues ¶
type TotalPrice ¶
type UnblockUser ¶
type VKPayTransaction ¶
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 VideoPhoto ¶
type WithdrawMoney ¶
type WithdrawMoneyError ¶
type WithdrawMoneyError struct {
Reason string `json:"reason,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.