Module tdlight.api

Class TdApi.BotInfo

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.BotInfo
Enclosing class:
TdApi

public static final class TdApi.BotInfo extends TdApi.Object
Contains information about a bot.
  • Field Details

    • shortDescription

      public String shortDescription
      The text that is shown on the bot's profile page and is sent together with the link when users share the bot.
    • description

      public String description
      The text shown in the chat with the bot if the chat is empty.
    • photo

      public TdApi.Photo photo
      Photo shown in the chat with the bot if the chat is empty; may be null.
    • animation

      public TdApi.Animation animation
      Animation shown in the chat with the bot if the chat is empty; may be null.
    • commands

      public TdApi.BotCommand[] commands
      List of the bot commands.
    • defaultGroupAdministratorRights

      public TdApi.ChatAdministratorRights defaultGroupAdministratorRights
      Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
    • defaultChannelAdministratorRights

      public TdApi.ChatAdministratorRights defaultChannelAdministratorRights
      Default administrator rights for adding the bot to channels; may be null.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • BotInfo

      public BotInfo()
      Contains information about a bot.
    • BotInfo

      public BotInfo(String shortDescription, String description, TdApi.Photo photo, TdApi.Animation animation, TdApi.BotMenuButton menuButton, TdApi.BotCommand[] commands, TdApi.ChatAdministratorRights defaultGroupAdministratorRights, TdApi.ChatAdministratorRights defaultChannelAdministratorRights, TdApi.InternalLinkType editCommandsLink, TdApi.InternalLinkType editDescriptionLink, TdApi.InternalLinkType editDescriptionMediaLink, TdApi.InternalLinkType editSettingsLink)
      Contains information about a bot.
      Parameters:
      shortDescription - String The text that is shown on the bot's profile page and is sent together with the link when users share the bot.
      description - String The text shown in the chat with the bot if the chat is empty.
      photo - Photo Photo shown in the chat with the bot if the chat is empty; may be null.
      animation - Animation Animation shown in the chat with the bot if the chat is empty; may be null.
      menuButton - BotMenuButton Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.
      commands - BotCommand[] List of the bot commands.
      defaultGroupAdministratorRights - ChatAdministratorRights Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
      defaultChannelAdministratorRights - ChatAdministratorRights Default administrator rights for adding the bot to channels; may be null.
      editCommandsLink - InternalLinkType The internal link, which can be used to edit bot commands; may be null.
      editDescriptionLink - InternalLinkType The internal link, which can be used to edit bot description; may be null.
      editDescriptionMediaLink - InternalLinkType The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null.
      editSettingsLink - InternalLinkType The internal link, which can be used to edit bot settings; may be null.
    • BotInfo

      public BotInfo(DataInput input) throws IOException
      Contains information about a bot.
      Throws:
      IOException
  • Method Details