set_chat_administrator_custom_title

template<class Agent>
api_result<boolean_t, Agent&&> set_chat_administrator_custom_title(Agent &&agent, set_chat_administrator_custom_title_args_t args)
template<class Agent, class F>
void set_chat_administrator_custom_title(Agent &&agent, set_chat_administrator_custom_title_args_t args, F &&callback)

agent is any object satisfying agent concept.

callback is any callable object accepting expected<boolean_t>.

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

struct set_chat_administrator_custom_title_args_t

Arguments that should be passed to set_chat_administrator_custom_title().

variant_t<integer_t, string_t> chat_id

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

integer_t user_id

Unique identifier of the target user

string_t custom_title

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