public static class TdApi.GetCommands extends TdApi.Function
Returns BotCommands
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
languageCode
A two-letter ISO 639-1 country code or an empty string.
|
TdApi.BotCommandScope |
scope
The scope to which the commands are relevant; pass null to get commands in the default bot command scope.
|
Constructor and Description |
---|
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.
|
GetCommands(TdApi.BotCommandScope scope,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.BotCommandScope scope
public java.lang.String languageCode
public static final int CONSTRUCTOR
public GetCommands()
Returns BotCommands
public GetCommands(TdApi.BotCommandScope scope, java.lang.String languageCode)
Returns BotCommands
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 country code or an empty string.public int getConstructor()
getConstructor
in class TdApi.Function