set_my_commands#
-
template<class Connector>
api_result<boolean_t, Connector&&> set_my_commands(Connector &&connector, set_my_commands_args_t args)#
-
template<class Connector>
api_result<boolean_t, Connector&&> call(Connector &&connector, set_my_commands_args_t args)# connector
is any object satisfying connector concept.Use this method to change the list of the bot’s commands. Returns True on success.
-
struct set_my_commands_args_t#
Arguments that should be passed to
set_my_commands()
.-
array_t<bot_command_t> commands#
A JSON-serialized list of bot commands to be set as the list of the bot’s commands. At most 100 commands can be specified.
-
array_t<bot_command_t> commands#