forked from lug/matterbridge
Update dependencies (#2180)
* Update dependencies * Fix whatsmeow API changes
This commit is contained in:
122
vendor/github.com/SevereCloud/vksdk/v2/api/groups.go
generated
vendored
122
vendor/github.com/SevereCloud/vksdk/v2/api/groups.go
generated
vendored
@@ -9,7 +9,7 @@ type GroupsAddAddressResponse object.GroupsAddress
|
||||
|
||||
// GroupsAddAddress groups.addAddress.
|
||||
//
|
||||
// https://vk.com/dev/groups.addAddress
|
||||
// https://dev.vk.com/method/groups.addAddress
|
||||
func (vk *VK) GroupsAddAddress(params Params) (response GroupsAddAddressResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.addAddress", &response, params)
|
||||
return
|
||||
@@ -22,7 +22,7 @@ type GroupsAddCallbackServerResponse struct {
|
||||
|
||||
// GroupsAddCallbackServer callback API server to the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.addCallbackServer
|
||||
// https://dev.vk.com/method/groups.addCallbackServer
|
||||
func (vk *VK) GroupsAddCallbackServer(params Params) (response GroupsAddCallbackServerResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.addCallbackServer", &response, params)
|
||||
return
|
||||
@@ -33,7 +33,7 @@ type GroupsAddLinkResponse object.GroupsGroupLink
|
||||
|
||||
// GroupsAddLink allows to add a link to the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.addLink
|
||||
// https://dev.vk.com/method/groups.addLink
|
||||
func (vk *VK) GroupsAddLink(params Params) (response GroupsAddLinkResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.addLink", &response, params)
|
||||
return
|
||||
@@ -41,7 +41,7 @@ func (vk *VK) GroupsAddLink(params Params) (response GroupsAddLinkResponse, err
|
||||
|
||||
// GroupsApproveRequest allows to approve join request to the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.approveRequest
|
||||
// https://dev.vk.com/method/groups.approveRequest
|
||||
func (vk *VK) GroupsApproveRequest(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.approveRequest", &response, params)
|
||||
return
|
||||
@@ -49,7 +49,7 @@ func (vk *VK) GroupsApproveRequest(params Params) (response int, err error) {
|
||||
|
||||
// GroupsBan adds a user or a group to the community blacklist.
|
||||
//
|
||||
// https://vk.com/dev/groups.ban
|
||||
// https://dev.vk.com/method/groups.ban
|
||||
func (vk *VK) GroupsBan(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.ban", &response, params)
|
||||
return
|
||||
@@ -60,7 +60,7 @@ type GroupsCreateResponse object.GroupsGroup
|
||||
|
||||
// GroupsCreate creates a new community.
|
||||
//
|
||||
// https://vk.com/dev/groups.create
|
||||
// https://dev.vk.com/method/groups.create
|
||||
func (vk *VK) GroupsCreate(params Params) (response GroupsCreateResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.create", &response, params)
|
||||
return
|
||||
@@ -68,7 +68,7 @@ func (vk *VK) GroupsCreate(params Params) (response GroupsCreateResponse, err er
|
||||
|
||||
// GroupsDeleteAddress groups.deleteAddress.
|
||||
//
|
||||
// https://vk.com/dev/groups.deleteAddress
|
||||
// https://dev.vk.com/method/groups.deleteAddress
|
||||
func (vk *VK) GroupsDeleteAddress(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.deleteAddress", &response, params)
|
||||
return
|
||||
@@ -76,7 +76,7 @@ func (vk *VK) GroupsDeleteAddress(params Params) (response int, err error) {
|
||||
|
||||
// GroupsDeleteCallbackServer callback API server from the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.deleteCallbackServer
|
||||
// https://dev.vk.com/method/groups.deleteCallbackServer
|
||||
func (vk *VK) GroupsDeleteCallbackServer(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.deleteCallbackServer", &response, params)
|
||||
return
|
||||
@@ -84,7 +84,7 @@ func (vk *VK) GroupsDeleteCallbackServer(params Params) (response int, err error
|
||||
|
||||
// GroupsDeleteLink allows to delete a link from the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.deleteLink
|
||||
// https://dev.vk.com/method/groups.deleteLink
|
||||
func (vk *VK) GroupsDeleteLink(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.deleteLink", &response, params)
|
||||
return
|
||||
@@ -92,7 +92,7 @@ func (vk *VK) GroupsDeleteLink(params Params) (response int, err error) {
|
||||
|
||||
// GroupsDisableOnline disables "online" status in the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.disableOnline
|
||||
// https://dev.vk.com/method/groups.disableOnline
|
||||
func (vk *VK) GroupsDisableOnline(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.disableOnline", &response, params)
|
||||
return
|
||||
@@ -100,7 +100,7 @@ func (vk *VK) GroupsDisableOnline(params Params) (response int, err error) {
|
||||
|
||||
// GroupsEdit edits a community.
|
||||
//
|
||||
// https://vk.com/dev/groups.edit
|
||||
// https://dev.vk.com/method/groups.edit
|
||||
func (vk *VK) GroupsEdit(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.edit", &response, params)
|
||||
return
|
||||
@@ -111,7 +111,7 @@ type GroupsEditAddressResponse object.GroupsAddress
|
||||
|
||||
// GroupsEditAddress groups.editAddress.
|
||||
//
|
||||
// https://vk.com/dev/groups.editAddress
|
||||
// https://dev.vk.com/method/groups.editAddress
|
||||
func (vk *VK) GroupsEditAddress(params Params) (response GroupsEditAddressResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.editAddress", &response, params)
|
||||
return
|
||||
@@ -119,7 +119,7 @@ func (vk *VK) GroupsEditAddress(params Params) (response GroupsEditAddressRespon
|
||||
|
||||
// GroupsEditCallbackServer edits Callback API server in the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.editCallbackServer
|
||||
// https://dev.vk.com/method/groups.editCallbackServer
|
||||
func (vk *VK) GroupsEditCallbackServer(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.editCallbackServer", &response, params)
|
||||
return
|
||||
@@ -127,7 +127,7 @@ func (vk *VK) GroupsEditCallbackServer(params Params) (response int, err error)
|
||||
|
||||
// GroupsEditLink allows to edit a link in the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.editLink
|
||||
// https://dev.vk.com/method/groups.editLink
|
||||
func (vk *VK) GroupsEditLink(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.editLink", &response, params)
|
||||
return
|
||||
@@ -135,7 +135,7 @@ func (vk *VK) GroupsEditLink(params Params) (response int, err error) {
|
||||
|
||||
// GroupsEditManager allows to add, remove or edit the community manager .
|
||||
//
|
||||
// https://vk.com/dev/groups.editManager
|
||||
// https://dev.vk.com/method/groups.editManager
|
||||
func (vk *VK) GroupsEditManager(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.editManager", &response, params)
|
||||
return
|
||||
@@ -143,7 +143,7 @@ func (vk *VK) GroupsEditManager(params Params) (response int, err error) {
|
||||
|
||||
// GroupsEnableOnline enables "online" status in the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.enableOnline
|
||||
// https://dev.vk.com/method/groups.enableOnline
|
||||
func (vk *VK) GroupsEnableOnline(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.enableOnline", &response, params)
|
||||
return
|
||||
@@ -159,7 +159,7 @@ type GroupsGetResponse struct {
|
||||
//
|
||||
// extended=0
|
||||
//
|
||||
// https://vk.com/dev/groups.get
|
||||
// https://dev.vk.com/method/groups.get
|
||||
func (vk *VK) GroupsGet(params Params) (response GroupsGetResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.get", &response, params, Params{"extended": false})
|
||||
|
||||
@@ -176,7 +176,7 @@ type GroupsGetExtendedResponse struct {
|
||||
//
|
||||
// extended=1
|
||||
//
|
||||
// https://vk.com/dev/groups.get
|
||||
// https://dev.vk.com/method/groups.get
|
||||
func (vk *VK) GroupsGetExtended(params Params) (response GroupsGetExtendedResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.get", &response, params, Params{"extended": true})
|
||||
|
||||
@@ -191,7 +191,7 @@ type GroupsGetAddressesResponse struct {
|
||||
|
||||
// GroupsGetAddresses groups.getAddresses.
|
||||
//
|
||||
// https://vk.com/dev/groups.getAddresses
|
||||
// https://dev.vk.com/method/groups.getAddresses
|
||||
func (vk *VK) GroupsGetAddresses(params Params) (response GroupsGetAddressesResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getAddresses", &response, params)
|
||||
return
|
||||
@@ -205,7 +205,7 @@ type GroupsGetBannedResponse struct {
|
||||
|
||||
// GroupsGetBanned returns a list of users on a community blacklist.
|
||||
//
|
||||
// https://vk.com/dev/groups.getBanned
|
||||
// https://dev.vk.com/method/groups.getBanned
|
||||
func (vk *VK) GroupsGetBanned(params Params) (response GroupsGetBannedResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getBanned", &response, params)
|
||||
return
|
||||
@@ -216,7 +216,7 @@ type GroupsGetByIDResponse []object.GroupsGroup
|
||||
|
||||
// GroupsGetByID returns information about communities by their IDs.
|
||||
//
|
||||
// https://vk.com/dev/groups.getById
|
||||
// https://dev.vk.com/method/groups.getById
|
||||
func (vk *VK) GroupsGetByID(params Params) (response GroupsGetByIDResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getById", &response, params)
|
||||
return
|
||||
@@ -229,7 +229,7 @@ type GroupsGetCallbackConfirmationCodeResponse struct {
|
||||
|
||||
// GroupsGetCallbackConfirmationCode returns Callback API confirmation code for the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.getCallbackConfirmationCode
|
||||
// https://dev.vk.com/method/groups.getCallbackConfirmationCode
|
||||
func (vk *VK) GroupsGetCallbackConfirmationCode(params Params) (
|
||||
response GroupsGetCallbackConfirmationCodeResponse,
|
||||
err error,
|
||||
@@ -246,7 +246,7 @@ type GroupsGetCallbackServersResponse struct {
|
||||
|
||||
// GroupsGetCallbackServers receives a list of Callback API servers from the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.getCallbackServers
|
||||
// https://dev.vk.com/method/groups.getCallbackServers
|
||||
func (vk *VK) GroupsGetCallbackServers(params Params) (response GroupsGetCallbackServersResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getCallbackServers", &response, params)
|
||||
return
|
||||
@@ -259,7 +259,7 @@ type GroupsGetCallbackSettingsResponse object.GroupsCallbackSettings
|
||||
//
|
||||
// BUG(VK): MessageEdit always 0 https://vk.com/bugtracker?act=show&id=86762
|
||||
//
|
||||
// https://vk.com/dev/groups.getCallbackSettings
|
||||
// https://dev.vk.com/method/groups.getCallbackSettings
|
||||
func (vk *VK) GroupsGetCallbackSettings(params Params) (response GroupsGetCallbackSettingsResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getCallbackSettings", &response, params)
|
||||
return
|
||||
@@ -275,7 +275,7 @@ type GroupsGetCatalogResponse struct {
|
||||
//
|
||||
// Deprecated: This method is deprecated and may be disabled soon, please avoid
|
||||
//
|
||||
// https://vk.com/dev/groups.getCatalog
|
||||
// https://dev.vk.com/method/groups.getCatalog
|
||||
func (vk *VK) GroupsGetCatalog(params Params) (response GroupsGetCatalogResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getCatalog", &response, params)
|
||||
return
|
||||
@@ -291,7 +291,7 @@ type GroupsGetCatalogInfoResponse struct {
|
||||
//
|
||||
// extended=0
|
||||
//
|
||||
// https://vk.com/dev/groups.getCatalogInfo
|
||||
// https://dev.vk.com/method/groups.getCatalogInfo
|
||||
func (vk *VK) GroupsGetCatalogInfo(params Params) (response GroupsGetCatalogInfoResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getCatalogInfo", &response, params, Params{"extended": false})
|
||||
|
||||
@@ -308,7 +308,7 @@ type GroupsGetCatalogInfoExtendedResponse struct {
|
||||
//
|
||||
// extended=1
|
||||
//
|
||||
// https://vk.com/dev/groups.getCatalogInfo
|
||||
// https://dev.vk.com/method/groups.getCatalogInfo
|
||||
func (vk *VK) GroupsGetCatalogInfoExtended(params Params) (response GroupsGetCatalogInfoExtendedResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getCatalogInfo", &response, params, Params{"extended": true})
|
||||
|
||||
@@ -323,7 +323,7 @@ type GroupsGetInvitedUsersResponse struct {
|
||||
|
||||
// GroupsGetInvitedUsers returns invited users list of a community.
|
||||
//
|
||||
// https://vk.com/dev/groups.getInvitedUsers
|
||||
// https://dev.vk.com/method/groups.getInvitedUsers
|
||||
func (vk *VK) GroupsGetInvitedUsers(params Params) (response GroupsGetInvitedUsersResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getInvitedUsers", &response, params)
|
||||
return
|
||||
@@ -337,7 +337,7 @@ type GroupsGetInvitesResponse struct {
|
||||
|
||||
// GroupsGetInvites returns a list of invitations to join communities and events.
|
||||
//
|
||||
// https://vk.com/dev/groups.getInvites
|
||||
// https://dev.vk.com/method/groups.getInvites
|
||||
func (vk *VK) GroupsGetInvites(params Params) (response GroupsGetInvitesResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getInvites", &response, params)
|
||||
return
|
||||
@@ -352,7 +352,7 @@ type GroupsGetInvitesExtendedResponse struct {
|
||||
|
||||
// GroupsGetInvitesExtended returns a list of invitations to join communities and events.
|
||||
//
|
||||
// https://vk.com/dev/groups.getInvites
|
||||
// https://dev.vk.com/method/groups.getInvites
|
||||
func (vk *VK) GroupsGetInvitesExtended(params Params) (response GroupsGetInvitesExtendedResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getInvites", &response, params)
|
||||
return
|
||||
@@ -363,7 +363,7 @@ type GroupsGetLongPollServerResponse object.GroupsLongPollServer
|
||||
|
||||
// GroupsGetLongPollServer returns data for Bots Long Poll API connection.
|
||||
//
|
||||
// https://vk.com/dev/groups.getLongPollServer
|
||||
// https://dev.vk.com/method/groups.getLongPollServer
|
||||
func (vk *VK) GroupsGetLongPollServer(params Params) (response GroupsGetLongPollServerResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getLongPollServer", &response, params)
|
||||
return
|
||||
@@ -374,7 +374,7 @@ type GroupsGetLongPollSettingsResponse object.GroupsLongPollSettings
|
||||
|
||||
// GroupsGetLongPollSettings returns Bots Long Poll API settings.
|
||||
//
|
||||
// https://vk.com/dev/groups.getLongPollSettings
|
||||
// https://dev.vk.com/method/groups.getLongPollSettings
|
||||
func (vk *VK) GroupsGetLongPollSettings(params Params) (response GroupsGetLongPollSettingsResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getLongPollSettings", &response, params)
|
||||
return
|
||||
@@ -388,7 +388,7 @@ type GroupsGetMembersResponse struct {
|
||||
|
||||
// GroupsGetMembers returns a list of community members.
|
||||
//
|
||||
// https://vk.com/dev/groups.getMembers
|
||||
// https://dev.vk.com/method/groups.getMembers
|
||||
func (vk *VK) GroupsGetMembers(params Params) (response GroupsGetMembersResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getMembers", &response, params, Params{"filter": ""})
|
||||
|
||||
@@ -403,7 +403,7 @@ type GroupsGetMembersFieldsResponse struct {
|
||||
|
||||
// GroupsGetMembersFields returns a list of community members.
|
||||
//
|
||||
// https://vk.com/dev/groups.getMembers
|
||||
// https://dev.vk.com/method/groups.getMembers
|
||||
func (vk *VK) GroupsGetMembersFields(params Params) (response GroupsGetMembersFieldsResponse, err error) {
|
||||
reqParams := make(Params)
|
||||
if v, prs := params["fields"]; v == "" || !prs {
|
||||
@@ -425,7 +425,7 @@ type GroupsGetMembersFilterManagersResponse struct {
|
||||
//
|
||||
// filter=managers
|
||||
//
|
||||
// https://vk.com/dev/groups.getMembers
|
||||
// https://dev.vk.com/method/groups.getMembers
|
||||
func (vk *VK) GroupsGetMembersFilterManagers(params Params) (
|
||||
response GroupsGetMembersFilterManagersResponse,
|
||||
err error,
|
||||
@@ -440,7 +440,7 @@ type GroupsGetOnlineStatusResponse object.GroupsOnlineStatus
|
||||
|
||||
// GroupsGetOnlineStatus returns a community's online status.
|
||||
//
|
||||
// https://vk.com/dev/groups.getOnlineStatus
|
||||
// https://dev.vk.com/method/groups.getOnlineStatus
|
||||
func (vk *VK) GroupsGetOnlineStatus(params Params) (response GroupsGetOnlineStatusResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getOnlineStatus", &response, params)
|
||||
return
|
||||
@@ -454,7 +454,7 @@ type GroupsGetRequestsResponse struct {
|
||||
|
||||
// GroupsGetRequests returns a list of requests to the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.getRequests
|
||||
// https://dev.vk.com/method/groups.getRequests
|
||||
func (vk *VK) GroupsGetRequests(params Params) (response GroupsGetRequestsResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getRequests", &response, params, Params{"fields": ""})
|
||||
|
||||
@@ -469,7 +469,7 @@ type GroupsGetRequestsFieldsResponse struct {
|
||||
|
||||
// GroupsGetRequestsFields returns a list of requests to the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.getRequests
|
||||
// https://dev.vk.com/method/groups.getRequests
|
||||
func (vk *VK) GroupsGetRequestsFields(params Params) (response GroupsGetRequestsFieldsResponse, err error) {
|
||||
reqParams := make(Params)
|
||||
if v, prs := params["fields"]; v == "" || !prs {
|
||||
@@ -486,7 +486,7 @@ type GroupsGetSettingsResponse object.GroupsGroupSettings
|
||||
|
||||
// GroupsGetSettings returns community settings.
|
||||
//
|
||||
// https://vk.com/dev/groups.getSettings
|
||||
// https://dev.vk.com/method/groups.getSettings
|
||||
func (vk *VK) GroupsGetSettings(params Params) (response GroupsGetSettingsResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getSettings", &response, params)
|
||||
return
|
||||
@@ -497,7 +497,7 @@ type GroupsGetTagListResponse []object.GroupsTag
|
||||
|
||||
// GroupsGetTagList returns community tags list.
|
||||
//
|
||||
// https://vk.com/dev/groups.getTagList
|
||||
// https://dev.vk.com/method/groups.getTagList
|
||||
func (vk *VK) GroupsGetTagList(params Params) (response GroupsGetTagListResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getTagList", &response, params)
|
||||
return
|
||||
@@ -508,7 +508,7 @@ type GroupsGetTokenPermissionsResponse object.GroupsTokenPermissions
|
||||
|
||||
// GroupsGetTokenPermissions returns permissions scope for the community's access_token.
|
||||
//
|
||||
// https://vk.com/dev/groups.getTokenPermissions
|
||||
// https://dev.vk.com/method/groups.getTokenPermissions
|
||||
func (vk *VK) GroupsGetTokenPermissions(params Params) (response GroupsGetTokenPermissionsResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.getTokenPermissions", &response, params)
|
||||
return
|
||||
@@ -516,7 +516,7 @@ func (vk *VK) GroupsGetTokenPermissions(params Params) (response GroupsGetTokenP
|
||||
|
||||
// GroupsInvite allows to invite friends to the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.invite
|
||||
// https://dev.vk.com/method/groups.invite
|
||||
func (vk *VK) GroupsInvite(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.invite", &response, params)
|
||||
return
|
||||
@@ -526,7 +526,7 @@ func (vk *VK) GroupsInvite(params Params) (response int, err error) {
|
||||
//
|
||||
// extended=0
|
||||
//
|
||||
// https://vk.com/dev/groups.isMember
|
||||
// https://dev.vk.com/method/groups.isMember
|
||||
func (vk *VK) GroupsIsMember(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.isMember", &response, params, Params{"extended": false})
|
||||
|
||||
@@ -546,7 +546,7 @@ type GroupsIsMemberExtendedResponse struct {
|
||||
//
|
||||
// extended=1
|
||||
//
|
||||
// https://vk.com/dev/groups.isMember
|
||||
// https://dev.vk.com/method/groups.isMember
|
||||
func (vk *VK) GroupsIsMemberExtended(params Params) (response GroupsIsMemberExtendedResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.isMember", &response, params, Params{"extended": true})
|
||||
|
||||
@@ -561,7 +561,7 @@ type GroupsIsMemberUserIDsExtendedResponse []object.GroupsMemberStatusFull
|
||||
// extended=1
|
||||
// need user_ids
|
||||
//
|
||||
// https://vk.com/dev/groups.isMember
|
||||
// https://dev.vk.com/method/groups.isMember
|
||||
func (vk *VK) GroupsIsMemberUserIDsExtended(params Params) (response GroupsIsMemberUserIDsExtendedResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.isMember", &response, params, Params{"extended": true})
|
||||
|
||||
@@ -576,7 +576,7 @@ type GroupsIsMemberUserIDsResponse []object.GroupsMemberStatus
|
||||
// extended=0
|
||||
// need user_ids
|
||||
//
|
||||
// https://vk.com/dev/groups.isMember
|
||||
// https://dev.vk.com/method/groups.isMember
|
||||
func (vk *VK) GroupsIsMemberUserIDs(params Params) (response GroupsIsMemberUserIDsResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.isMember", &response, params, Params{"extended": false})
|
||||
|
||||
@@ -585,7 +585,7 @@ func (vk *VK) GroupsIsMemberUserIDs(params Params) (response GroupsIsMemberUserI
|
||||
|
||||
// GroupsJoin with this method you can join the group or public page, and also confirm your participation in an event.
|
||||
//
|
||||
// https://vk.com/dev/groups.join
|
||||
// https://dev.vk.com/method/groups.join
|
||||
func (vk *VK) GroupsJoin(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.join", &response, params)
|
||||
return
|
||||
@@ -593,7 +593,7 @@ func (vk *VK) GroupsJoin(params Params) (response int, err error) {
|
||||
|
||||
// GroupsLeave with this method you can leave a group, public page, or event.
|
||||
//
|
||||
// https://vk.com/dev/groups.leave
|
||||
// https://dev.vk.com/method/groups.leave
|
||||
func (vk *VK) GroupsLeave(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.leave", &response, params)
|
||||
return
|
||||
@@ -601,7 +601,7 @@ func (vk *VK) GroupsLeave(params Params) (response int, err error) {
|
||||
|
||||
// GroupsRemoveUser removes a user from the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.removeUser
|
||||
// https://dev.vk.com/method/groups.removeUser
|
||||
func (vk *VK) GroupsRemoveUser(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.removeUser", &response, params)
|
||||
return
|
||||
@@ -609,7 +609,7 @@ func (vk *VK) GroupsRemoveUser(params Params) (response int, err error) {
|
||||
|
||||
// GroupsReorderLink allows to reorder links in the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.reorderLink
|
||||
// https://dev.vk.com/method/groups.reorderLink
|
||||
func (vk *VK) GroupsReorderLink(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.reorderLink", &response, params)
|
||||
return
|
||||
@@ -623,7 +623,7 @@ type GroupsSearchResponse struct {
|
||||
|
||||
// GroupsSearch returns a list of communities matching the search criteria.
|
||||
//
|
||||
// https://vk.com/dev/groups.search
|
||||
// https://dev.vk.com/method/groups.search
|
||||
func (vk *VK) GroupsSearch(params Params) (response GroupsSearchResponse, err error) {
|
||||
err = vk.RequestUnmarshal("groups.search", &response, params)
|
||||
return
|
||||
@@ -631,7 +631,7 @@ func (vk *VK) GroupsSearch(params Params) (response GroupsSearchResponse, err er
|
||||
|
||||
// GroupsSetCallbackSettings allow to set notifications settings for Callback API.
|
||||
//
|
||||
// https://vk.com/dev/groups.setCallbackSettings
|
||||
// https://dev.vk.com/method/groups.setCallbackSettings
|
||||
func (vk *VK) GroupsSetCallbackSettings(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.setCallbackSettings", &response, params)
|
||||
return
|
||||
@@ -639,7 +639,7 @@ func (vk *VK) GroupsSetCallbackSettings(params Params) (response int, err error)
|
||||
|
||||
// GroupsSetLongPollSettings allows to set Bots Long Poll API settings in the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.setLongPollSettings
|
||||
// https://dev.vk.com/method/groups.setLongPollSettings
|
||||
func (vk *VK) GroupsSetLongPollSettings(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.setLongPollSettings", &response, params)
|
||||
return
|
||||
@@ -647,7 +647,7 @@ func (vk *VK) GroupsSetLongPollSettings(params Params) (response int, err error)
|
||||
|
||||
// GroupsSetSettings sets community settings.
|
||||
//
|
||||
// https://vk.com/dev/groups.setSettings
|
||||
// https://dev.vk.com/method/groups.setSettings
|
||||
func (vk *VK) GroupsSetSettings(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.setSettings", &response, params)
|
||||
return
|
||||
@@ -656,7 +656,7 @@ func (vk *VK) GroupsSetSettings(params Params) (response int, err error) {
|
||||
// GroupsSetUserNote allows to create or edit a note about a user as part
|
||||
// of the user's correspondence with the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.setUserNote
|
||||
// https://dev.vk.com/method/groups.setUserNote
|
||||
func (vk *VK) GroupsSetUserNote(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.setUserNote", &response, params)
|
||||
return
|
||||
@@ -664,7 +664,7 @@ func (vk *VK) GroupsSetUserNote(params Params) (response int, err error) {
|
||||
|
||||
// GroupsTagAdd allows to add a new tag to the community.
|
||||
//
|
||||
// https://vk.com/dev/groups.tagAdd
|
||||
// https://dev.vk.com/method/groups.tagAdd
|
||||
func (vk *VK) GroupsTagAdd(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.tagAdd", &response, params)
|
||||
return
|
||||
@@ -672,7 +672,7 @@ func (vk *VK) GroupsTagAdd(params Params) (response int, err error) {
|
||||
|
||||
// GroupsTagBind allows to "bind" and "unbind" community tags to conversations.
|
||||
//
|
||||
// https://vk.com/dev/groups.tagBind
|
||||
// https://dev.vk.com/method/groups.tagBind
|
||||
func (vk *VK) GroupsTagBind(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.tagBind", &response, params)
|
||||
return
|
||||
@@ -683,7 +683,7 @@ func (vk *VK) GroupsTagBind(params Params) (response int, err error) {
|
||||
// The remote tag will be automatically "unbind" from all conversations to
|
||||
// which it was "bind" earlier.
|
||||
//
|
||||
// https://vk.com/dev/groups.tagDelete
|
||||
// https://dev.vk.com/method/groups.tagDelete
|
||||
func (vk *VK) GroupsTagDelete(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.tagDelete", &response, params)
|
||||
return
|
||||
@@ -691,7 +691,7 @@ func (vk *VK) GroupsTagDelete(params Params) (response int, err error) {
|
||||
|
||||
// GroupsTagUpdate allows to change an existing tag.
|
||||
//
|
||||
// https://vk.com/dev/groups.tagUpdate
|
||||
// https://dev.vk.com/method/groups.tagUpdate
|
||||
func (vk *VK) GroupsTagUpdate(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.tagUpdate", &response, params)
|
||||
return
|
||||
@@ -699,7 +699,7 @@ func (vk *VK) GroupsTagUpdate(params Params) (response int, err error) {
|
||||
|
||||
// GroupsToggleMarket method.
|
||||
//
|
||||
// https://vk.com/dev/groups.toggleMarket
|
||||
// https://dev.vk.com/method/groups.toggleMarket
|
||||
func (vk *VK) GroupsToggleMarket(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.toggleMarket", &response, params)
|
||||
return
|
||||
@@ -707,7 +707,7 @@ func (vk *VK) GroupsToggleMarket(params Params) (response int, err error) {
|
||||
|
||||
// GroupsUnban groups.unban.
|
||||
//
|
||||
// https://vk.com/dev/groups.unban
|
||||
// https://dev.vk.com/method/groups.unban
|
||||
func (vk *VK) GroupsUnban(params Params) (response int, err error) {
|
||||
err = vk.RequestUnmarshal("groups.unban", &response, params)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user