setChatAdministratorCustomTitle

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.

Api reference

Parameters

chatId

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

userId

Unique identifier of the target user

customTitle

New custom title for the administrator; 0-16 characters, emoji are not allowed