forked from lug/matterbridge
		
	
							
								
								
									
										33
									
								
								vendor/github.com/SevereCloud/vksdk/v2/.golangci.yml
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								vendor/github.com/SevereCloud/vksdk/v2/.golangci.yml
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,9 +1,11 @@ | ||||
| --- | ||||
| run: | ||||
|   timeout: 5m | ||||
|  | ||||
| linters: | ||||
|   disable-all: true | ||||
|   enable: | ||||
|     - bodyclose | ||||
|     - deadcode | ||||
|     - errcheck | ||||
|     - gochecknoglobals | ||||
|     - goconst | ||||
| @@ -19,13 +21,11 @@ linters: | ||||
|     - nakedret | ||||
|     - prealloc | ||||
|     - staticcheck | ||||
|     - structcheck | ||||
|     - stylecheck | ||||
|     - typecheck | ||||
|     - unconvert | ||||
|     - unparam | ||||
|     - unused | ||||
|     - varcheck | ||||
|     - whitespace | ||||
|     - wsl | ||||
|     - godot | ||||
| @@ -40,7 +40,6 @@ linters: | ||||
|     - makezero | ||||
|     - thelper | ||||
|     - predeclared | ||||
|     - ifshort | ||||
|     - revive | ||||
|     - durationcheck | ||||
|     - gomoddirectives | ||||
| @@ -57,9 +56,18 @@ linters: | ||||
|     - grouper | ||||
|     - decorder | ||||
|     - containedctx | ||||
|     # - execinquery # FIXME: panic in 1.46.0 | ||||
|     - nosprintfhostport | ||||
|     - usestdlibvars | ||||
|  | ||||
|     - interfacebloat | ||||
|     - reassign | ||||
|  | ||||
|     - testableexamples | ||||
|  | ||||
|     - gocheckcompilerdirectives | ||||
|     - asasalint | ||||
|  | ||||
| # - musttag # TODO: need update golangci-lint | ||||
| # - wrapcheck # TODO: v3 Fix | ||||
| # - testpackage # TODO: Fix testpackage | ||||
| # - noctx # TODO: Fix noctx | ||||
| @@ -90,11 +98,22 @@ linters: | ||||
| # - errchkjson | ||||
| # - maintidx | ||||
| # - nonamedreturns | ||||
| # - nosnakecase | ||||
| # - execinquery | ||||
| # - logrlint | ||||
|  | ||||
| # - dupword | ||||
|  | ||||
| # - ginkgolinter | ||||
|  | ||||
| # depricated | ||||
| # - maligned | ||||
| # - interfacer | ||||
| # - golint | ||||
| # - ifshort | ||||
| # - deadcode | ||||
| # - structcheck | ||||
| # - varcheck | ||||
|  | ||||
| issues: | ||||
|   exclude-rules: | ||||
| @@ -114,4 +133,8 @@ issues: | ||||
|         - stylecheck | ||||
|       text: "ST1003:.*(Ts|ts).*TS" | ||||
|  | ||||
|     - linters: | ||||
|         - gosec | ||||
|       text: "G307:" | ||||
|  | ||||
|   exclude-use-default: false | ||||
|   | ||||
							
								
								
									
										29
									
								
								vendor/github.com/SevereCloud/vksdk/v2/CONTRIBUTING.md
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								vendor/github.com/SevereCloud/vksdk/v2/CONTRIBUTING.md
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -6,7 +6,7 @@ | ||||
|  | ||||
| Требования: | ||||
|  | ||||
| - [Go 1.16+](https://golang.org/doc/install) | ||||
| - [Go 1.18+](https://golang.org/doc/install) | ||||
| - [golangci-lint](https://github.com/golangci/golangci-lint) | ||||
| - [global .gitignore](https://help.github.com/en/articles/ignoring-files#create-a-global-gitignore) | ||||
|  | ||||
| @@ -54,17 +54,17 @@ go test ./... | ||||
|  | ||||
| ```json | ||||
| { | ||||
|     "go.testEnvVars": { | ||||
|         "SERVICE_TOKEN": "", | ||||
|         "WIDGET_TOKEN": "", | ||||
|         "MARUSIA_TOKEN": "", | ||||
|         "GROUP_TOKEN": "", | ||||
|         "CLIENT_SECRET": "", | ||||
|         "USER_TOKEN": "", | ||||
|         "CLIENT_ID": "123456", | ||||
|         "GROUP_ID": "123456", | ||||
|         "ACCOUNT_ID": "123456" | ||||
|     } | ||||
|   "go.testEnvVars": { | ||||
|     "SERVICE_TOKEN": "", | ||||
|     "WIDGET_TOKEN": "", | ||||
|     "MARUSIA_TOKEN": "", | ||||
|     "GROUP_TOKEN": "", | ||||
|     "CLIENT_SECRET": "", | ||||
|     "USER_TOKEN": "", | ||||
|     "CLIENT_ID": "123456", | ||||
|     "GROUP_ID": "123456", | ||||
|     "ACCOUNT_ID": "123456" | ||||
|   } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| @@ -88,7 +88,4 @@ git push origin <name_of_your_new_branch> | ||||
| ``` | ||||
|  | ||||
| Затем откройте [pull request](https://github.com/SevereCloud/vksdk/pulls) | ||||
| с веткой: | ||||
|  | ||||
| - `master` если это багфикс | ||||
| - `dev-v1.2.3` если это новая фича | ||||
| с веткой master | ||||
|   | ||||
							
								
								
									
										1
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/ads.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/ads.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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 | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/api.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/api.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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 | ||||
| 		} | ||||
|   | ||||
							
								
								
									
										8
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/apps.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/apps.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										28
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/auth.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/auth.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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. | ||||
|   | ||||
							
								
								
									
										8
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/board.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/board.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										23
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/calls.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/calls.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -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 | ||||
| } | ||||
							
								
								
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/execute.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/execute.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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 { | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/fave.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/fave.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/friends.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/friends.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										24
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/groups.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/groups.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/likes.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/likes.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/market.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/market.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										16
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/messages.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/messages.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) | ||||
|   | ||||
							
								
								
									
										8
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/newsfeed.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/newsfeed.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										20
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/photos.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/photos.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										12
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/podcasts.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/podcasts.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										22
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/stories.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/stories.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										5
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/upload.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/upload.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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 | ||||
| 	} | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/users.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/users.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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 | ||||
| // | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/utils.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/utils.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										20
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/video.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/video.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										20
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/wall.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								vendor/github.com/SevereCloud/vksdk/v2/api/wall.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/github.com/SevereCloud/vksdk/v2/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/SevereCloud/vksdk/v2/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -7,6 +7,6 @@ package vksdk | ||||
|  | ||||
| // Module constants. | ||||
| const ( | ||||
| 	Version = "2.15.0" | ||||
| 	Version = "2.16.0" | ||||
| 	API     = "5.131" | ||||
| ) | ||||
|   | ||||
							
								
								
									
										114
									
								
								vendor/github.com/SevereCloud/vksdk/v2/events/events.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										114
									
								
								vendor/github.com/SevereCloud/vksdk/v2/events/events.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -156,13 +156,15 @@ func NewFuncList() *FuncList { | ||||
| } | ||||
|  | ||||
| // Handler group event handler. | ||||
| func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint:gocyclo | ||||
| func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { //nolint:gocyclo | ||||
| 	ctx = context.WithValue(ctx, internal.GroupIDKey, e.GroupID) | ||||
| 	ctx = context.WithValue(ctx, internal.EventIDKey, e.EventID) | ||||
| 	ctx = context.WithValue(ctx, internal.EventVersionKey, e.V) | ||||
|  | ||||
| 	if sliceFunc, ok := fl.special[e.Type]; ok { | ||||
| 		for _, f := range sliceFunc { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, e) }() | ||||
| 			} else { | ||||
| @@ -179,6 +181,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.messageNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -192,6 +196,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.messageReply { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -205,6 +211,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.messageEdit { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -218,6 +226,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.messageAllow { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -231,6 +241,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.messageDeny { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -244,6 +256,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.messageTypingState { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -257,6 +271,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.messageEvent { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -270,6 +286,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.photoNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -283,6 +301,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.photoCommentNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -296,6 +316,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.photoCommentEdit { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -309,6 +331,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.photoCommentRestore { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -322,6 +346,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.photoCommentDelete { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -335,6 +361,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.audioNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -348,6 +376,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.videoNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -361,6 +391,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.videoCommentNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -374,6 +406,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.videoCommentEdit { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -387,6 +421,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.videoCommentRestore { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -400,6 +436,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.videoCommentDelete { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -413,6 +451,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.wallPostNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -426,6 +466,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.wallRepost { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -439,6 +481,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.wallReplyNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -452,6 +496,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.wallReplyEdit { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -465,6 +511,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.wallReplyRestore { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -478,6 +526,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.wallReplyDelete { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -491,6 +541,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.boardPostNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -504,6 +556,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.boardPostEdit { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -517,6 +571,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.boardPostRestore { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -530,6 +586,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.boardPostDelete { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -543,6 +601,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.marketCommentNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -556,6 +616,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.marketCommentEdit { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -569,6 +631,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.marketCommentRestore { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -582,6 +646,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.marketCommentDelete { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -595,6 +661,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.marketOrderNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -608,6 +676,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.marketOrderEdit { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -621,6 +691,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.groupLeave { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -634,6 +706,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.groupJoin { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -647,6 +721,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.userBlock { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -660,6 +736,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.userUnblock { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -673,6 +751,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.pollVoteNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -686,6 +766,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.groupOfficersEdit { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -699,6 +781,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.groupChangeSettings { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -712,6 +796,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.groupChangePhoto { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -725,6 +811,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.vkpayTransaction { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -738,6 +826,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.leadFormsNew { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -751,6 +841,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.appPayload { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -764,6 +856,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.messageRead { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -777,6 +871,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.likeAdd { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -790,6 +886,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.likeRemove { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -803,6 +901,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.donutSubscriptionCreate { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -816,6 +916,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.donutSubscriptionProlonged { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -829,6 +931,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.donutSubscriptionExpired { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -842,6 +946,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.donutSubscriptionCancelled { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -855,6 +961,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.donutSubscriptionPriceChanged { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -868,6 +976,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.donutMoneyWithdraw { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
| @@ -881,6 +991,8 @@ func (fl FuncList) Handler(ctx context.Context, e GroupEvent) error { // nolint: | ||||
| 		} | ||||
|  | ||||
| 		for _, f := range fl.donutMoneyWithdrawError { | ||||
| 			f := f | ||||
|  | ||||
| 			if fl.goroutine { | ||||
| 				go func() { f(ctx, obj) }() | ||||
| 			} else { | ||||
|   | ||||
							
								
								
									
										12
									
								
								vendor/github.com/SevereCloud/vksdk/v2/object/stats.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/SevereCloud/vksdk/v2/object/stats.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -66,12 +66,24 @@ type StatsViews struct { | ||||
|  | ||||
| // StatsWallpostStat struct. | ||||
| type StatsWallpostStat struct { | ||||
| 	PostID           int `json:"post_id"` | ||||
| 	Hide             int `json:"hide"`              // Hidings number | ||||
| 	JoinGroup        int `json:"join_group"`        // People have joined the group | ||||
| 	Links            int `json:"links"`             // Link click-through | ||||
| 	ReachSubscribers int `json:"reach_subscribers"` // Subscribers reach | ||||
| 	ReachTotal       int `json:"reach_total"`       // Total reach | ||||
| 	ReachViral       int `json:"reach_viral"`       // Viral reach | ||||
| 	ReachAds         int `json:"reach_ads"`         // Advertising reach | ||||
| 	Report           int `json:"report"`            // Reports number | ||||
| 	ToGroup          int `json:"to_group"`          // Click-through to community | ||||
| 	Unsubscribe      int `json:"unsubscribe"`       // Unsubscribed members | ||||
| 	AdViews          int `json:"ad_views"` | ||||
| 	AdSubscribers    int `json:"ad_subscribers"` | ||||
| 	AdHide           int `json:"ad_hide"` | ||||
| 	AdUnsubscribe    int `json:"ad_unsubscribe"` | ||||
| 	AdLinks          int `json:"ad_links"` | ||||
| 	AdToGroup        int `json:"ad_to_group"` | ||||
| 	AdJoinGroup      int `json:"ad_join_group"` | ||||
| 	AdCoverage       int `json:"ad_coverage"` | ||||
| 	AdReport         int `json:"ad_report"` | ||||
| } | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/github.com/SevereCloud/vksdk/v2/object/stories.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/SevereCloud/vksdk/v2/object/stories.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -239,7 +239,7 @@ func (cs StoriesClickableStickers) ToJSON() string { | ||||
| } | ||||
|  | ||||
| // StoriesClickableSticker struct. | ||||
| type StoriesClickableSticker struct { // nolint: maligned | ||||
| type StoriesClickableSticker struct { //nolint: maligned | ||||
| 	ID            int                     `json:"id"` | ||||
| 	Type          string                  `json:"type"` | ||||
| 	ClickableArea []StoriesClickablePoint `json:"clickable_area"` | ||||
|   | ||||
							
								
								
									
										8
									
								
								vendor/github.com/SevereCloud/vksdk/v2/object/users.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/SevereCloud/vksdk/v2/object/users.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -125,6 +125,7 @@ type UsersUser struct { | ||||
| 	MobilePhone     string                `json:"mobile_phone"` | ||||
| 	HomePhone       string                `json:"home_phone"` | ||||
| 	FoundWith       int                   `json:"found_with"` // TODO: check it | ||||
| 	ImageStatus     ImageStatusInfo       `json:"image_status"` | ||||
| 	OnlineInfo      UsersOnlineInfo       `json:"online_info"` | ||||
| 	Mutual          FriendsRequestsMutual `json:"mutual"` | ||||
| 	TrackCode       string                `json:"track_code"` | ||||
| @@ -138,6 +139,13 @@ func (user UsersUser) ToMention() string { | ||||
| 	return fmt.Sprintf("[id%d|%s %s]", user.ID, user.FirstName, user.LastName) | ||||
| } | ||||
|  | ||||
| // ImageStatusInfo struct. | ||||
| type ImageStatusInfo struct { | ||||
| 	ID     int         `json:"id"` | ||||
| 	Name   string      `json:"name"` | ||||
| 	Images []BaseImage `json:"images"` | ||||
| } | ||||
|  | ||||
| // UsersOnlineInfo struct. | ||||
| type UsersOnlineInfo struct { | ||||
| 	AppID    int         `json:"app_id"` | ||||
|   | ||||
							
								
								
									
										1
									
								
								vendor/github.com/SevereCloud/vksdk/v2/object/wall.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/github.com/SevereCloud/vksdk/v2/object/wall.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -161,6 +161,7 @@ type WallWallpost struct { | ||||
| 	Edited         int                      `json:"edited"` // Date of editing in Unixtime | ||||
| 	Copyright      WallPostCopyright        `json:"copyright"` | ||||
| 	PostID         int                      `json:"post_id"` | ||||
| 	PostponedID    int                      `json:"postponed_id"` // ID from scheduled posts | ||||
| 	ParentsStack   []int                    `json:"parents_stack"` | ||||
| 	Donut          WallWallpostDonut        `json:"donut"` | ||||
| 	ShortTextRate  float64                  `json:"short_text_rate"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Wim
					Wim