From 08779c29099e8940493df56d28d8aa131ac8342e Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 9 Mar 2023 22:48:00 +0100 Subject: Update dependencies (#2007) * Update dependencies --- vendor/github.com/SevereCloud/vksdk/v2/api/ads.go | 1 - vendor/github.com/SevereCloud/vksdk/v2/api/api.go | 4 ++-- vendor/github.com/SevereCloud/vksdk/v2/api/apps.go | 8 +++---- vendor/github.com/SevereCloud/vksdk/v2/api/auth.go | 28 +++++++++++----------- .../github.com/SevereCloud/vksdk/v2/api/board.go | 8 +++---- .../github.com/SevereCloud/vksdk/v2/api/calls.go | 23 ++++++++++++++++++ .../github.com/SevereCloud/vksdk/v2/api/execute.go | 4 ++-- vendor/github.com/SevereCloud/vksdk/v2/api/fave.go | 4 ++-- .../github.com/SevereCloud/vksdk/v2/api/friends.go | 4 ++-- .../github.com/SevereCloud/vksdk/v2/api/groups.go | 24 ++++++++++--------- .../github.com/SevereCloud/vksdk/v2/api/likes.go | 4 ++-- .../github.com/SevereCloud/vksdk/v2/api/market.go | 4 ++-- .../SevereCloud/vksdk/v2/api/messages.go | 16 ++++++++----- .../SevereCloud/vksdk/v2/api/newsfeed.go | 8 +++---- .../github.com/SevereCloud/vksdk/v2/api/photos.go | 20 ++++++++-------- .../SevereCloud/vksdk/v2/api/podcasts.go | 12 +++++----- .../github.com/SevereCloud/vksdk/v2/api/stories.go | 22 ++++++++--------- .../github.com/SevereCloud/vksdk/v2/api/upload.go | 5 ++-- .../github.com/SevereCloud/vksdk/v2/api/users.go | 4 ++-- .../github.com/SevereCloud/vksdk/v2/api/utils.go | 4 ++-- .../github.com/SevereCloud/vksdk/v2/api/video.go | 20 ++++++++-------- vendor/github.com/SevereCloud/vksdk/v2/api/wall.go | 20 ++++++++-------- 22 files changed, 137 insertions(+), 110 deletions(-) create mode 100644 vendor/github.com/SevereCloud/vksdk/v2/api/calls.go (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api') diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/ads.go b/vendor/github.com/SevereCloud/vksdk/v2/api/ads.go index 544143b3..92c083d8 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/ads.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/ads.go @@ -203,7 +203,6 @@ type AdsDeleteCampaignsResponse []ErrorType // AdsDeleteCampaigns archives advertising campaigns. // -// // Warning! Maximum allowed number of campaigns archived in one request is 100. // // https://vk.com/dev/ads.deleteCampaigns diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/api.go b/vendor/github.com/SevereCloud/vksdk/v2/api/api.go index c1fb3dea..47acd445 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/api.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/api.go @@ -152,7 +152,7 @@ type Params map[string]interface{} // cyrillic symbols will be transliterated automatically. // Numeric format from account.getInfo is supported as well. // -// p.Lang(object.LangRU) +// p.Lang(object.LangRU) // // See all language code in module object. func (p Params) Lang(v int) Params { @@ -248,7 +248,7 @@ func (vk *VK) DefaultHandler(method string, sliceParams ...Params) (Response, er rawBody := bytes.NewBufferString(query.Encode()) - req, err := http.NewRequestWithContext(ctx, "POST", u, rawBody) + req, err := http.NewRequestWithContext(ctx, http.MethodPost, u, rawBody) if err != nil { return response, err } diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/apps.go b/vendor/github.com/SevereCloud/vksdk/v2/api/apps.go index c0ecb38c..f6f1742b 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/apps.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/apps.go @@ -58,7 +58,7 @@ type AppsGetFriendsListResponse struct { // AppsGetFriendsList creates friends list for requests and invites in current app. // -// extended=0 +// extended=0 // // https://vk.com/dev/apps.getFriendsList func (vk *VK) AppsGetFriendsList(params Params) (response AppsGetFriendsListResponse, err error) { @@ -75,7 +75,7 @@ type AppsGetFriendsListExtendedResponse struct { // AppsGetFriendsListExtended creates friends list for requests and invites in current app. // -// extended=1 +// extended=1 // // https://vk.com/dev/apps.getFriendsList func (vk *VK) AppsGetFriendsListExtended(params Params) (response AppsGetFriendsListExtendedResponse, err error) { @@ -92,7 +92,7 @@ type AppsGetLeaderboardResponse struct { // AppsGetLeaderboard returns players rating in the game. // -// extended=0 +// extended=0 // // https://vk.com/dev/apps.getLeaderboard func (vk *VK) AppsGetLeaderboard(params Params) (response AppsGetLeaderboardResponse, err error) { @@ -113,7 +113,7 @@ type AppsGetLeaderboardExtendedResponse struct { // AppsGetLeaderboardExtended returns players rating in the game. // -// extended=1 +// extended=1 // // https://vk.com/dev/apps.getLeaderboard func (vk *VK) AppsGetLeaderboardExtended(params Params) (response AppsGetLeaderboardExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/auth.go b/vendor/github.com/SevereCloud/vksdk/v2/api/auth.go index 62a08c07..df5b76d7 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/auth.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/auth.go @@ -45,20 +45,20 @@ func (vk *VK) AuthGetProfileInfoBySilentToken(params Params) (response AuthGetPr // ExchangeSilentTokenSource call conditions exchangeSilentToken. // -// 0 Unknown -// 1 Silent authentication -// 2 Auth by login and password -// 3 Extended registration -// 4 Auth by exchange token -// 5 Auth by exchange token on reset password -// 6 Auth by exchange token on unblock -// 7 Auth by exchange token on reset session -// 8 Auth by exchange token on change password -// 9 Finish phone validation on authentication -// 10 Auth by code -// 11 Auth by external oauth -// 12 Reactivation -// 15 Auth by SDK temporary access-token +// 0 Unknown +// 1 Silent authentication +// 2 Auth by login and password +// 3 Extended registration +// 4 Auth by exchange token +// 5 Auth by exchange token on reset password +// 6 Auth by exchange token on unblock +// 7 Auth by exchange token on reset session +// 8 Auth by exchange token on change password +// 9 Finish phone validation on authentication +// 10 Auth by code +// 11 Auth by external oauth +// 12 Reactivation +// 15 Auth by SDK temporary access-token type ExchangeSilentTokenSource int // AuthExchangeSilentAuthTokenResponse struct. diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/board.go b/vendor/github.com/SevereCloud/vksdk/v2/api/board.go index 82ddd5c0..de5aeaae 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/board.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/board.go @@ -78,7 +78,7 @@ type BoardGetCommentsResponse struct { // BoardGetComments returns a list of comments on a topic on a community's discussion board. // -// extended=0 +// extended=0 // // https://vk.com/dev/board.getComments func (vk *VK) BoardGetComments(params Params) (response BoardGetCommentsResponse, err error) { @@ -99,7 +99,7 @@ type BoardGetCommentsExtendedResponse struct { // BoardGetCommentsExtended returns a list of comments on a topic on a community's discussion board. // -// extended=1 +// extended=1 // // https://vk.com/dev/board.getComments func (vk *VK) BoardGetCommentsExtended(params Params) (response BoardGetCommentsExtendedResponse, err error) { @@ -118,7 +118,7 @@ type BoardGetTopicsResponse struct { // BoardGetTopics returns a list of topics on a community's discussion board. // -// extended=0 +// extended=0 // // https://vk.com/dev/board.getTopics func (vk *VK) BoardGetTopics(params Params) (response BoardGetTopicsResponse, err error) { @@ -139,7 +139,7 @@ type BoardGetTopicsExtendedResponse struct { // BoardGetTopicsExtended returns a list of topics on a community's discussion board. // -// extended=1 +// extended=1 // // https://vk.com/dev/board.getTopics func (vk *VK) BoardGetTopicsExtended(params Params) (response BoardGetTopicsExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/calls.go b/vendor/github.com/SevereCloud/vksdk/v2/api/calls.go new file mode 100644 index 00000000..32a51cf2 --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/calls.go @@ -0,0 +1,23 @@ +package api // import "github.com/SevereCloud/vksdk/v2/api" + +// CallsStartResponse struct. +type CallsStartResponse struct { + JoinLink string `json:"join_link"` + CallID string `json:"call_id"` +} + +// CallsStart method. +// +// https://vk.com/dev/calls.start +func (vk *VK) CallsStart(params Params) (response CallsStartResponse, err error) { + err = vk.RequestUnmarshal("calls.start", &response, params) + return +} + +// CallsForceFinish method. +// +// https://vk.com/dev/calls.forceFinish +func (vk *VK) CallsForceFinish(params Params) (response int, err error) { + err = vk.RequestUnmarshal("calls.forceFinish", &response, params) + return +} diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/execute.go b/vendor/github.com/SevereCloud/vksdk/v2/api/execute.go index 1ee04cee..1dd35e93 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/execute.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/execute.go @@ -13,8 +13,8 @@ import ( // The Args map variable allows you to retrieve the parameters passed during // the request and avoids code formatting. // -// return Args.code; // return parameter "code" -// return Args.v; // return parameter "v" +// return Args.code; // return parameter "code" +// return Args.v; // return parameter "v" // // https://vk.com/dev/execute func (vk *VK) ExecuteWithArgs(code string, params Params, obj interface{}) error { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/fave.go b/vendor/github.com/SevereCloud/vksdk/v2/api/fave.go index 5690aab8..b519f1b0 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/fave.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/fave.go @@ -79,7 +79,7 @@ type FaveGetResponse struct { // FaveGet method. // -// extended=0 +// extended=0 // // https://vk.com/dev/fave.get func (vk *VK) FaveGet(params Params) (response FaveGetResponse, err error) { @@ -97,7 +97,7 @@ type FaveGetExtendedResponse struct { // FaveGetExtended method. // -// extended=1 +// extended=1 // // https://vk.com/dev/fave.get func (vk *VK) FaveGetExtended(params Params) (response FaveGetExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/friends.go b/vendor/github.com/SevereCloud/vksdk/v2/api/friends.go index 07cfc7d7..4cbb8c7c 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/friends.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/friends.go @@ -169,7 +169,7 @@ func (vk *VK) FriendsGetMutual(params Params) (response FriendsGetMutualResponse // FriendsGetOnline returns a list of user IDs of a user's friends who are online. // -// online_mobile=0 +// online_mobile=0 // // https://vk.com/dev/friends.getOnline func (vk *VK) FriendsGetOnline(params Params) (response []int, err error) { @@ -186,7 +186,7 @@ type FriendsGetOnlineOnlineMobileResponse struct { // FriendsGetOnlineOnlineMobile returns a list of user IDs of a user's friends who are online. // -// online_mobile=1 +// online_mobile=1 // // https://vk.com/dev/friends.getOnline func (vk *VK) FriendsGetOnlineOnlineMobile(params Params) (response FriendsGetOnlineOnlineMobileResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/groups.go b/vendor/github.com/SevereCloud/vksdk/v2/api/groups.go index 72c4143f..868bee86 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/groups.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/groups.go @@ -157,7 +157,7 @@ type GroupsGetResponse struct { // GroupsGet returns a list of the communities to which a user belongs. // -// extended=0 +// extended=0 // // https://vk.com/dev/groups.get func (vk *VK) GroupsGet(params Params) (response GroupsGetResponse, err error) { @@ -174,7 +174,7 @@ type GroupsGetExtendedResponse struct { // GroupsGetExtended returns a list of the communities to which a user belongs. // -// extended=1 +// extended=1 // // https://vk.com/dev/groups.get func (vk *VK) GroupsGetExtended(params Params) (response GroupsGetExtendedResponse, err error) { @@ -273,6 +273,8 @@ type GroupsGetCatalogResponse struct { // GroupsGetCatalog returns communities list for a catalog category. // +// Deprecated: This method is deprecated and may be disabled soon, please avoid +// // https://vk.com/dev/groups.getCatalog func (vk *VK) GroupsGetCatalog(params Params) (response GroupsGetCatalogResponse, err error) { err = vk.RequestUnmarshal("groups.getCatalog", &response, params) @@ -287,7 +289,7 @@ type GroupsGetCatalogInfoResponse struct { // GroupsGetCatalogInfo returns categories list for communities catalog. // -// extended=0 +// extended=0 // // https://vk.com/dev/groups.getCatalogInfo func (vk *VK) GroupsGetCatalogInfo(params Params) (response GroupsGetCatalogInfoResponse, err error) { @@ -304,7 +306,7 @@ type GroupsGetCatalogInfoExtendedResponse struct { // GroupsGetCatalogInfoExtended returns categories list for communities catalog. // -// extended=1 +// extended=1 // // https://vk.com/dev/groups.getCatalogInfo func (vk *VK) GroupsGetCatalogInfoExtended(params Params) (response GroupsGetCatalogInfoExtendedResponse, err error) { @@ -421,7 +423,7 @@ type GroupsGetMembersFilterManagersResponse struct { // GroupsGetMembersFilterManagers returns a list of community members. // -// filter=managers +// filter=managers // // https://vk.com/dev/groups.getMembers func (vk *VK) GroupsGetMembersFilterManagers(params Params) ( @@ -522,7 +524,7 @@ func (vk *VK) GroupsInvite(params Params) (response int, err error) { // GroupsIsMember returns information specifying whether a user is a member of a community. // -// extended=0 +// extended=0 // // https://vk.com/dev/groups.isMember func (vk *VK) GroupsIsMember(params Params) (response int, err error) { @@ -542,7 +544,7 @@ type GroupsIsMemberExtendedResponse struct { // GroupsIsMemberExtended returns information specifying whether a user is a member of a community. // -// extended=1 +// extended=1 // // https://vk.com/dev/groups.isMember func (vk *VK) GroupsIsMemberExtended(params Params) (response GroupsIsMemberExtendedResponse, err error) { @@ -556,8 +558,8 @@ type GroupsIsMemberUserIDsExtendedResponse []object.GroupsMemberStatusFull // GroupsIsMemberUserIDsExtended returns information specifying whether a user is a member of a community. // -// extended=1 -// need user_ids +// extended=1 +// need user_ids // // https://vk.com/dev/groups.isMember func (vk *VK) GroupsIsMemberUserIDsExtended(params Params) (response GroupsIsMemberUserIDsExtendedResponse, err error) { @@ -571,8 +573,8 @@ type GroupsIsMemberUserIDsResponse []object.GroupsMemberStatus // GroupsIsMemberUserIDs returns information specifying whether a user is a member of a community. // -// extended=0 -// need user_ids +// extended=0 +// need user_ids // // https://vk.com/dev/groups.isMember func (vk *VK) GroupsIsMemberUserIDs(params Params) (response GroupsIsMemberUserIDsResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/likes.go b/vendor/github.com/SevereCloud/vksdk/v2/api/likes.go index 047c2935..fc89c08b 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/likes.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/likes.go @@ -38,7 +38,7 @@ type LikesGetListResponse struct { // LikesGetList likes.getList returns a list of IDs of users who added the specified object to their Likes list. // -// extended=0 +// extended=0 // // https://vk.com/dev/likes.getList func (vk *VK) LikesGetList(params Params) (response LikesGetListResponse, err error) { @@ -55,7 +55,7 @@ type LikesGetListExtendedResponse struct { // LikesGetListExtended likes.getList returns a list of IDs of users who added the specified object to their Likes list. // -// extended=1 +// extended=1 // // https://vk.com/dev/likes.getList func (vk *VK) LikesGetListExtended(params Params) (response LikesGetListExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/market.go b/vendor/github.com/SevereCloud/vksdk/v2/api/market.go index 6b823818..e11f5a9f 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/market.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/market.go @@ -181,7 +181,7 @@ type MarketGetCommentsResponse struct { // MarketGetComments returns comments list for an item. // -// extended=0 +// extended=0 // // https://vk.com/dev/market.getComments func (vk *VK) MarketGetComments(params Params) (response MarketGetCommentsResponse, err error) { @@ -199,7 +199,7 @@ type MarketGetCommentsExtendedResponse struct { // MarketGetCommentsExtended returns comments list for an item. // -// extended=1 +// extended=1 // // https://vk.com/dev/market.getComments func (vk *VK) MarketGetCommentsExtended(params Params) (response MarketGetCommentsExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/messages.go b/vendor/github.com/SevereCloud/vksdk/v2/api/messages.go index 7a0bebc4..0b15a6a5 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/messages.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/messages.go @@ -118,6 +118,8 @@ func (vk *VK) MessagesEditChat(params Params) (response int, err error) { // MessagesForceCallFinish method. // +// Deprecated: Use CallsForceFinish +// // https://vk.com/dev/messages.forceCallFinish func (vk *VK) MessagesForceCallFinish(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.forceCallFinish", &response, params) @@ -150,7 +152,7 @@ type MessagesGetByIDResponse struct { // MessagesGetByID returns messages by their IDs. // -// extended=0 +// extended=0 // // https://vk.com/dev/messages.getById func (vk *VK) MessagesGetByID(params Params) (response MessagesGetByIDResponse, err error) { @@ -168,7 +170,7 @@ type MessagesGetByIDExtendedResponse struct { // MessagesGetByIDExtended returns messages by their IDs. // -// extended=1 +// extended=1 // // https://vk.com/dev/messages.getById func (vk *VK) MessagesGetByIDExtended(params Params) (response MessagesGetByIDExtendedResponse, err error) { @@ -268,7 +270,7 @@ type MessagesGetConversationsByIDResponse struct { // MessagesGetConversationsByID returns conversations by their IDs. // -// extended=0 +// extended=0 // // https://vk.com/dev/messages.getConversationsById func (vk *VK) MessagesGetConversationsByID(params Params) (response MessagesGetConversationsByIDResponse, err error) { @@ -286,7 +288,7 @@ type MessagesGetConversationsByIDExtendedResponse struct { // MessagesGetConversationsByIDExtended returns conversations by their IDs. // -// extended=1 +// extended=1 // // https://vk.com/dev/messages.getConversationsById func (vk *VK) MessagesGetConversationsByIDExtended(params Params) ( @@ -583,7 +585,7 @@ type MessagesSendUserIDsResponse []struct { // MessagesSendPeerIDs sends a message. // -// need peer_ids; +// need peer_ids; // // https://vk.com/dev/messages.send func (vk *VK) MessagesSendPeerIDs(params Params) (response MessagesSendUserIDsResponse, err error) { @@ -593,7 +595,7 @@ func (vk *VK) MessagesSendPeerIDs(params Params) (response MessagesSendUserIDsRe // MessagesSendUserIDs sends a message. // -// need user_ids or peer_ids; +// need user_ids or peer_ids; // // https://vk.com/dev/messages.send // @@ -649,6 +651,8 @@ type MessagesStartCallResponse struct { // MessagesStartCall method. // +// Deprecated: Use CallsStart +// // https://vk.com/dev/messages.startCall func (vk *VK) MessagesStartCall(params Params) (response MessagesStartCallResponse, err error) { err = vk.RequestUnmarshal("messages.startCall", &response, params) diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/newsfeed.go b/vendor/github.com/SevereCloud/vksdk/v2/api/newsfeed.go index 36ce1453..52f19cf3 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/newsfeed.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/newsfeed.go @@ -53,7 +53,7 @@ type NewsfeedGetBannedResponse struct { // NewsfeedGetBanned returns a list of users and communities banned from the current user's newsfeed. // -// extended=0 +// extended=0 // // https://vk.com/dev/newsfeed.getBanned func (vk *VK) NewsfeedGetBanned(params Params) (response NewsfeedGetBannedResponse, err error) { @@ -69,7 +69,7 @@ type NewsfeedGetBannedExtendedResponse struct { // NewsfeedGetBannedExtended returns a list of users and communities banned from the current user's newsfeed. // -// extended=1 +// extended=1 // // https://vk.com/dev/newsfeed.getBanned func (vk *VK) NewsfeedGetBannedExtended(params Params) (response NewsfeedGetBannedExtendedResponse, err error) { @@ -183,7 +183,7 @@ type NewsfeedSearchResponse struct { // NewsfeedSearch returns search results by statuses. // -// extended=0 +// extended=0 // // https://vk.com/dev/newsfeed.search func (vk *VK) NewsfeedSearch(params Params) (response NewsfeedSearchResponse, err error) { @@ -204,7 +204,7 @@ type NewsfeedSearchExtendedResponse struct { // NewsfeedSearchExtended returns search results by statuses. // -// extended=1 +// extended=1 // // https://vk.com/dev/newsfeed.search func (vk *VK) NewsfeedSearchExtended(params Params) (response NewsfeedSearchExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/photos.go b/vendor/github.com/SevereCloud/vksdk/v2/api/photos.go index d52cbeed..3754814c 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/photos.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/photos.go @@ -95,7 +95,7 @@ type PhotosGetResponse struct { // PhotosGet returns a list of a user's or community's photos. // -// extended=0 +// extended=0 // // https://vk.com/dev/photos.get func (vk *VK) PhotosGet(params Params) (response PhotosGetResponse, err error) { @@ -112,7 +112,7 @@ type PhotosGetExtendedResponse struct { // PhotosGetExtended returns a list of a user's or community's photos. // -// extended=1 +// extended=1 // // https://vk.com/dev/photos.get func (vk *VK) PhotosGetExtended(params Params) (response PhotosGetExtendedResponse, err error) { @@ -152,7 +152,7 @@ type PhotosGetAllResponse struct { // PhotosGetAll returns a list of photos belonging to a user or community, in reverse chronological order. // -// extended=0 +// extended=0 // // https://vk.com/dev/photos.getAll func (vk *VK) PhotosGetAll(params Params) (response PhotosGetAllResponse, err error) { @@ -170,7 +170,7 @@ type PhotosGetAllExtendedResponse struct { // PhotosGetAllExtended returns a list of photos belonging to a user or community, in reverse chronological order. // -// extended=1 +// extended=1 // // https://vk.com/dev/photos.getAll func (vk *VK) PhotosGetAllExtended(params Params) (response PhotosGetAllExtendedResponse, err error) { @@ -199,7 +199,7 @@ type PhotosGetByIDResponse []object.PhotosPhoto // PhotosGetByID returns information about photos by their IDs. // -// extended=0 +// extended=0 // // https://vk.com/dev/photos.getById func (vk *VK) PhotosGetByID(params Params) (response PhotosGetByIDResponse, err error) { @@ -213,7 +213,7 @@ type PhotosGetByIDExtendedResponse []object.PhotosPhotoFull // PhotosGetByIDExtended returns information about photos by their IDs. // -// extended=1 +// extended=1 // // https://vk.com/dev/photos.getById func (vk *VK) PhotosGetByIDExtended(params Params) (response PhotosGetByIDExtendedResponse, err error) { @@ -244,7 +244,7 @@ type PhotosGetCommentsResponse struct { // PhotosGetComments returns a list of comments on a photo. // -// extended=0 +// extended=0 // // https://vk.com/dev/photos.getComments func (vk *VK) PhotosGetComments(params Params) (response PhotosGetCommentsResponse, err error) { @@ -264,7 +264,7 @@ type PhotosGetCommentsExtendedResponse struct { // PhotosGetCommentsExtended returns a list of comments on a photo. // -// extended=1 +// extended=1 // // https://vk.com/dev/photos.getComments func (vk *VK) PhotosGetCommentsExtended(params Params) (response PhotosGetCommentsExtendedResponse, err error) { @@ -395,7 +395,7 @@ type PhotosGetUserPhotosResponse struct { // PhotosGetUserPhotos returns a list of photos in which a user is tagged. // -// extended=0 +// extended=0 // // https://vk.com/dev/photos.getUserPhotos func (vk *VK) PhotosGetUserPhotos(params Params) (response PhotosGetUserPhotosResponse, err error) { @@ -412,7 +412,7 @@ type PhotosGetUserPhotosExtendedResponse struct { // PhotosGetUserPhotosExtended returns a list of photos in which a user is tagged. // -// extended=1 +// extended=1 // // https://vk.com/dev/photos.getUserPhotos func (vk *VK) PhotosGetUserPhotosExtended(params Params) (response PhotosGetUserPhotosExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/podcasts.go b/vendor/github.com/SevereCloud/vksdk/v2/api/podcasts.go index 8534d0fc..51ffb8cb 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/podcasts.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/podcasts.go @@ -11,7 +11,7 @@ type PodcastsGetCatalogResponse struct { // PodcastsGetCatalog method. // -// extended=0 +// extended=0 // // https://vk.com/dev/podcasts.getCatalog func (vk *VK) PodcastsGetCatalog(params Params) (response PodcastsGetCatalogResponse, err error) { @@ -28,7 +28,7 @@ type PodcastsGetCatalogExtendedResponse struct { // PodcastsGetCatalogExtended method. // -// extended=1 +// extended=1 // // https://vk.com/dev/podcasts.getCatalog func (vk *VK) PodcastsGetCatalogExtended(params Params) (response PodcastsGetCatalogExtendedResponse, err error) { @@ -70,7 +70,7 @@ type PodcastsGetFeedResponse struct { // PodcastsGetFeed method. // -// extended=0 +// extended=0 // // https://vk.com/dev/podcasts.getFeed func (vk *VK) PodcastsGetFeed(params Params) (response PodcastsGetFeedResponse, err error) { @@ -88,7 +88,7 @@ type PodcastsGetFeedExtendedResponse struct { // PodcastsGetFeedExtended method. // -// extended=1 +// extended=1 // // https://vk.com/dev/podcasts.getFeed func (vk *VK) PodcastsGetFeedExtended(params Params) (response PodcastsGetFeedExtendedResponse, err error) { @@ -116,7 +116,7 @@ type PodcastsGetStartPageResponse struct { // PodcastsGetStartPage method. // -// extended=0 +// extended=0 // // https://vk.com/dev/podcasts.getStartPage func (vk *VK) PodcastsGetStartPage(params Params) (response PodcastsGetStartPageResponse, err error) { @@ -145,7 +145,7 @@ type PodcastsGetStartPageExtendedResponse struct { // PodcastsGetStartPageExtended method. // -// extended=1 +// extended=1 // // https://vk.com/dev/podcasts.getStartPage func (vk *VK) PodcastsGetStartPageExtended(params Params) (response PodcastsGetStartPageExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go b/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go index b68424b8..d3893029 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go @@ -30,7 +30,7 @@ type StoriesGetResponse struct { // StoriesGet returns stories available for current user. // -// extended=0 +// extended=0 // // https://vk.com/dev/stories.get func (vk *VK) StoriesGet(params Params) (response StoriesGetResponse, err error) { @@ -50,7 +50,7 @@ type StoriesGetExtendedResponse struct { // StoriesGetExtended returns stories available for current user. // -// extended=1 +// extended=1 // // https://vk.com/dev/stories.get func (vk *VK) StoriesGetExtended(params Params) (response StoriesGetExtendedResponse, err error) { @@ -67,7 +67,7 @@ type StoriesGetBannedResponse struct { // StoriesGetBanned returns list of sources hidden from current user's feed. // -// extended=0 +// extended=0 // // https://vk.com/dev/stories.getBanned func (vk *VK) StoriesGetBanned(params Params) (response StoriesGetBannedResponse, err error) { @@ -85,7 +85,7 @@ type StoriesGetBannedExtendedResponse struct { // StoriesGetBannedExtended returns list of sources hidden from current user's feed. // -// extended=1 +// extended=1 // // https://vk.com/dev/stories.getBanned func (vk *VK) StoriesGetBannedExtended(params Params) (response StoriesGetBannedExtendedResponse, err error) { @@ -102,7 +102,7 @@ type StoriesGetByIDResponse struct { // StoriesGetByID returns story by its ID. // -// extended=0 +// extended=0 // // https://vk.com/dev/stories.getById func (vk *VK) StoriesGetByID(params Params) (response StoriesGetByIDResponse, err error) { @@ -120,7 +120,7 @@ type StoriesGetByIDExtendedResponse struct { // StoriesGetByIDExtended returns story by its ID. // -// extended=1 +// extended=1 // // https://vk.com/dev/stories.getById func (vk *VK) StoriesGetByIDExtended(params Params) (response StoriesGetByIDExtendedResponse, err error) { @@ -152,7 +152,7 @@ type StoriesGetRepliesResponse struct { // StoriesGetReplies returns replies to the story. // -// extended=0 +// extended=0 // // https://vk.com/dev/stories.getReplies func (vk *VK) StoriesGetReplies(params Params) (response StoriesGetRepliesResponse, err error) { @@ -170,7 +170,7 @@ type StoriesGetRepliesExtendedResponse struct { // StoriesGetRepliesExtended returns replies to the story. // -// extended=1 +// extended=1 // // https://vk.com/dev/stories.getReplies func (vk *VK) StoriesGetRepliesExtended(params Params) (response StoriesGetRepliesExtendedResponse, err error) { @@ -213,7 +213,7 @@ type StoriesGetViewersResponse struct { // StoriesGetViewers returns a list of story viewers. // -// extended=0 +// extended=0 // // https://vk.com/dev/stories.getViewers func (vk *VK) StoriesGetViewers(params Params) (response StoriesGetViewersResponse, err error) { @@ -261,7 +261,7 @@ type StoriesSearchResponse struct { // StoriesSearch returns search results for stories. // -// extended=0 +// extended=0 // // https://vk.com/dev/stories.search func (vk *VK) StoriesSearch(params Params) (response StoriesSearchResponse, err error) { @@ -279,7 +279,7 @@ type StoriesSearchExtendedResponse struct { // StoriesSearchExtended returns search results for stories. // -// extended=1 +// extended=1 // // https://vk.com/dev/stories.search func (vk *VK) StoriesSearchExtended(params Params) (response StoriesSearchExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/upload.go b/vendor/github.com/SevereCloud/vksdk/v2/api/upload.go index 59f65460..70362ebe 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/upload.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/upload.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/json" "io" - "io/ioutil" "mime/multipart" "github.com/SevereCloud/vksdk/v2/object" @@ -34,7 +33,7 @@ func (vk *VK) UploadFile(url string, file io.Reader, fieldname, filename string) } defer resp.Body.Close() - bodyContent, err = ioutil.ReadAll(resp.Body) + bodyContent, err = io.ReadAll(resp.Body) return } @@ -214,7 +213,7 @@ func (vk *VK) uploadOwnerPhoto(params Params, squareCrop string, file io.Reader) } defer resp.Body.Close() - bodyContent, err := ioutil.ReadAll(resp.Body) + bodyContent, err := io.ReadAll(resp.Body) if err != nil { return } diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/users.go b/vendor/github.com/SevereCloud/vksdk/v2/api/users.go index 2251d562..fdd25ead 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/users.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/users.go @@ -24,7 +24,7 @@ type UsersGetFollowersResponse struct { // UsersGetFollowers returns a list of IDs of followers of the user in // question, sorted by date added, most recent first. // -// fields=""; +// fields=""; // // https://vk.com/dev/users.getFollowers func (vk *VK) UsersGetFollowers(params Params) (response UsersGetFollowersResponse, err error) { @@ -70,7 +70,7 @@ type UsersGetSubscriptionsResponse struct { // UsersGetSubscriptions returns a list of IDs of users and public pages followed by the user. // -// extended=0 +// extended=0 // // https://vk.com/dev/users.getSubscriptions // diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/utils.go b/vendor/github.com/SevereCloud/vksdk/v2/api/utils.go index 965c26f2..97030e94 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/utils.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/utils.go @@ -43,7 +43,7 @@ type UtilsGetLinkStatsResponse object.UtilsLinkStats // UtilsGetLinkStats returns stats data for shortened link. // -// extended=0 +// extended=0 // // https://vk.com/dev/utils.getLinkStats func (vk *VK) UtilsGetLinkStats(params Params) (response UtilsGetLinkStatsResponse, err error) { @@ -57,7 +57,7 @@ type UtilsGetLinkStatsExtendedResponse object.UtilsLinkStatsExtended // UtilsGetLinkStatsExtended returns stats data for shortened link. // -// extended=1 +// extended=1 // // https://vk.com/dev/utils.getLinkStats func (vk *VK) UtilsGetLinkStatsExtended(params Params) (response UtilsGetLinkStatsExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/video.go b/vendor/github.com/SevereCloud/vksdk/v2/api/video.go index 01b7f83e..de9eee5a 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/video.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/video.go @@ -97,7 +97,7 @@ type VideoGetResponse struct { // VideoGet returns detailed information about videos. // -// extended=0 +// extended=0 // // https://vk.com/dev/video.get func (vk *VK) VideoGet(params Params) (response VideoGetResponse, err error) { @@ -115,7 +115,7 @@ type VideoGetExtendedResponse struct { // VideoGetExtended returns detailed information about videos. // -// extended=1 +// extended=1 // // https://vk.com/dev/video.get func (vk *VK) VideoGetExtended(params Params) (response VideoGetExtendedResponse, err error) { @@ -143,7 +143,7 @@ type VideoGetAlbumsResponse struct { // VideoGetAlbums returns a list of video albums owned by a user or community. // -// extended=0 +// extended=0 // // https://vk.com/dev/video.getAlbums func (vk *VK) VideoGetAlbums(params Params) (response VideoGetAlbumsResponse, err error) { @@ -160,7 +160,7 @@ type VideoGetAlbumsExtendedResponse struct { // VideoGetAlbumsExtended returns a list of video albums owned by a user or community. // -// extended=1 +// extended=1 // // https://vk.com/dev/video.getAlbums func (vk *VK) VideoGetAlbumsExtended(params Params) (response VideoGetAlbumsExtendedResponse, err error) { @@ -174,7 +174,7 @@ type VideoGetAlbumsByVideoResponse []int // VideoGetAlbumsByVideo returns a list of albums in which the video is located. // -// extended=0 +// extended=0 // // https://vk.com/dev/video.getAlbumsByVideo func (vk *VK) VideoGetAlbumsByVideo(params Params) (response VideoGetAlbumsByVideoResponse, err error) { @@ -191,7 +191,7 @@ type VideoGetAlbumsByVideoExtendedResponse struct { // VideoGetAlbumsByVideoExtended returns a list of albums in which the video is located. // -// extended=1 +// extended=1 // // https://vk.com/dev/video.getAlbumsByVideo func (vk *VK) VideoGetAlbumsByVideoExtended(params Params) (response VideoGetAlbumsByVideoExtendedResponse, err error) { @@ -208,7 +208,7 @@ type VideoGetCommentsResponse struct { // VideoGetComments returns a list of comments on a video. // -// extended=0 +// extended=0 // // https://vk.com/dev/video.getComments func (vk *VK) VideoGetComments(params Params) (response VideoGetCommentsResponse, err error) { @@ -226,7 +226,7 @@ type VideoGetCommentsExtendedResponse struct { // VideoGetCommentsExtended returns a list of comments on a video. // -// extended=1 +// extended=1 // // https://vk.com/dev/video.getComments func (vk *VK) VideoGetCommentsExtended(params Params) (response VideoGetCommentsExtendedResponse, err error) { @@ -321,7 +321,7 @@ type VideoSearchResponse struct { // VideoSearch returns a list of videos under the set search criterion. // -// extended=0 +// extended=0 // // https://vk.com/dev/video.search func (vk *VK) VideoSearch(params Params) (response VideoSearchResponse, err error) { @@ -339,7 +339,7 @@ type VideoSearchExtendedResponse struct { // VideoSearchExtended returns a list of videos under the set search criterion. // -// extended=1 +// extended=1 // // https://vk.com/dev/video.search func (vk *VK) VideoSearchExtended(params Params) (response VideoSearchExtendedResponse, err error) { diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/wall.go b/vendor/github.com/SevereCloud/vksdk/v2/api/wall.go index e951a749..81dab18a 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/wall.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/wall.go @@ -87,7 +87,7 @@ type WallGetResponse struct { // WallGet returns a list of posts on a user wall or community wall. // -// extended=0 +// extended=0 // // https://vk.com/dev/wall.get func (vk *VK) WallGet(params Params) (response WallGetResponse, err error) { @@ -105,7 +105,7 @@ type WallGetExtendedResponse struct { // WallGetExtended returns a list of posts on a user wall or community wall. // -// extended=1 +// extended=1 // // https://vk.com/dev/wall.get func (vk *VK) WallGetExtended(params Params) (response WallGetExtendedResponse, err error) { @@ -119,7 +119,7 @@ type WallGetByIDResponse []object.WallWallpost // WallGetByID returns a list of posts from user or community walls by their IDs. // -// extended=0 +// extended=0 // // https://vk.com/dev/wall.getById func (vk *VK) WallGetByID(params Params) (response WallGetByIDResponse, err error) { @@ -136,7 +136,7 @@ type WallGetByIDExtendedResponse struct { // WallGetByIDExtended returns a list of posts from user or community walls by their IDs. // -// extended=1 +// extended=1 // // https://vk.com/dev/wall.getById func (vk *VK) WallGetByIDExtended(params Params) (response WallGetByIDExtendedResponse, err error) { @@ -156,7 +156,7 @@ type WallGetCommentResponse struct { // WallGetComment allows to obtain wall comment info. // -// extended=0 +// extended=0 // // https://vk.com/dev/wall.getComment func (vk *VK) WallGetComment(params Params) (response WallGetCommentResponse, err error) { @@ -179,7 +179,7 @@ type WallGetCommentExtendedResponse struct { // WallGetCommentExtended allows to obtain wall comment info. // -// extended=1 +// extended=1 // // https://vk.com/dev/wall.getComment func (vk *VK) WallGetCommentExtended(params Params) (response WallGetCommentExtendedResponse, err error) { @@ -200,7 +200,7 @@ type WallGetCommentsResponse struct { // WallGetComments returns a list of comments on a post on a user wall or community wall. // -// extended=0 +// extended=0 // // https://vk.com/dev/wall.getComments func (vk *VK) WallGetComments(params Params) (response WallGetCommentsResponse, err error) { @@ -222,7 +222,7 @@ type WallGetCommentsExtendedResponse struct { // WallGetCommentsExtended returns a list of comments on a post on a user wall or community wall. // -// extended=1 +// extended=1 // // https://vk.com/dev/wall.getComments func (vk *VK) WallGetCommentsExtended(params Params) (response WallGetCommentsExtendedResponse, err error) { @@ -347,7 +347,7 @@ type WallSearchResponse struct { // WallSearch allows to search posts on user or community walls. // -// extended=0 +// extended=0 // // https://vk.com/dev/wall.search func (vk *VK) WallSearch(params Params) (response WallSearchResponse, err error) { @@ -365,7 +365,7 @@ type WallSearchExtendedResponse struct { // WallSearchExtended allows to search posts on user or community walls. // -// extended=1 +// extended=1 // // https://vk.com/dev/wall.search func (vk *VK) WallSearchExtended(params Params) (response WallSearchExtendedResponse, err error) { -- cgit v1.2.3