Class SetMyCommands
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SetMyCommands, Boolean>
io.github.natanimn.telebof.requests.set.SetMyCommands
SetMyCommands class. Returns True on success.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlanguageCode
(String language_code) Optionalscope
(BotCommandScope bot_command_scope) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SetMyCommands
Required- Parameters:
commands
- commandsapi
- api
-
-
Method Details
-
scope
Optional- Parameters:
bot_command_scope
- A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults toBotCommandScopeDefault
- Returns:
SetMyCommands
-
languageCode
Optional- Parameters:
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- Returns:
SetMyCommands
-