Class TdApi.GetCommands
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.BotCommands>
dev.voroby.springframework.telegram.client.TdApi.GetCommands
- Enclosing class:
- TdApi
Returns the list of commands supported by the bot for the given user scope and language; for bots only.
Returns BotCommands
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.A two-letter ISO 639-1 language code or an empty string.The scope to which the commands are relevant; pass null to get commands in the default bot command scope. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which returns the list of commands supported by the bot for the given user scope and language; for bots only.GetCommands
(TdApi.BotCommandScope scope, String languageCode) Creates a function, which returns the list of commands supported by the bot for the given user scope and language; for bots only. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
scope
The scope to which the commands are relevant; pass null to get commands in the default bot command scope. -
languageCode
A two-letter ISO 639-1 language code or an empty string. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetCommands
public GetCommands()Default constructor for a function, which returns the list of commands supported by the bot for the given user scope and language; for bots only.Returns
BotCommands
-
GetCommands
Creates a function, which returns the list of commands supported by the bot for the given user scope and language; for bots only.Returns
BotCommands
- Parameters:
scope
- The scope to which the commands are relevant; pass null to get commands in the default bot command scope.languageCode
- A two-letter ISO 639-1 language code or an empty string.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-