MyChat Scripts Engine: mGetUserWebSupportGroupID
Get an ID of a WEB support group for a specified user.
Syntax
function mGetUserWebSupportGroupID(iUIN: integer): integer;
Parameters and return values
| Parameter | Type | Value | 
| iUIN | integer | unique user identifier. | 
Function result
Numeric ID of a WEB support group with a specified user. If a user is not a WEB support operator, the function returns -1.
Example
const
  USER = 6;
var
  iID: integer;
begin
  iID := mGetUserWebSupportGroupID(USER);
  mLogScript(IntToStr(iID), '');
end.
Script work result
[19:37:46] (Log "mGetUserWebSupportGroupID"): 2
[19:37:46] (Run "mGetUserWebSupportGroupID"): Script operation time: 6 ms
[19:37:46] (Run "mGetUserWebSupportGroupID"): Script done successfully.