Package org.drinkless.tdlib
Class TdApi.BotCommand
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.BotCommand
- Enclosing class:
- TdApi
Represents a command supported by a bot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionText of the bot command.static final intIdentifier uniquely determining type of the object.Description of the bot command.booleanTrue, if the command must send an ephemeral message instead of a regular one. -
Constructor Summary
ConstructorsConstructorDescriptionRepresents a command supported by a bot.BotCommand(String command, String description, boolean isEphemeral) Represents a command supported by a bot. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
command
Text of the bot command. -
description
Description of the bot command. -
isEphemeral
public boolean isEphemeralTrue, if the command must send an ephemeral message instead of a regular one. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
BotCommand
public BotCommand()Represents a command supported by a bot. -
BotCommand
Represents a command supported by a bot.- Parameters:
command- Text of the bot command.description- Description of the bot command.isEphemeral- True, if the command must send an ephemeral message instead of a regular one.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-