Documentation

ConfirmRequestToBeFriend

bool
CSocNetUserRelations::ConfirmRequestToBeFriend(
 int userID,
 int relationID,
 bool bAutoSubscribe = true
);

The method is used to accept a friends request. Non-static method.

Parameters

Parameter Description Available from version
userID User ID, who received and accepted a friends request.
relationID ID of binding between users.
bAutoSubscribe Autosubscription flag for user events. Optional parameter. True by default.

Returned value

Returns true on success and false otherwise.



© «Bitrix24», 2001-2024
Up