set_my_description¶
-
template<class Agent>
api_result<boolean_t, Agent&&> set_my_description(Agent &&agent, set_my_description_args_t args)¶
-
template<class Agent, class F>
void set_my_description(Agent &&agent, set_my_description_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 description, which is shown in the chat with the bot if the chat is empty. Returns True on success.
-
struct set_my_description_args_t¶
Arguments that should be passed to
set_my_description()
.-
optional_t<string_t> description¶
New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language.
-
optional_t<string_t> language_code¶
A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description.
-
optional_t<string_t> description¶