Class TdApi.BotCommand

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.BotCommand
Enclosing class:
TdApi

public static class TdApi.BotCommand extends TdApi.Object
Represents a command supported by a bot.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Text of the bot command.
    static final int
    Identifier uniquely determining type of the object.
    Description of the bot command.
    boolean
    True, if the command must send an ephemeral message instead of a regular one.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Represents a command supported by a bot.
    BotCommand(String command, String description, boolean isEphemeral)
    Represents a command supported by a bot.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • command

      public String command
      Text of the bot command.
    • description

      public String description
      Description of the bot command.
    • isEphemeral

      public boolean isEphemeral
      True, if the command must send an ephemeral message instead of a regular one.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • BotCommand

      public BotCommand()
      Represents a command supported by a bot.
    • BotCommand

      public BotCommand(String command, String description, boolean isEphemeral)
      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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR