set_my_name¶
-
template<class Agent>
api_result<boolean_t, Agent&&> set_my_name(Agent &&agent, set_my_name_args_t args)¶
-
template<class Agent, class F>
void set_my_name(Agent &&agent, set_my_name_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<boolean_t>
.Use this method to change the bot’s name. Returns True on success.
-
struct set_my_name_args_t¶
Arguments that should be passed to
set_my_name()
.-
optional_t<string_t> name¶
New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.
-
optional_t<string_t> language_code¶
A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.
-
optional_t<string_t> name¶