vk

package
v0.0.0-...-34f8a0e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIVersion - используемая версия API
	APIVersion = "5.95"
	// APIMethodURL - URL запросов к API
	APIMethodURL = "https://api.vk.com/method/"
)

Variables

This section is empty.

Functions

func ParseRequest

func ParseRequest(r *http.Request, secret string) (ans *types.Message, err error)

ParseRequest - Разбираем запрос, проверяем его корректность и приводим к стандартному виду

func SendMessage

func SendMessage(req *types.Message, botans *types.Message, opt *MessageOptions) (ans int, err error)

SendMessage - Отправляем сообщение

Types

type API

type API struct {
	AccessToken string

	ErrorToSkip   []string
	ExecuteErrors []ExecuteErrors
	ExecuteCode   string
	sync.Mutex
	// contains filtered or unexported fields
}

API - главный объект

func (*API) CheckAuth

func (vk *API) CheckAuth() (ok bool)

CheckAuth - Проверяем авторизованный ли запрос

func (*API) MessagesSend

func (vk *API) MessagesSend(params map[string]string) (ans int, err error)

MessagesSend - отправка сообщения

type AdsGetAccountsAns

type AdsGetAccountsAns struct {
	AccountID     int    `json:"account_id"`
	AccountType   string `json:"account_type"`
	AccountStatus int    `json:"account_status"`
	AccountName   string `json:"account_name"`
	AccessRole    string `json:"access_role"`
}

AdsGetAccountsAns - объект информации об аккаунте

type AdsGetAdsAns

type AdsGetAdsAns struct {
	ID         string `json:"id"`
	CampaignID int    `json:"campaign_id"`
	Name       string `json:"name"`
}

AdsGetAdsAns - объект ответа при запросе объявления

type AdsGetAdsLayoutAns

type AdsGetAdsLayoutAns struct {
	ID         string `json:"id"`
	CampaignID int    `json:"campaign_id"`
	Title      string `json:"title"`
	LinkURL    string `json:"link_url"`
}

AdsGetAdsLayoutAns - объект ответа при запросе вида объявления

type AdsGetCampaignsAns

type AdsGetCampaignsAns struct {
	ID   int    `json:"id"`
	Type string `json:"type"`
	Name string `json:"name"`
}

AdsGetCampaignsAns - объект ответа при запросе кампаний

type AdsGetDemographicsAns

type AdsGetDemographicsAns struct {
	ID    int                          `json:"id"`
	Type  string                       `json:"type"`
	Stats []AdsGetDemographicsAnsStats `json:"stats"`
}

AdsGetDemographicsAns - объект статы демографии

type AdsGetDemographicsAnsStats

type AdsGetDemographicsAnsStats struct {
	Day    string                             `json:"day"`
	Sex    []AdsGetDemographicsAnsStatsValue  `json:"sex"`
	Age    []AdsGetDemographicsAnsStatsValue  `json:"age"`
	SexAge []AdsGetDemographicsAnsStatsValue  `json:"sex_age"`
	Cities []AdsGetDemographicsAnsStatsCities `json:"cities"`
}

AdsGetDemographicsAnsStats - стата

type AdsGetDemographicsAnsStatsCities

type AdsGetDemographicsAnsStatsCities struct {
	ImpressionsRate float64     `json:"impressions_rate"`
	ClicksRate      float64     `json:"clicks_rate"`
	Value           interface{} `json:"value"`
	Name            string      `json:"name"`
}

AdsGetDemographicsAnsStatsCities - данные по городам

type AdsGetDemographicsAnsStatsValue

type AdsGetDemographicsAnsStatsValue struct {
	ImpressionsRate float64 `json:"impressions_rate"`
	ClicksRate      float64 `json:"clicks_rate"`
	Value           string  `json:"value"`
}

AdsGetDemographicsAnsStatsValue - даныне

type AdsGetStatisticsAns

type AdsGetStatisticsAns struct {
	ID       int                        `json:"id"`
	Type     string                     `json:"type"`
	StatsBug []json.RawMessage          `json:"stats"`
	Stats    []AdsGetStatisticsAnsStats `json:"-"`
}

AdsGetStatisticsAns - объект ответа при запросе статистики

type AdsGetStatisticsAnsStats

type AdsGetStatisticsAnsStats struct {
	Day         string `json:"day"`
	Spent       string `json:"spent"`
	Impressions int    `json:"impressions"`
	Clicks      int    `json:"clicks"`
	Reach       int    `json:"reach"`
}

AdsGetStatisticsAnsStats - объект статистики

type AdsGetStatisticsAnsStatsBug

type AdsGetStatisticsAnsStatsBug struct {
	Day         string `json:"day"`
	Spent       string `json:"spent"`
	Impressions string `json:"impressions"`
	Clicks      int    `json:"clicks"`
	Reach       int    `json:"reach"`
}

AdsGetStatisticsAnsStatsBug - объект ответа при запросе статистики (если VK криво типы переменных сформировал)

type AdsGetSuggestionsAns

type AdsGetSuggestionsAns struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Parent string `json:"parent"`
}

AdsGetSuggestionsAns - объект подсказки

type AdsGetSuggestionsAnsStr

type AdsGetSuggestionsAnsStr struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Parent string `json:"parent"`
}

AdsGetSuggestionsAnsStr - объект подсказки BUG

type AdsGetTargetGroupsAns

type AdsGetTargetGroupsAns struct {
	ID              int         `json:"id"`
	Name            string      `json:"name"`
	LastUpdated     int64       `json:"last_updated"`
	AudienceCount   int         `json:"audience_count"`
	Lifetime        interface{} `json:"lifetime"`
	IsAudience      bool        `json:"is_audience"`
	IsShared        bool        `json:"is_shared"`
	FileSource      bool        `json:"file_source"`
	APISource       bool        `json:"api_source"`
	LookalikeSource bool        `json:"lookalike_source"`
	Pixel           string      `json:"pixel"`
	Domain          string      `json:"domain"`
}

AdsGetTargetGroupsAns - объект группы ретаргета

type AdsGetTargetingStatsAns

type AdsGetTargetingStatsAns struct {
	AudienceCount  int    `json:"audience_count"`
	RecommendedCPC string `json:"recommended_cpc"`
	RecommendedCPM string `json:"recommended_cpm"`
}

AdsGetTargetingStatsAns - объект информации о размере аудитории

type AdsGetTargetingStatsCriteria

type AdsGetTargetingStatsCriteria struct {
	Sex                  int    `json:"sex"`
	AgeFrom              int    `json:"age_from"`
	AgeTo                int    `json:"age_to"`
	Birthday             int    `json:"birthday"`
	Country              int    `json:"country"`
	Cities               string `json:"cities"`
	CitiesNot            string `json:"cities_not"`
	GeoNear              string `json:"geo_near"`
	GeoPointType         string `json:"geo_point_type"`
	Statuses             string `json:"statuses"`
	Groups               string `json:"groups"`
	GroupsNot            string `json:"groups_not"`
	Apps                 string `json:"apps"`
	AppsNot              string `json:"apps_not"`
	Districts            string `json:"districts"`
	Stations             string `json:"stations"`
	Streets              string `json:"streets"`
	Schools              string `json:"schools"`
	Positions            string `json:"positions"`
	Religions            string `json:"religions"`
	InterestCategories   string `json:"interest_categories"`
	Interests            string `json:"interests"`
	UserDevices          string `json:"user_devices"`
	UserOS               string `json:"user_os"`
	UserBrowsers         string `json:"user_browsers"`
	RetargetingGroups    string `json:"retargeting_groups"`
	RetargetingGroupsNot string `json:"retargeting_groups_not"`
	Paying               int    `json:"paying"`
	Travellers           int    `json:"travellers"`
	SchoolFrom           int    `json:"school_from"`
	SchoolTo             int    `json:"school_to"`
	UniFrom              int    `json:"uni_from"`
	UniTo                int    `json:"uni_to"`
}

AdsGetTargetingStatsCriteria - объект критериев настроек таргета

type AdsСreateTargetGroupAns

type AdsСreateTargetGroupAns struct {
	ID int `json:"id"`
}

AdsСreateTargetGroupAns - Ответ на созданную аудиторию

type Attachments

type Attachments struct {
	Type        string           `json:"type"`
	Photo       *json.RawMessage `json:"photo"`
	Audio       *json.RawMessage `json:"audio"`
	Video       *json.RawMessage `json:"video"`
	Poll        *json.RawMessage `json:"poll"`
	Page        *json.RawMessage `json:"page"`
	Album       *json.RawMessage `json:"album"`
	Link        *json.RawMessage `json:"link"`
	Doc         *json.RawMessage `json:"doc"`
	Note        *json.RawMessage `json:"note"`
	Sticker     *json.RawMessage `json:"sticker"`
	PrettyCards *json.RawMessage `json:"pretty_cards"`
	Market      *json.RawMessage `json:"market"`
}

Attachments - объект аттача

func (*Attachments) GetDoc

func (a *Attachments) GetDoc() (t AttachmentsDoc)

GetDoc - Преобразуем данные документа в объект

func (a *Attachments) GetLink() (t AttachmentsLink)

GetLink - Преобразуем данные ссылки в объект

func (*Attachments) GetMarket

func (a *Attachments) GetMarket() (t MarketGetByIDAns)

GetMarket - Преобразуем данные товара в объект

func (*Attachments) GetPage

func (a *Attachments) GetPage() (t AttachmentsPage)

GetPage - Преобразуем данные видео в объект

func (*Attachments) GetPhoto

func (a *Attachments) GetPhoto() (t PhotosGetItem)

GetPhoto - Преобразуем данные фото в объект

func (*Attachments) GetPoll

func (a *Attachments) GetPoll() (t PollItem)

GetPoll - Преобразуем данные видео в объект

func (*Attachments) GetPrettyCards

func (a *Attachments) GetPrettyCards() (t AttachmentsPrettyCards)

GetPrettyCards - Преобрахуем данные карточек в объекты

func (*Attachments) GetVideo

func (a *Attachments) GetVideo() (t VideoGetItem)

GetVideo - Преобразуем данные видео в объект

type AttachmentsDoc

type AttachmentsDoc struct {
	ID      int              `json:"id"`
	OwnerID int              `json:"owner_id"`
	Title   string           `json:"title"`
	Size    int              `json:"size"`
	Ext     string           `json:"ext"`
	URL     string           `json:"url"`
	Date    int64            `json:"date"`
	Type    int              `json:"type"`
	Preview *json.RawMessage `json:"preview"`
}

AttachmentsDoc - объект документа аатача

type AttachmentsLink struct {
	URL         string        `json:"url"`
	Title       string        `json:"title"`
	Caption     string        `json:"caption"`
	Description string        `json:"description"`
	Photo       PhotosGetItem `json:"photo"`
	PreviewPage string        `json:"preview_page"`
	PreviewURL  string        `json:"preview_url"`
}

AttachmentsLink - объект ссылки аатача

type AttachmentsPage

type AttachmentsPage struct {
	ID                       int    `json:"id"`
	GroupID                  int    `json:"group_id"`
	CreatorID                int    `json:"creator_id"`
	Title                    string `json:"title"`
	CurrentUserCanEdit       int    `json:"current_user_can_edit"`
	CurrentUserCanEditAccess int    `json:"current_user_can_edit_access"`
	WhoCanView               int    `json:"who_can_view"`
	WhoCanEdit               int    `json:"who_can_edit"`
	Edited                   int    `json:"edited"`
	Created                  int    `json:"created"`
	EditorID                 int    `json:"editor_id"`
	Views                    int    `json:"views"`
	Parent                   string `json:"parent"`
	Parent2                  string `json:"parent2"`
	Source                   string `json:"source"`
	HTML                     string `json:"html"`
	ViewURL                  string `json:"view_url"`
}

AttachmentsPage - объект документа аатача

type AttachmentsPrettyCards

type AttachmentsPrettyCards struct {
	Cards []AttachmentsPrettyCardsCards `json:"cards"`
}

AttachmentsPrettyCards - объект карточек аттача

type AttachmentsPrettyCardsCards

type AttachmentsPrettyCardsCards struct {
	CardID  string `json:"card_id"`
	LinkURL string `json:"link_url"`
	Title   string `json:"title"`
}

AttachmentsPrettyCardsCards - объект карточек аттача

type AuthURLData

type AuthURLData struct {
	ClientID    int
	RedirectURI string
	GroupIDs    string
	Display     string
	Scope       string
	V           float64
	State       string
}

AuthURLData - Объект для формирования url авторизации

type BanInfo

type BanInfo struct {
	AdminID int    `json:"admin_id"`
	Date    int64  `json:"date"`
	Reason  int    `json:"reason"`
	Comment string `json:"comment"`
	EndDate int64  `json:"end_date"`
}

BanInfo - объект бана

type BoardGetCommentsAns

type BoardGetCommentsAns struct {
	Count  int                   `json:"count"`
	Offset int                   `json:"offset"`
	Items  []WallGetCommentsItem `json:"items"`
}

BoardGetCommentsAns - объект списка комментариев обсуждения

type BoardGetTopicsAns

type BoardGetTopicsAns struct {
	Count  int                  `json:"count"`
	Offset int                  `json:"offset"`
	Items  []BoardGetTopicsItem `json:"items"`
}

BoardGetTopicsAns - объект списка обсуждений

type BoardGetTopicsItem

type BoardGetTopicsItem struct {
	ID           int    `json:"id"`
	Title        string `json:"title"`
	Created      int64  `json:"created"`
	CreatedBy    int    `json:"created_by"`
	Updated      int64  `json:"updated"`
	UpdatedBy    int    `json:"updated_by"`
	IsClosed     int    `json:"is_closed"`
	IsFixed      int    `json:"is_fixed"`
	Comments     int    `json:"comments"`
	FirstComment int    `json:"first_comment"`
	LastComment  int    `json:"last_comment"`
}

BoardGetTopicsItem - объект обсуждения

type CallBackObj

type CallBackObj struct {
	Type    string          `json:"type"`
	Object  json.RawMessage `json:"object"`
	GroupID int             `json:"group_id"`
	Secret  string          `json:"secret"`

	Message      MessagesGetAns       `json:"-"`
	MessageAllow CallbackMessageAllow `json:"-"`

	Parsed bool `json:"-"`
}

CallBackObj - Объект запроса через callback

func (*CallBackObj) Parse

func (cbo *CallBackObj) Parse() (err error)

Parse - Парсим объект

type CallbackMessageAllow

type CallbackMessageAllow struct {
	UserID int    `json:"user_id"`
	Key    string `json:"key"`
}

CallbackMessageAllow - объект подписки на сообщения

type Cities

type Cities struct {
	CityID int `json:"city_id"`
	Views  int `json:"views"`
}

Cities - объект статистики по городам

type City

type City struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
}

City - Объект с информацией о городе

type CommentData

type CommentData struct {
	Count         int  `json:"count"`
	CanPost       int  `json:"can_post"`
	GroupsCanPost bool `json:"groups_can_post"`
}

CommentData - объект комментариев

type CountInt

type CountInt struct {
	Count int   `json:"count"`
	Items []int `json:"items"`
}

CountInt - объект из списка идентификаторов и их кол-ва

type Countries

type Countries struct {
	CountryID int `json:"country_id"`
	Views     int `json:"views"`
}

Countries - объект статистики по странам

type ExecuteErrors

type ExecuteErrors struct {
	Method    string `json:"method"`
	ErrorCode int    `json:"error_code"`
	ErrorMsg  string `json:"error_msg"`
}

ExecuteErrors - объект ошибок execute

type GetTokenAns

type GetTokenAns struct {
	AccessToken      string `json:"access_token"`
	ExpiresIn        int    `json:"expires_in"`
	UserID           int    `json:"user_id"`
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
}

GetTokenAns - объект ответа при получении покена

type GroupContacts

type GroupContacts struct {
	UserID int    `json:"user_id"`
	Desc   string `json:"desc"`
	Phone  string `json:"phone"`
	Email  string `json:"email"`
}

GroupContacts - объект контакта группы

type GroupsAddCallbackServerAns

type GroupsAddCallbackServerAns struct {
	ServerID int `json:"server_id"`
}

GroupsAddCallbackServerAns - ответ при установке callback сервера

type GroupsGetAns

type GroupsGetAns struct {
	Count int                `json:"count"`
	Items []GroupsGetByIDAns `json:"items"`
}

GroupsGetAns - объект ответа при запросе групп

type GroupsGetBannedAns

type GroupsGetBannedAns struct {
	Count int                   `json:"count"`
	Items []GroupsGetBannedItem `json:"items"`
}

GroupsGetBannedAns - ответ на запрос о бане

type GroupsGetBannedItem

type GroupsGetBannedItem struct {
	Type    string           `json:"type"`
	Group   GroupsGetByIDAns `json:"group"`
	Profile UsersGetAns      `json:"profile"`
	BanInfo BanInfo          `json:"ban_info"`
}

GroupsGetBannedItem - объект инфы о бане

type GroupsGetByIDAns

type GroupsGetByIDAns struct {
	ID           int             `json:"id"`
	Name         string          `json:"name"`
	ScreenName   string          `json:"screen_name"`
	IsClosed     int             `json:"is_closed"`
	Deactivated  string          `json:"deactivated"`
	IsAdmin      int             `json:"is_admin"`
	AdminLevel   int             `json:"admin_level"`
	IsMember     int             `json:"is_member"`
	InvitedBy    int             `json:"invited_by"`
	Type         string          `json:"type"`
	Photo50      string          `json:"photo_50"`
	Photo100     string          `json:"photo_100"`
	Photo200     string          `json:"photo_200"`
	AgeLimits    int             `json:"age_limits "`
	Description  string          `json:"description"`
	MembersCount int             `json:"members_count"`
	Verified     int             `json:"verified"`
	Contacts     []GroupContacts `json:"contacts"`
}

GroupsGetByIDAns - объект ответа при запросе групп

type GroupsGetCallbackConfirmationCodeAns

type GroupsGetCallbackConfirmationCodeAns struct {
	Code string `json:"code"`
}

GroupsGetCallbackConfirmationCodeAns - объет подтверждающего кода callback сервера

type GroupsGetCallbackServersAns

type GroupsGetCallbackServersAns struct {
	Count int                               `json:"count"`
	Items []GroupsGetCallbackServersAnsItem `json:"items"`
}

GroupsGetCallbackServersAns - объект ответа на запрос callback серверов

type GroupsGetCallbackServersAnsItem

type GroupsGetCallbackServersAnsItem struct {
	ID        int    `json:"id"`
	Title     string `json:"title"`
	CreatorID int    `json:"creator_id"`
	URL       string `json:"url"`
	SecretKey string `json:"secret_key"`
	Status    string `json:"status"`
}

GroupsGetCallbackServersAnsItem - объект callback сервера

type GroupsGetCallbackSettingsAns

type GroupsGetCallbackSettingsAns struct {
	APIVersion string         `json:"api_version"`
	Events     map[string]int `json:"events"`
}

GroupsGetCallbackSettingsAns - объект настроек callback сервера

type GroupsGetMembersAns

type GroupsGetMembersAns struct {
	Count int             `json:"count"`
	Items json.RawMessage `json:"items"`
}

GroupsGetMembersAns - объект ответа при запросе подписчиков групп

type GroupsGetTokenPermissionsAns

type GroupsGetTokenPermissionsAns struct {
	Mask        int                                    `json:"mask"`
	Permissions []GroupsGetTokenPermissionsAnsSettings `json:"permissions"`
}

GroupsGetTokenPermissionsAns - объект прав доступа сообщества

type GroupsGetTokenPermissionsAnsSettings

type GroupsGetTokenPermissionsAnsSettings struct {
	Setting int    `json:"setting"`
	Name    string `json:"name"`
}

GroupsGetTokenPermissionsAnsSettings - подробные права сообщества

type GroupsIsMemberAns

type GroupsIsMemberAns struct {
	Member     int `json:"member"`
	UserID     int `json:"user_id"`
	Request    int `json:"request"`
	Invitation int `json:"invitation"`
}

GroupsIsMemberAns - объект с ответом подписчик ли человек или нет

type Keyboard

type Keyboard struct {
	OneTime bool               `json:"one_time"`
	Buttons [][]KeyboardButton `json:"buttons"`
}

Keyboard - клавиатура

type KeyboardButton

type KeyboardButton struct {
	Action KeyboardButtonAction `json:"action"`
	Color  string               `json:"color"`
}

KeyboardButton - кнопка клавиатуры

type KeyboardButtonAction

type KeyboardButtonAction struct {
	Type    string `json:"type"`
	Label   string `json:"label"`
	Payload string `json:"payload"`
}

KeyboardButtonAction - Действие клавиатуры

type LikeData

type LikeData struct {
	Count int `json:"count"`
}

LikeData - объект лайков

type LikesGetListAns

type LikesGetListAns struct {
	Count  int   `json:"count"`
	Offset int   `json:"offset"`
	Items  []int `json:"items"`
}

LikesGetListAns - объект лайков

type MarketCategory

type MarketCategory struct {
	ID      int                   `json:"id"`
	Name    string                `json:"name"`
	Section MarketCategorySection `json:"section"`
}

MarketCategory - объект категории

type MarketCategorySection

type MarketCategorySection struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

MarketCategorySection - объект секции категории товара

type MarketGetAns

type MarketGetAns struct {
	Count  int                `json:"count"`
	Offset int                `json:"offset"`
	Items  []MarketGetByIDAns `json:"items"`
}

MarketGetAns - объетк списка товаров

type MarketGetByIDAns

type MarketGetByIDAns struct {
	ID           int             `json:"id"`
	OwnerID      int             `json:"owner_id"`
	Title        string          `json:"title"`
	Description  string          `json:"description"`
	Price        MarketPrice     `json:"price"`
	Category     MarketCategory  `json:"category"`
	Date         int64           `json:"date"`
	ThumbPhoto   string          `json:"thumb_photo"`
	Availability int             `json:"availability"`
	AlbumsIDs    []int           `json:"albums_ids"`
	Photos       []PhotosGetItem `json:"photos"`
	CanComment   int             `json:"can_comment"`
	CanRepost    int             `json:"can_repost"`
	Likes        LikeData        `json:"likes"`
	ViewsCount   int             `json:"views_count"`
}

MarketGetByIDAns - объект товара

type MarketPrice

type MarketPrice struct {
	Amount   string              `json:"amount"`
	Currency MarketPriceCurrency `json:"currency"`
	Text     string              `json:"text"`
}

MarketPrice - объект цены товара

type MarketPriceCurrency

type MarketPriceCurrency struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

MarketPriceCurrency - объект валюты товара

type MessageOptions

type MessageOptions struct {
	Token    string
	RandomID int64
}

MessageOptions - Опции отправки сообщения

type MessagesGetAns

type MessagesGetAns struct {
	ID          int                  `json:"id"`
	Date        int64                `json:"date"`
	PeerID      int                  `json:"peer_id"`
	FromID      int                  `json:"from_id"`
	Text        string               `json:"text"`
	RandomID    int64                `json:"random_id"`
	Attachments []Attachments        `json:"attachments"`
	Important   bool                 `json:"important"`
	Geo         MessagesGetAnsGeo    `json:"geo"`
	Payload     string               `json:"payload"`
	FwdMessages []MessagesGetAns     `json:"fwd_messages"`
	Action      MessagesGetAnsAction `json:"action"`
}

MessagesGetAns - объект сообщений

type MessagesGetAnsAction

type MessagesGetAnsAction struct {
	Type     string            `json:"type"`
	MemberID int               `json:"member_id"`
	Text     string            `json:"text"`
	Email    string            `json:"email"`
	Photo    map[string]string `json:"photo"`
}

MessagesGetAnsAction - информация о сервисном действии с чатом

type MessagesGetAnsGeo

type MessagesGetAnsGeo struct {
	Type        string                 `json:"type"`
	Coordinates interface{}            `json:"coordinates"`
	Place       MessagesGetAnsGeoPlace `json:"place"`
}

MessagesGetAnsGeo - объект места в сообщении

type MessagesGetAnsGeoPlace

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

MessagesGetAnsGeoPlace - объект описание места

type MessagesIsMessagesFromGroupAllowedAns

type MessagesIsMessagesFromGroupAllowedAns struct {
	IsAllowed int `json:"is_allowed"`
}

MessagesIsMessagesFromGroupAllowedAns - объект проверки разрешена ли отправка сообщений

type MessagesSendAns

type MessagesSendAns struct {
	PeerID    int    `json:"peer_id"`
	MessageID int    `json:"message_id"`
	Error     string `json:"error"`
}

MessagesSendAns - ответ на отправку сообщения

type MultiBoardGetCommentsAns

type MultiBoardGetCommentsAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []BoardGetCommentsAns    `json:"items"`
}

MultiBoardGetCommentsAns - объект списка комментариев нескольких обсуждения

type MultiBoardGetTopicsAns

type MultiBoardGetTopicsAns struct {
	Items  []BoardGetTopicsAns      `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

MultiBoardGetTopicsAns - объект списка обсуждений для нескольких групп

type MultiLikesGetListAns

type MultiLikesGetListAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []LikesGetListAns        `json:"items"`
}

MultiLikesGetListAns - объект лайков для нескольких объектов

type MultiMarketGetCommentsAns

type MultiMarketGetCommentsAns struct {
	Items  []WallGetCommentsAns     `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

MultiMarketGetCommentsAns - объект списка коментов товара

type MultiPhotosGetAlbumsAns

type MultiPhotosGetAlbumsAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []PhotosGetAlbumsAns     `json:"items"`
}

MultiPhotosGetAlbumsAns - объект списка альбомов

type MultiPhotosGetAns

type MultiPhotosGetAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []PhotosGetAns           `json:"items"`
}

MultiPhotosGetAns - объект списка фотографий из разных альбомов

type MultiPhotosGetCommentsAns

type MultiPhotosGetCommentsAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []PhotosGetCommentsAns   `json:"items"`
}

MultiPhotosGetCommentsAns - объект списка комментариев разных фото

type MultiUsersGetSubscriptionsAns

type MultiUsersGetSubscriptionsAns struct {
	RqData []map[string]interface{}   `json:"rq_data"`
	Items  []UsersGetSubscriptionsAns `json:"items"`
}

MultiUsersGetSubscriptionsAns - объект списка подписок человеков

type MultiVideoGetAns

type MultiVideoGetAns struct {
	Items  []VideoGetAns            `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

MultiVideoGetAns - объект списка видео нескольких сообществ

type MultiVideoGetCommentsAns

type MultiVideoGetCommentsAns struct {
	Items  []VideoGetCommentsAns    `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

MultiVideoGetCommentsAns - объект списка комментариев нескольких видео

type MultiWallGetAns

type MultiWallGetAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []WallGetAns             `json:"items"`
}

MultiWallGetAns - объект списка постов нескольких сообществ или людей

type MultiWallGetCommentsAns

type MultiWallGetCommentsAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []WallGetCommentsAns     `json:"items"`
}

MultiWallGetCommentsAns - объект комментариев для выборки из нескольких сообществ

type PhotoSizes

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

PhotoSizes - объект размеров фоток

type PhotosGetAlbumsAns

type PhotosGetAlbumsAns struct {
	Count int                   `json:"count"`
	Items []PhotosGetAlbumsItem `json:"items"`
}

PhotosGetAlbumsAns - объект списка альбомов

type PhotosGetAlbumsItem

type PhotosGetAlbumsItem struct {
	ID                 int    `json:"id"`
	ThumbID            int    `json:"thumb_id"`
	OwnerID            int    `json:"owner_id"`
	Title              string `json:"title"`
	Description        string `json:"description"`
	Created            int64  `json:"created"`
	Updated            int64  `json:"updated"`
	Size               int    `json:"size"`
	CanUpload          int    `json:"can_upload"`
	UploadByAdminsOnly int    `json:"UploadByAdminsOnly"`
	CommentsDisabled   int    `json:"comments_disabled"`
}

PhotosGetAlbumsItem - объект альбома

type PhotosGetAns

type PhotosGetAns struct {
	Count  int             `json:"count"`
	Offset int             `json:"offset"`
	Items  []PhotosGetItem `json:"items"`
}

PhotosGetAns - объект списка фотографий

type PhotosGetCommentsAns

type PhotosGetCommentsAns struct {
	Count  int                   `json:"count"`
	Offset int                   `json:"offset"`
	Items  []WallGetCommentsItem `json:"items"`
}

PhotosGetCommentsAns - объект списка комментариев фото

type PhotosGetItem

type PhotosGetItem struct {
	ID       int          `json:"id"`
	AlbumID  int          `json:"album_id"`
	OwnerID  int          `json:"owner_id"`
	UserID   int          `json:"user_id"`
	Text     string       `json:"text"`
	Date     int64        `json:"date"`
	Width    int          `json:"width"`
	Height   int          `json:"height"`
	PostID   int          `json:"post_id"`
	Likes    LikeData     `json:"likes"`
	Reposts  LikeData     `json:"reposts"`
	Comments CommentData  `json:"comments"`
	Sizes    []PhotoSizes `json:"sizes"`
}

PhotosGetItem - объект фотографии

func (*PhotosGetItem) GetBestSize

func (pgi *PhotosGetItem) GetBestSize() (url string)

GetBestSize - получаем лучгий ращмер фотки

type PollItem

type PollItem struct {
	ID        int              `json:"id"`
	OwnerID   int              `json:"owner_id"`
	Created   int              `json:"created"`
	Question  string           `json:"question"`
	Votes     int              `json:"votes"`
	AnswerID  int              `json:"answer_id"`
	Answers   []PollItemAnswer `json:"answers"`
	Anonymous int              `json:"anonymous"`
}

PollItem - объект опроса

type PollItemAnswer

type PollItemAnswer struct {
	ID    int    `json:"id"`
	Text  string `json:"text"`
	Votes int    `json:"votes"`
	Rate  int    `json:"rate"`
}

PollItemAnswer - объект ответа в опросе

type PollVoters

type PollVoters struct {
	AnswerID int      `json:"answer_id"`
	Users    CountInt `json:"users"`
}

PollVoters - объект ответов на опросы

type PostIDDateInfto

type PostIDDateInfto struct {
	Ids   []int   `json:"ids"`
	Dates []int64 `json:"dates"`
}

PostIDDateInfto - Структура содержитг id и даты постов

type Response

type Response struct {
	Response      json.RawMessage `json:"response"`
	Error         ResponseError   `json:"error"`
	ExecuteErrors []ExecuteErrors `json:"execute_errors"`
}

Response - объект ответа VK

type ResponseError

type ResponseError struct {
	ErrorCode     int                 `json:"error_code"`
	ErrorMsg      string              `json:"error_msg"`
	RequestParams []map[string]string `json:"request_params"`
}

ResponseError - объект ошибки выболнения запроса

type ScriptGetAdminPagesAns

type ScriptGetAdminPagesAns struct {
	Groups  GroupsGetAns  `json:"groups"`
	Profile []UsersGetAns `json:"profile"`
}

ScriptGetAdminPagesAns - объект инфы об админе

type ScriptGroupFullStatAns

type ScriptGroupFullStatAns struct {
	Posts      WallGetAns    `json:"posts"`
	Stats      []StatsGetAns `json:"stats"`
	Subsribers int           `json:"subsribers"`
}

ScriptGroupFullStatAns - объект полной статы по сообществу

type ScriptGroupsGetMembersAns

type ScriptGroupsGetMembersAns struct {
	Count  int   `json:"count"`
	Offset int   `json:"offset"`
	Items  []int `json:"items"`
}

ScriptGroupsGetMembersAns - объект ответа при подписчиков (execute)

type ScriptMultiFriendsGetAns

type ScriptMultiFriendsGetAns struct {
	RqData []map[string]interface{}    `json:"rq_data"`
	Items  []ScriptGroupsGetMembersAns `json:"items"`
}

ScriptMultiFriendsGetAns - Объект списка друзей для нескольких человек

type ScriptMultiMarketGetAns

type ScriptMultiMarketGetAns struct {
	Items  []MarketGetAns           `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

ScriptMultiMarketGetAns - Список объектов товаров

type ScriptPollsGetVotersAns

type ScriptPollsGetVotersAns struct {
	Count  int          `json:"count"`
	Offset int          `json:"offset"`
	Items  []PollVoters `json:"items"`
}

ScriptPollsGetVotersAns - объект опроса

type ScriptPostFullStatAns

type ScriptPostFullStatAns struct {
	Post     WallGetByIDAns         `json:"post"`
	Stats    []StatsGetAns          `json:"stats"`
	PostStat []StatsGetPostReachAns `json:"post_stat"`
}

ScriptPostFullStatAns - объект с инфой о стате поста

type ScriptUsersMultiGetAns

type ScriptUsersMultiGetAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []UsersGetAns            `json:"items"`
}

ScriptUsersMultiGetAns - объект списка информации о пользователях

type SexAge

type SexAge struct {
	AgeRange string `json:"age_range"`
	Female   int    `json:"female"`
	Male     int    `json:"male"`
}

SexAge - объект пола/возраста

type StatsGetAns

type StatsGetAns struct {
	PeriodFrom string        `json:"period_from"`
	PeriodTo   string        `json:"period_to"`
	Visitors   StatsVisitors `json:"visitors"`
	Reach      StatsReach    `json:"reach"`
	Activity   interface{}   `json:"activity"`
}

StatsGetAns - объект ответа при запросе статистики группы

type StatsGetPostReachAns

type StatsGetPostReachAns struct {
	ReachSubscribers int `json:"reach_subscribers"`
	ReachTotal       int `json:"reach_total"`
	ReachAds         int `json:"reach_ads"`
	ReachViral       int `json:"reach_viral"`
	Links            int `json:"links"`
	ToGroup          int `json:"to_group"`
	JoinGroup        int `json:"join_group"`
	Report           int `json:"report"`
	Hide             int `json:"hide"`
	Unsubscribe      int `json:"unsubscribe"`
}

StatsGetPostReachAns - Объект статистики поста

type StatsGetValue

type StatsGetValue struct {
	Count int         `json:"count"`
	Value interface{} `json:"value"`
	Name  string      `json:"name"`
	Code  string      `json:"code"`
}

StatsGetValue - объект статистики

type StatsReach

type StatsReach struct {
	Reach            int             `json:"reach"`
	ReachSubscribers int             `json:"reach_subscribers"`
	MobileReach      int             `json:"mobile_reach"`
	Sex              []StatsGetValue `json:"sex"`
	Age              []StatsGetValue `json:"age"`
	SexAge           []StatsGetValue `json:"sex_age"`
	Countries        []StatsGetValue `json:"countries"`
	Cities           []StatsGetValue `json:"cities"`
}

StatsReach - объект с инфой об охвате

type StatsVisitors

type StatsVisitors struct {
	Views       int             `json:"views"`
	Visitors    int             `json:"visitors"`
	MobileViews int             `json:"mobile_views"`
	Sex         []StatsGetValue `json:"sex"`
	Age         []StatsGetValue `json:"age"`
	SexAge      []StatsGetValue `json:"sex_age"`
	Countries   []StatsGetValue `json:"countries"`
	Cities      []StatsGetValue `json:"cities"`
}

StatsVisitors - объект с инфой о посетителях

type TokenData

type TokenData struct {
	ClientID     int
	ClientSecret string
	Code         string
	RedirectURI  string
	IsGroup      bool
}

TokenData - объект получения токена

type UserCareer

type UserCareer struct {
	GroupID   int    `json:"group_id"`
	Company   string `json:"company"`
	CountryID int    `json:"country_id"`
	CityID    int    `json:"city_id"`
	CityName  string `json:"city_name"`
	From      int    `json:"from"`
	Until     int    `json:"until"`
	Position  string `json:"position"`
}

UserCareer - Объект информации о карьере человека

type UserContacts

type UserContacts struct {
	MobilePhone string `json:"mobile_phone"`
	HomePhone   string `json:"home_phone"`
}

UserContacts - Объект контактов человека

type UserCounters

type UserCounters struct {
	Albums        int `json:"albums"`
	Videos        int `json:"videos"`
	Audios        int `json:"audios"`
	Photos        int `json:"photos"`
	Notes         int `json:"notes"`
	Friends       int `json:"friends"`
	Groups        int `json:"groups"`
	OnlineFriends int `json:"online_friends"`
	MutualFriends int `json:"mutual_friends"`
	UserVideos    int `json:"user_videos"`
	Followers     int `json:"followers"`
	Pages         int `json:"pages"`
}

UserCounters - объект счетчиков человека

type UserEducation

type UserEducation struct {
	University     int    `json:"university"`
	UniversityName string `json:"university_name"`
	Faculty        int    `json:"faculty"`
	FacultyName    string `json:"faculty_name"`
	Graduation     int    `json:"graduation"`
}

UserEducation - объект информации об университете человека

type UserLastSeen

type UserLastSeen struct {
	Time     int `json:"time"`
	Platform int `json:"platform"`
}

UserLastSeen - Информация о последнем посещении

type UserMilitary

type UserMilitary struct {
	Unit      string `json:"unit"`
	UnitID    int    `json:"unit_id"`
	CountryID int    `json:"country_id"`
	From      int    `json:"from"`
	Until     int    `json:"until"`
}

UserMilitary - информация о военной службе

type UserOccupation

type UserOccupation struct {
	Type string `json:"type"`
	ID   int    `json:"id"`
	Name string `json:"name"`
}

UserOccupation - Объект информации о текущем занятии человека

type UserPersonal

type UserPersonal struct {
	Political  int      `json:"political"`
	Langs      []string `json:"langs"`
	Religion   string   `json:"religion"`
	InspiredBy string   `json:"inspired_by"`
	PeopleMain int      `json:"people_main"`
	LifeMain   int      `json:"life_main"`
	Smoking    int      `json:"smoking"`
	Alcohol    int      `json:"alcohol"`
}

UserPersonal - Объект информации о жизненной позиции человека

type UserRelatives

type UserRelatives struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

UserRelatives - объект с информацией о родвственнике человека

type UserSchools

type UserSchools struct {
	ID            int    `json:"id"`
	Country       int    `json:"country"`
	City          int    `json:"city"`
	Name          string `json:"name"`
	YearFrom      int    `json:"year_from"`
	YearTo        int    `json:"year_to"`
	YearGraduated int    `json:"year_graduated"`
	Class         string `json:"class"`
	Speciality    string `json:"speciality"`
	Type          int    `json:"type"`
	TypeStr       string `json:"type_str"`
}

UserSchools - информация о школе веловека

type UserUniversities

type UserUniversities struct {
	ID              int    `json:"id"`
	Country         int    `json:"country"`
	City            int    `json:"city"`
	Name            string `json:"name"`
	Faculty         int    `json:"faculty"`
	FacultyName     string `json:"faculty_name"`
	Chair           int    `json:"chair"`
	ChairName       string `json:"chair_name"`
	Graduation      int    `json:"graduation"`
	EducationForm   string `json:"education_form"`
	EducationStatus string `json:"education_status"`
}

UserUniversities - информация о университете

type UsersGetAns

type UsersGetAns struct {
	ID                     int                  `json:"id"`
	FirstName              string               `json:"first_name"`
	LastName               string               `json:"last_name"`
	Deactivated            string               `json:"deactivated"`
	About                  string               `json:"about"`
	Activities             string               `json:"activities"`
	Bdate                  string               `json:"bdate"`
	Blacklisted            int                  `json:"blacklisted"`
	BlacklistedByMe        int                  `json:"blacklisted_by_me"`
	Books                  string               `json:"books"`
	CanPost                int                  `json:"can_post"`
	CanSeeAllPosts         int                  `json:"can_see_all_posts"`
	CanSeeAudio            int                  `json:"can_see_audio"`
	CanSendFriendRequest   int                  `json:"can_send_friend_request"`
	CanWritePrivateMessage int                  `json:"can_write_private_message"`
	Career                 UserCareer           `json:"career"`
	City                   City                 `json:"city"`
	CommonCount            int                  `json:"common_count"`
	Skype                  string               `json:"skype"`
	Facebook               string               `json:"facebook"`
	Twitter                string               `json:"twitter"`
	Livejournal            string               `json:"livejournal"`
	Instagram              string               `json:"instagram"`
	Contacts               UserContacts         `json:"contacts"`
	Counters               UserCounters         `json:"counters"`
	Country                City                 `json:"country"`
	Domain                 string               `json:"domain"`
	Education              UserEducation        `json:"education"`
	FollowersCount         int                  `json:"followers_count"`
	FriendStatus           int                  `json:"friend_status"`
	Games                  string               `json:"games"`
	HasMobile              int                  `json:"has_mobile"`
	HasPhoto               int                  `json:"has_photo"`
	HomeTown               string               `json:"home_town"`
	Interests              string               `json:"interests"`
	IsFavorite             int                  `json:"is_favorite"`
	IsFriend               int                  `json:"is_friend"`
	IsHiddenFromFeed       int                  `json:"is_hidden_from_feed"`
	LastSeen               UserLastSeen         `json:"last_seen"`
	Lists                  string               `json:"lists"`
	MaidenName             string               `json:"maiden_name"`
	Military               UserMilitary         `json:"military"`
	Movies                 string               `json:"movies"`
	Music                  string               `json:"music"`
	Nickname               string               `json:"nickname"`
	Occupation             UserOccupation       `json:"occupation"`
	Online                 int                  `json:"online"`
	Personal               UserPersonal         `json:"personal"`
	Photo50                string               `json:"photo_50"`
	Photo100               string               `json:"photo_100"`
	Photo200Orig           string               `json:"photo_200_orig"`
	Photo200               string               `json:"photo_200"`
	Photo400Orig           string               `json:"photo_400_orig"`
	PhotoID                string               `json:"photo_id"`
	PhotoMax               string               `json:"photo_max"`
	PhotoMaxOrig           string               `json:"photo_max_orig"`
	Quotes                 string               `json:"quotes"`
	Relatives              []UserRelatives      `json:"relatives"`
	Relation               int                  `json:"relation"`
	RelationPartner        UsersRelationPartner `json:"relation_partner"`
	Schools                []UserSchools        `json:"schools"`
	ScreenName             string               `json:"screen_name"`
	Sex                    int                  `json:"sex"`
	Site                   string               `json:"site"`
	Status                 string               `json:"status"`
	Timezone               int                  `json:"timezone"`
	Trending               int                  `json:"trending"`
	Tv                     string               `json:"tv"`
	Universities           []UserUniversities   `json:"universities"`
	Verified               int                  `json:"verified"`
	Role                   string               `json:"role"`
	IsClosed               bool                 `json:"is_closed"`
	CanAccessClosed        bool                 `json:"can_access_closed"`
}

UsersGetAns - объект ответа при запросе пользователей

type UsersGetSubscriptionsAns

type UsersGetSubscriptionsAns struct {
	Count  int                `json:"count"`
	Items  []GroupsGetByIDAns `json:"items"`
	Users  CountInt           `json:"users"`
	Groups CountInt           `json:"groups"`
}

UsersGetSubscriptionsAns - объект списка подписок человека

type UsersRelationPartner

type UsersRelationPartner struct {
	ID        int    `json:"id"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

UsersRelationPartner - объект партнера

type UtilsGetLinkStatsAns

type UtilsGetLinkStatsAns struct {
	Key   string                   `json:"key"`
	Stats []UtilsGetLinkStatsStats `json:"stats"`
}

UtilsGetLinkStatsAns - объект ответа при запросе статистики короткой ссылки

type UtilsGetLinkStatsStats

type UtilsGetLinkStatsStats struct {
	Timestamp int         `json:"timestamp"`
	Views     int         `json:"views"`
	SexAge    []SexAge    `json:"sex_age"`
	Countries []Countries `json:"countries"`
	Cities    []Cities    `json:"cities"`
}

UtilsGetLinkStatsStats - объект статистики короткой ссылки

type UtilsGetShortLinkAns

type UtilsGetShortLinkAns struct {
	ShortURL  string `json:"short_url"`
	URL       string `json:"url"`
	Key       string `json:"key"`
	AccessKey string `json:"access_key"`
}

UtilsGetShortLinkAns - объект ответа при запросе короткой ссылки

type UtilsResolveScreenNameAns

type UtilsResolveScreenNameAns struct {
	Type     string `json:"type"`
	ObjectID int    `json:"object_id"`
}

UtilsResolveScreenNameAns - объект ответа при запросе резольвинка короткого имени

type VideoGetAns

type VideoGetAns struct {
	Count  int            `json:"count"`
	Offset int            `json:"offset"`
	Items  []VideoGetItem `json:"items"`
}

VideoGetAns - объект списка видео

type VideoGetCommentsAns

type VideoGetCommentsAns struct {
	Count  int                   `json:"count"`
	Offset int                   `json:"offset"`
	Items  []WallGetCommentsItem `json:"items"`
}

VideoGetCommentsAns - объект списка комментариев

type VideoGetItem

type VideoGetItem struct {
	ID         int      `json:"id"`
	OwnerID    int      `json:"owner_id"`
	Title      string   `json:"title"`
	Duration   int      `json:"duration"`
	Date       int64    `json:"date"`
	Comments   int      `json:"comments"`
	Views      int      `json:"views"`
	Likes      LikeData `json:"likes"`
	Reposts    LikeData `json:"reposts"`
	Platform   string   `json:"platform"`
	Player     string   `json:"player"`
	AddingDate int64    `json:"adding_date"`
}

VideoGetItem - объект видео

type WallGetAns

type WallGetAns struct {
	Count int              `json:"count"`
	Items []WallGetByIDAns `json:"items"`
}

WallGetAns - объект ответа при запросе постов

type WallGetByIDAns

type WallGetByIDAns struct {
	ID           int              `json:"id"`
	OwnerID      int              `json:"owner_id"`
	FromID       int              `json:"from_id"`
	CreatedBy    int              `json:"created_by"`
	Date         int64            `json:"date"`
	Text         string           `json:"text"`
	ReplyOwnerID int              `json:"reply_owner_id"`
	ReplyPostID  int              `json:"reply_post_id"`
	FriendsOnly  int              `json:"friends_only"`
	Comments     CommentData      `json:"comments"`
	Likes        LikeData         `json:"likes"`
	Reposts      LikeData         `json:"reposts"`
	Views        LikeData         `json:"views"`
	PostType     string           `json:"post_type"`
	Attachments  []Attachments    `json:"attachments"`
	SignerID     int              `json:"signer_id"`
	CopyHistory  []WallGetByIDAns `json:"copy_history"`
	IsPinned     int              `json:"is_pinned"`
	MarkedAsAds  int              `json:"marked_as_ads"`
	PostponedID  int              `json:"postponed_id"`
}

WallGetByIDAns - обект постов

type WallGetCommentsAns

type WallGetCommentsAns struct {
	Count  int                   `json:"count"`
	Offset int                   `json:"offset"`
	Items  []WallGetCommentsItem `json:"items"`
}

WallGetCommentsAns - объект комментариев

type WallGetCommentsItem

type WallGetCommentsItem struct {
	ID             int                       `json:"id"`
	FromID         int                       `json:"from_id"`
	Date           int64                     `json:"date"`
	Text           string                    `json:"text"`
	ReplyToUser    int                       `json:"reply_to_user"`
	ReplyToComment int                       `json:"reply_to_comment"`
	Attachments    []Attachments             `json:"attachments"`
	Likes          LikeData                  `json:"likes"`
	PhotoID        int                       `json:"photo_id"`
	PhotoOwnerID   int                       `json:"photo_owner_id"`
	VideoID        int                       `json:"video_id"`
	VideoOwnerID   int                       `json:"video_owner_id"`
	PostID         int                       `json:"post_id"`
	PostOwnerID    int                       `json:"post_owner_id"`
	MarketOwnerID  int                       `json:"market_owner_id"`
	ItemID         int                       `json:"item_id"`
	TopicID        int                       `json:"topic_id"`
	TopicOwnerID   int                       `json:"topic_owner_id"`
	PID            int                       `json:"pid"`
	Thread         WallGetCommentsItemThread `json:"thread"`
}

WallGetCommentsItem - объект комментария

type WallGetCommentsItemThread

type WallGetCommentsItemThread struct {
	Count           int                   `json:"count"`
	Items           []WallGetCommentsItem `json:"items"`
	CanPost         bool                  `json:"can_post"`
	ShowReplyButton bool                  `json:"show_reply_button"`
	GroupsCanPost   bool                  `json:"groups_can_post"`
}

WallGetCommentsItemThread - тред коментов

Jump to

Keyboard shortcuts

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