Class TdApi.BotInfo

  • Enclosing class:
    TdApi

    public static class TdApi.BotInfo
    extends TdApi.Object
    Provides information about a bot and its supported commands.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      TdApi.BotCommand[] commands
      A list of commands supported by the bot.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      java.lang.String description
      Long description shown on the user info page.
    • Constructor Summary

      Constructors 
      Constructor Description
      BotInfo()
      Default constructor.
      BotInfo​(java.lang.String description, TdApi.BotCommand[] commands)
      Constructor for initialization of all fields.
    • Field Detail

      • description

        public java.lang.String description
        Long description shown on the user info page.
      • commands

        public TdApi.BotCommand[] commands
        A list of commands supported by the bot.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BotInfo

        public BotInfo()
        Default constructor.
      • BotInfo

        public BotInfo​(java.lang.String description,
                       TdApi.BotCommand[] commands)
        Constructor for initialization of all fields.
        Parameters:
        description - Long description shown on the user info page.
        commands - A list of commands supported by the bot.