setChatMemberTag

Change the tag of a chat member.

Parameters

chatId: ID

The identifier of a chat.

userId: ID

The identifier of the user that is a member of the chat.

tag?: string

The member’s new tag. If not set, the member tag will be removed.

Result

void

Syntax

// Required parameters only.
await client.setChatMemberTag(chatId, userId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.setChatMemberTag(chatId, userId, { tag });