get_my_name

template<class Agent>
api_result<bot_name_t, Agent&&> get_my_name(Agent &&agent, get_my_name_args_t args)
template<class Agent, class F>
void get_my_name(Agent &&agent, get_my_name_args_t args, F &&callback)

agent is any object satisfying agent concept.

callback is any callable object accepting expected<bot_name_t>.

Use this method to get the current bot name for the given user language. Returns BotName on success.

struct get_my_name_args_t

Arguments that should be passed to get_my_name().

optional_t<string_t> language_code

A two-letter ISO 639-1 language code or an empty string