Class GetMyCommands
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<GetMyCommands, List<BotCommand>>
io.github.natanimn.telebof.requests.get.GetMyCommands
GetMyCommands class. Returns an Array of
BotCommand
objects. If commands aren't set, an empty list is returned.- 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
-
GetMyCommands
-
-
Method Details
-
scope
Optional- Parameters:
bot_command_scope
- A JSON-serialized object, describing scope of users. Defaults toBotCommandScopeDefault
.- Returns:
GetMyCommands
-
languageCode
Optional- Parameters:
language_code
- A two-letter ISO 639-1 language code or an empty string- Returns:
GetMyCommands
-