set_chat_member_tag()

Client.set_chat_member_tag()

Sets a custom tag for a member in a supergroup managed by a bot with the appropriate rights.

Parameters:
  • chat_id (int | str) – Target supergroup.

  • user_id (int | str) – Target user.

  • tag (str) – New custom tag; 0-16 characters. Pass empty string to remove.

Returns:

bool – True on success.