delete_my_commands¶
-
template<class Agent>
api_result<boolean_t, Agent&&> delete_my_commands(Agent &&agent, delete_my_commands_args_t args)¶
-
template<class Agent, class F>
void delete_my_commands(Agent &&agent, delete_my_commands_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<boolean_t>
.Use this method to delete the list of the bot’s commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success.
-
struct delete_my_commands_args_t¶
Arguments that should be passed to
delete_my_commands()
.-
optional_t<bot_command_scope_t> scope¶
A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
-
optional_t<string_t> language_code¶
A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
-
optional_t<bot_command_scope_t> scope¶