MyCommandParams
Static class for getting and manipulating {@link SetMyCommandsParams}. The main function is
Static Methods
from
ts
from<C extends Context>(commands: CommandGroup<C>[], chat_id: BotCommandScopeChat["chat_id"]);
Merges and serialize one or more Commands instances into a single array of commands params that can be used to set the commands menu displayed to the user.
_serialize
ts
_serialize<C extends Context>(commandsArr: CommandGroup<C>[], chat_id: BotCommandScopeChat["chat_id"]);
Serializes one or multiple {@link CommandGroup} instances, each one into their respective single scoped SetMyCommandsParams version.
_sortByLanguage
ts
_sortByLanguage(params: SetMyCommandsParams[]);
Lexicographically sorts commandParams based on their language code.