Package org.drinkless.tdlib
Class TdApi.BotInfo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.BotInfo
- Enclosing class:
- TdApi
Contains information about a bot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionInformation about the affiliate program of the bot; may be null if none.Animation shown in the chat with the bot if the chat is empty; may be null.boolean
True, if the bot's revenue statistics are available to the current user.boolean
True, if the bot can manage emoji status of the current user.List of the bot commands.static final int
Identifier uniquely determining type of the object.Default administrator rights for adding the bot to channels; may be null.Default administrator rights for adding the bot to basic group and supergroup chats; may be null.The text shown in the chat with the bot if the chat is empty.The internal link, which can be used to edit bot commands; may be null.The internal link, which can be used to edit bot description; may be null.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.The internal link, which can be used to edit bot settings; may be null.boolean
True, if the bot has media previews.Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.Photo shown in the chat with the bot if the chat is empty; may be null.The HTTP link to the privacy policy of the bot.The text that is shown on the bot's profile page and is sent together with the link when users share the bot.Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner of the bot.int
Default dark background color for bot Web Apps; -1 if not specified.int
Default light background color for bot Web Apps; -1 if not specified.int
Default dark header color for bot Web Apps; -1 if not specified.int
Default light header color for bot Web Apps; -1 if not specified. -
Constructor Summary
ConstructorsConstructorDescriptionBotInfo()
Contains information about a bot.BotInfo
(String shortDescription, String description, TdApi.Photo photo, TdApi.Animation animation, TdApi.BotMenuButton menuButton, TdApi.BotCommand[] commands, String privacyPolicyUrl, TdApi.ChatAdministratorRights defaultGroupAdministratorRights, TdApi.ChatAdministratorRights defaultChannelAdministratorRights, TdApi.AffiliateProgramInfo affiliateProgram, int webAppBackgroundLightColor, int webAppBackgroundDarkColor, int webAppHeaderLightColor, int webAppHeaderDarkColor, TdApi.BotVerificationParameters verificationParameters, boolean canGetRevenueStatistics, boolean canManageEmojiStatus, boolean hasMediaPreviews, TdApi.InternalLinkType editCommandsLink, TdApi.InternalLinkType editDescriptionLink, TdApi.InternalLinkType editDescriptionMediaLink, TdApi.InternalLinkType editSettingsLink) Contains information about a bot. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
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
The text shown in the chat with the bot if the chat is empty. -
photo
Photo shown in the chat with the bot if the chat is empty; may be null. -
animation
Animation shown in the chat with the bot if the chat is empty; may be null. -
commands
List of the bot commands. -
privacyPolicyUrl
The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://telegram.org/privacy-tpa must be opened. -
defaultGroupAdministratorRights
Default administrator rights for adding the bot to basic group and supergroup chats; may be null. -
defaultChannelAdministratorRights
Default administrator rights for adding the bot to channels; may be null. -
affiliateProgram
Information about the affiliate program of the bot; may be null if none. -
webAppBackgroundLightColor
public int webAppBackgroundLightColorDefault light background color for bot Web Apps; -1 if not specified. -
webAppBackgroundDarkColor
public int webAppBackgroundDarkColorDefault dark background color for bot Web Apps; -1 if not specified. -
webAppHeaderLightColor
public int webAppHeaderLightColorDefault light header color for bot Web Apps; -1 if not specified. -
webAppHeaderDarkColor
public int webAppHeaderDarkColorDefault dark header color for bot Web Apps; -1 if not specified. -
verificationParameters
Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner of the bot. -
canGetRevenueStatistics
public boolean canGetRevenueStatisticsTrue, if the bot's revenue statistics are available to the current user. -
canManageEmojiStatus
public boolean canManageEmojiStatusTrue, if the bot can manage emoji status of the current user. -
hasMediaPreviews
public boolean hasMediaPreviewsTrue, if the bot has media previews. -
editCommandsLink
The internal link, which can be used to edit bot commands; may be null. -
editDescriptionLink
The internal link, which can be used to edit bot description; may be null. -
editDescriptionMediaLink
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
The internal link, which can be used to edit bot settings; may be null. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- 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, String privacyPolicyUrl, TdApi.ChatAdministratorRights defaultGroupAdministratorRights, TdApi.ChatAdministratorRights defaultChannelAdministratorRights, TdApi.AffiliateProgramInfo affiliateProgram, int webAppBackgroundLightColor, int webAppBackgroundDarkColor, int webAppHeaderLightColor, int webAppHeaderDarkColor, TdApi.BotVerificationParameters verificationParameters, boolean canGetRevenueStatistics, boolean canManageEmojiStatus, boolean hasMediaPreviews, TdApi.InternalLinkType editCommandsLink, TdApi.InternalLinkType editDescriptionLink, TdApi.InternalLinkType editDescriptionMediaLink, TdApi.InternalLinkType editSettingsLink) Contains information about a bot.- Parameters:
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
- The text shown in the chat with the bot if the chat is empty.photo
- Photo shown in the chat with the bot if the chat is empty; may be null.animation
- Animation shown in the chat with the bot if the chat is empty; may be null.menuButton
- 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
- List of the bot commands.privacyPolicyUrl
- The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://telegram.org/privacy-tpa must be opened.defaultGroupAdministratorRights
- Default administrator rights for adding the bot to basic group and supergroup chats; may be null.defaultChannelAdministratorRights
- Default administrator rights for adding the bot to channels; may be null.affiliateProgram
- Information about the affiliate program of the bot; may be null if none.webAppBackgroundLightColor
- Default light background color for bot Web Apps; -1 if not specified.webAppBackgroundDarkColor
- Default dark background color for bot Web Apps; -1 if not specified.webAppHeaderLightColor
- Default light header color for bot Web Apps; -1 if not specified.webAppHeaderDarkColor
- Default dark header color for bot Web Apps; -1 if not specified.verificationParameters
- Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner of the bot.canGetRevenueStatistics
- True, if the bot's revenue statistics are available to the current user.canManageEmojiStatus
- True, if the bot can manage emoji status of the current user.hasMediaPreviews
- True, if the bot has media previews.editCommandsLink
- The internal link, which can be used to edit bot commands; may be null.editDescriptionLink
- The internal link, which can be used to edit bot description; may be null.editDescriptionMediaLink
- 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
- The internal link, which can be used to edit bot settings; may be null.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-