inviteUserToGroups
Mời người dùng vào nhóm
api.inviteUserToGroups(userId, groupId)
Parameters
userId
string
groupId
string
|string[]
Return
Promise<InviteUserToGroupsResponse>
Types
export type InviteUserToGroupsResponse = {
grid_message_map: {
[groupId: string]: {
error_code: number;
error_message: string;
data: string | null;
};
};
};
Examples
const userId = "0000000000000000001";
const groupId = "0000000000000000002";
api.inviteUserToGroups(userId, groupId)
.then(console.log)
.catch(console.error);
Last updated