Class BotCommandScopeDefault
java.lang.Object
org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScopeDefault
- All Implemented Interfaces:
Serializable,BotApiObject,Validable,BotCommandScope
- Version:
- 5.3 Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.
- Author:
- Ruben Bermudez
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates that mandatory fields are filled and optional objectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.telegram.telegrambots.meta.api.objects.commands.scope.BotCommandScope
getType
-
Constructor Details
-
BotCommandScopeDefault
public BotCommandScopeDefault()
-
-
Method Details
-
validate
Description copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-