Skip to main content

$getChatMember

This function retrieves information about a user's membership in a chat.

Parameters

ParameterDescription
userIdAn optional user ID for which membership information will be retrieved. Defaults to the ID of the message sender.
pathAn optional path to a specific property within the chat member object.

Example

<AoiClient>.addCommand({
name: "getUserMembership",
code: `
$getChatMember[123456789;status] // Replace 123456789 with the actual user ID
`,
});