Invites a user to a group.

The user must be current user's friend. If the group is private, the current user must be at least a moderator.

This method requires the following permissions: groups.

Parameters

group_id
integer (positive)

Group identifier.

user_id
integer (positive)

User identifier.

Result

Returns true on success.

Errors

180
Can't invite this user to this group
Global errors may also occur when calling this method.